4 ms·
Wow, very unfair. It should not be surprising that people writing Python might actually care about performance, even if it isn't so important that they must wri
by hoten 2y ago
Wow, very unfair. It should not be surprising that people writing Python might actually care about performance, even if it isn't so important that they must write their software in assembly.
The code wasn't the authors, and what's more it's just an example to talk about the bytecode. Everyone knows `min(some_list)` is faster and more Pythonic.
This is a very interesting article and probably exposed a few people to a few interesting Python internals.
- otteromkram 2y agoI was just referring to the sample code at the top. I should have clarified that and I apologize for the lack of clarity. But, I would like to see the author use a for loop. I'm not why anyone would use a while loop of they know the constraints.