Author pitrou
Recipients alexey-smirnov, cvrebert, ezio.melotti, pitrou, socketpair
Date 2012-05-24.10:30:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1337855442.4.0.28931513802.issue14886@psf.upfronthosting.co.za>
In-reply-to
Content
> class pseudo_list(object):
>     __class__ = list # fake isinstance

Why not inherit from list directly?
Setting __class__ to something else isn't widely supported in the Python code base. It may work or may not work, depending on the API, but it's not something we design or test for.
History
Date User Action Args
2012-05-24 10:30:42pitrousetrecipients: + pitrou, ezio.melotti, cvrebert, socketpair, alexey-smirnov
2012-05-24 10:30:42pitrousetmessageid: <1337855442.4.0.28931513802.issue14886@psf.upfronthosting.co.za>
2012-05-24 10:30:41pitroulinkissue14886 messages
2012-05-24 10:30:41pitroucreate