Python

list by @rakhim

How to Benchmark (Python) Code

There are plenty of ways to measure the speed of your code. Let me show you a few that I considered for the Writing Faster Python series.

The Ultimate Guide to Error Handling in Python

I often come across developers who know the mechanics of Python error handling well, yet when I review their code I find it to be far from good. Exceptions in Python is one of those areas that have a surface layer that most people know, and a deeper, almost secret one that a lot of developers don't even know exists. If you want to test yourself...

What's New In Python 3.13

What's New In Python 3.13 It's Python 3.13 release day today. The big signature features are a better REPL with improved error messages, an option to run Python without the GIL and the beginnings of the new JIT. Here are some of the smaller highlights I spotted while perusing the release notes. iOS and Android are both now Tier 3 supported...

Which Python operations are atomic?
qqrs.github.com | 1 May 2016 | original ↗

A conversation with a coworker turned me on to the fact that a surprising range of operations in Python are atomic, even operations like dictionary and class member assignment. This wasn’t something I would have anticipated, given the number of machine language instructions that must ultimately be performed to complete an operation like hash...