|
You are here |
blog.hakril.net | ||
| | | | |
madebyme.today
|
|
| | | | | 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? | |
| | | | |
tenthousandmeters.com
|
|
| | | | | Consider a simple assignment statement in Python: a = b The meaning of this statement may seem trivial. What we do here is take the value of the... | |
| | | | |
pymotw.com
|
|
| | | | | [AI summary] This technical guide explains how Python's dis module works to disassemble Python bytecode for purposes such as debugging errors and optimizing code performance through detailed stack analysis. | |
| | | | |
pythonspeed.com
|
|
| | | Python's Global Interpreter Lock (GIL) stops threads from running in parallel or concurrently. Learn how to determine impact of the GIL on your code. | ||