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 michael.foord
Recipients michael.foord
Date 2011-06-19.22:28:29
SpamBayes Score 0.0027054006
Marked as misclassified No
Message-id <1308522510.81.0.637011547356.issue12370@psf.upfronthosting.co.za>
In-reply-to
Content
In Python 3 the following code prints "False" because the use of super() has caused the __class__ descriptor to be omitted from the class namespace. Remove the use of super and it prints "True".


class X(object):
    
    def __init__(self):
        super().__init__()
    
    @property
    def __class__(self):
        return int
        
print (isinstance(X(), int))
History
Date User Action Args
2011-06-19 22:28:30michael.foordsetrecipients: + michael.foord
2011-06-19 22:28:30michael.foordsetmessageid: <1308522510.81.0.637011547356.issue12370@psf.upfronthosting.co.za>
2011-06-19 22:28:30michael.foordlinkissue12370 messages
2011-06-19 22:28:30michael.foordcreate