/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

reasonableapproximation.net
| | aivarsk.com

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.
2.8 parsecs

Travel
| |
| | fuzzyblog.io

[AI summary] The author discusses differences between Python and Ruby regarding dictionary key access and missing keys, highlighting cultural design philosophies and the Pythonic .get() method.
2.5 parsecs

Travel
| |
| | www.learnpython.dev

Free Learn Python Course by Nina Zakharenko - An intensive two day introduction and intermediate course on Python. Video course published on Frontend Masters.
1.5 parsecs

Travel
| |
| | clickhouse.com

Read about how we implement hash tables in ClickHouse from choosing the right hash function, to managing collisions, benchmarking and designing an elegant API. All for the fastest hash table implementation possible.
18.0 parsecs

Travel
|