Explore >> Select a destination


You are here

switowski.com
| | blog.florimondmanca.com
4.0 parsecs away

Travel
| | Type hints add optional static typing to Python 3.5+, and I love them. I now use annotated variables throughout my projects.
| | blog.ian.stapletoncordas.co
4.1 parsecs away

Travel
| |
| | kishstats.com
3.6 parsecs away

Travel
| | Type hinting was added to the Python standard library starting in version 3.5. Python, being a dynamically typed language, does not enforce data types. Howev...
| | madebyme.today
32.0 parsecs away

Travel
| Some time ago, during a code review, I had a discussion with a colleague of mine about preferring dict() over {} in new Python code. They argued that dict() is more readable - and expresses intent more clearly - therefore should be preferred. I wasn't convinced by that, but at that time I didn't have any counterarguments, so I passed. Yet that made me wonder: what's the difference between the dict type and {} literal expression?