- Knowing When A Python Thread Has Died
Sometimes thread.join() isn't enough.
- Python's += Is Weird, Part II
I wrote the other day about two things I think are weird about Python's += operator. In the comments, famed Twisted hacker Jean-Paul Calderone showed me something far, far weirder. This post is a record of me playing around and trying to [ ... ]
- Python's += Is Weird
Image: William Warby on Flickr Here's a Python gotcha I've hit often enough to merit a blog post: x += 1 is weird in Python. It's compiled roughly like x = x + 1, with two surprising consequences. One is this familiar pitfall: >>> x = 0 [ ... ]
- MotorConnection Has Been Renamed MotorClient
- Yes, Every MongoDB Driver Supports Every Command
- Reading from MongoDB Replica Sets with PyMongo
- Breaking Change In PyMongo
In my excitement about the big changes in PyMongo 2.4, I forgot to mention a smaller one you should watch out for: from now on, if the initial connection to MongoDB fails, PyMongo raises ConnectionFailure instead of AutoReconnect. This is [ ... ]
- Toro: synchronization primitives for Tornado coroutines
I took a break from Motor to make a new package "Toro": queues, semaphores, locks, and so on for Tornado coroutines. (The name "Toro" is from "Tornado" and "Coro".) Why would you need something like this, especially since Tornado apps are [ ... ]
- Motor: Iterating Over Results, The Grand Conclusion
- Motor: Iterating Over Results