Steven D'Aprano wrote:
class A:
        def bar(self):
                print "A"


Alas, you've chosen the worst-possible example to "clarify" matters, because old-style classic classes are *not* unified with types, and will disappear in the future:

Of course I wanted to write `class A(object)', but I keep forgetting this one because I'm still used to the old ways...

Will this disappear in Python 3.0., i.e. can you again simply write

class A:

and inherit from object automagically? That would be nice since that's what most people probably want.
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to