New-style classes (was Re: Checking for EOF in stream)

Steven Bethard steven.bethard at gmail.com
Mon Feb 19 21:22:29 EST 2007


GiBo wrote:
> One more question - is it likely that StringIO will be turned into
> new-style class in the future? The reason I ask is whether I should try
> to deal with detection of new-/old-style classes or take the
> old-styleness for granted and set in stone instead.

In Python 3.0, everything will be new-style classes. In Python 2.X, it 
is extremely unlikely that anything will be upgraded to a new-style 
class. That would raise a number of backwards incompatibilities with 
relatively little benefit.

STeVe



More information about the Python-list mailing list