Explore >> Select a destination


You are here

florimond.dev
| | fabianlindfors.se
5.4 parsecs away

Travel
| | MSc Computer science student
| | jimpurbrick.com
2.7 parsecs away

Travel
| | [AI summary] The article discusses the use of Python decorators for handling web requests, their interaction with introspection, and methods to preserve function metadata while maintaining decorator visibility.
| | davidbieber.com
2.9 parsecs away

Travel
| | The implementation of hoist in my earlier snippet returned the values of local variables of all functions called by the hoisted function. This new version only returns the locals of the hoisted function. As before, you can use it like this: def f(x): y = x + 1 z = y * 2 return z + 1 f(4) == 11 hoist(f)(4) == {'x': 4, 'y': 5, 'z': 10, 'return': 11} Here's another usage example:
| | kishstats.com
35.2 parsecs away

Travel
| functools is part of the Python standard library which is defined as being a "module is for higher-order functions" and that "functions that act on or return...