/explore

Click through on any links that interest you or select the planets on the right to continue exploring the Outer Web.
You are here

davidbieber.com
| | florimond.dev
2.5 parsecs away

Travel
| | A memo on implementing parametrized decorators whose default behavior doesn't require empty parentheses.
| | ykarroum.com
3.3 parsecs away

Travel
| | [AI summary] This technical article demonstrates how to create a Python decorator that automatically detects and sets the inplace=True parameter for pandas and numpy functions to optimize memory usage, while carefully handling reference counting and syntax tree analysis to prevent unintended side effects.
| | aivarsk.com
3.5 parsecs away

Travel
| | I have a piece of C++ code that calls user-defined functions implemented in Python. Instead of requiring all functions to have the same signature with 6 arguments, the C++ code inspects the function signature and passes only the arguments function accepts - 1, 3, or all 6 of them. I use the inspect module and getargspec function for that but it feels a bit wrong and bloated. So let's see how we can get the work done without the inspect module.
| | initialcommit.com
22.0 parsecs away

Travel
| In this article, you will learn how to fix the "SyntaxError: Positional Argument Follows Keyword Argument" in Python by understanding what positional and keyword arguments are, which will help you prevent this error from occurring in the future.