StellarCartography / pydis

DEPRECATED: Check out PyKOSMOS!
https://github.com/jradavenport/pykosmos
MIT License
43 stars 27 forks source link

Use new style class declaration #47

Closed migueldvb closed 8 years ago

migueldvb commented 8 years ago

The class declaration makes some things work in python 2 where class does not inherit from object explicitely. It is compatible with python 2.2 and older.

jradavenport commented 8 years ago

So this is just to make it compatible with Python 2.2 and older? 2.7 and 3.x should already be OK?

migueldvb commented 8 years ago

For python 3.x it does not matter to have the new style declaration because this is the default, but for python 2.x > 2.2 it is better to have it because it adds some new features like descriptors.

https://wiki.python.org/moin/NewClassVsClassicClass