News for hackers. Stuff that matters.
Re:Improving your (Python) code with modern idioms by wladimir on Tuesday May 08, 2012 @08:36AM (#3943295)
Python 3 removes old-style classes and thus removes the need to explicitly inherit from object.

(Also it appears it's just an example to illustrate the use of context managers, not of the perfect Python program. You'd never want to use the code in practice, if only because it relies on changing global state and thus will mess up when multiple threads use it at once)

There are no comments on this comment yet.