If you run into a problem with some API or Python code what do you do to solve it? I personally throw a few keywords into google, sometimes even before checking the full docs.
Why does this work? Because invariably an excellent conversation and answer from StackOverflow comes back with just what I need.
This week you’ll meet Martijn Pieters. One of the top Python contributors at StackOverflow with over 16,500 questions answered and a reputation of over 500,000.
Relevant links (apart from my social media links):
The specific questions I discussed:
- Set literal gives different result from set function call
- What is a metaclass in Python?
- Asking the user for input until they give a valid response
- Accessing class variables from a list comprehension in the class definition
- Why is Python 3.x’s super() magic?
- Why is “1000000000000000 in range(1000000000000001)” so fast in Python 3?
- Why does range(0) == range(2, 2, 2) equal True in Python 3?
- Why is the order in dictionaries and sets arbitrary?