/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

fuzzyblog.io
| | www.nkantar.com

A bit of nuance about dealing with null and missing values in Python dictionaries.
0.8 parsecs

Travel
| |
| | mathspp.com

There are many situations in which it is better to use a try statement to handle an error than using an if statement to prevent the error.
2.0 parsecs

Travel
| |
| | reasonableapproximation.net


1.9 parsecs

Travel
| |
| | 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.
17.5 parsecs

Travel
|