Python - do I need to learn about old-style classes?

I am currently learning Python 2.6.5 and I have learned about old style classes and new style classes.

I understand that these classes still exist only for backward compatibility and that they are removed in Python 3.

So the question is: as a beginner in the language, do I need to learn about classic classes?

PS I'm learning Python 2 because Python 3 is still not fully supported in frameworks, and I want to learn some frameworks as well. The plan will be to switch to Python 3 when frameworks are catching up, but before that I need to worry about old style classes?

+5
source share
2

. . object ( , object), . , Python 3, .

.

, :

class foo(object):
    ...

( - , object, object), , !

+13

Daniel DiPaolo, , , .

, super - , , urllib2.Request. , , super() argument 1 must be type, not classobj, .

( , , , ...)

+4

All Articles