This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author belopolsky
Recipients belopolsky, brett.cannon, nnorwitz, taicki, zotbar1234
Date 2008-03-18.00:00:21
SpamBayes Score 0.1444594
Marked as misclassified No
Message-id <1205798422.52.0.370573170304.issue2291@psf.upfronthosting.co.za>
In-reply-to
Content
Correction for msg63584: the old/new style difference example should read

"""
class x: 
    pass 
class y(x): 
    pass 
try: 
    raise y 
except y: 
    print "b" 
except: 
    print "a"
"""

As written it prints 'b', but with __metaclass__ = type, it prints 'a'.
In msg63584 I got 'a' and 'b' mixed up.

On python-dev, Guido responded that the result should be the same
regardless of the metaclass:

http://mail.python.org/pipermail/python-dev/2008-March/077713.html
History
Date User Action Args
2008-03-18 00:00:22belopolskysetspambayes_score: 0.144459 -> 0.1444594
recipients: + belopolsky, nnorwitz, brett.cannon, zotbar1234, taicki
2008-03-18 00:00:22belopolskysetspambayes_score: 0.144459 -> 0.144459
messageid: <1205798422.52.0.370573170304.issue2291@psf.upfronthosting.co.za>
2008-03-18 00:00:21belopolskylinkissue2291 messages
2008-03-18 00:00:21belopolskycreate