Talin wrote: > Nick Coghlan wrote: >> As for the reason: it makes it possible to use the same style for classes >> without bases as is used for functions without arguments. Prior to this >> change, there was a sharp break in the class syntax, such that if you got >> rid >> of the last base class you had to get rid of the parentheses as well. > > Is the result a new-style or classic-style class? It would be nice if > using the empty parens forced a new-style class...
This was considered & rejected by Guido as too subtle a distinction. So you still need to set __metaclass__=type (or inherit from such a class) to get a new-style class. Cheers, Nick. -- Nick Coghlan | [EMAIL PROTECTED] | Brisbane, Australia --------------------------------------------------------------- http://www.boredomandlaziness.org _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com