On Mon, Mar 17, 2008 at 07:18:25PM -0400, Alexander Belopolsky wrote: > I don't have my PowerBook here, but I am sure I've seen in on Mac OS > too. Only new-style class behavior is problematic. The following > code prints 'b' for me: > > __metaclass__ = type
Ah, yes - with this addition it prints 'b'. > class x: > pass > class y(x): > pass > try: > raise y > except y: > print "a" > except: > print "b" Oleg. -- Oleg Broytmann http://phd.pp.ru/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. _______________________________________________ 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