Message161496
> 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. |
|
Date |
User |
Action |
Args |
2012-05-24 10:30:42 | pitrou | set | recipients:
+ pitrou, ezio.melotti, cvrebert, socketpair, alexey-smirnov |
2012-05-24 10:30:42 | pitrou | set | messageid: <1337855442.4.0.28931513802.issue14886@psf.upfronthosting.co.za> |
2012-05-24 10:30:41 | pitrou | link | issue14886 messages |
2012-05-24 10:30:41 | pitrou | create | |
|