should I put old or new style classes in my book?

sturlamolden sturlamolden at yahoo.no
Fri May 30 06:21:37 EDT 2008


On May 29, 6:07 pm, allendow... at gmail.com wrote:

> The current edition of the book presents old style classes.  I am
> considering
> switching to new style classes on the assumption that this should be
> the default
> choice for new programs.  The drawback is that a lot of the online
> documentation
> still uses old style classes.

You should use new-style classes. It is the default in Python 2.6 and
the only option in 3.0. These releases will be out before your book is
on the market.




More information about the Python-list mailing list