Explore >> Select a destination


You are here

blog.hakril.net
| | madebyme.today
3.8 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?
| | pymotw.com
3.5 parsecs away

Travel
| | [AI summary] The provided text is a detailed exploration of Python's disassembler and its applications. It covers topics such as using the dis module to inspect bytecode, debugging with dis, and optimizing code by analyzing disassembled output. The text also discusses compiler optimizations like constant folding and the use of itertools for efficient iteration. It includes examples of code, disassembled output, and performance comparisons between different implementations.
| | www.justus.pw
2.8 parsecs away

Travel
| | [AI summary] This article explains how to use Python's disassembly library to inspect and understand CPython's byte code, including examples of disassembling a simple function.
| | blog.m-ou.se
29.9 parsecs away

Travel
| Have you ever seen the Rust compiler give a Python error? Or better, have you ever seen rust-analyzer complain about Python syntax? In this post, we'll extend our python!{} macro to make that happen.