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 | schmir |
|---|---|
| Recipients | schmir |
| Date | 2008年03月17日.10:49:24 |
| SpamBayes Score | 0.0036496446 |
| Marked as misclassified | No |
| Message-id | <1205750967.32.0.985818553342.issue2319@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
The following short program raises an exception: import UserList class C: pass print isinstance(C, UserList.UserList) --------- exception: Traceback (most recent call last): File "t.py", line 6, in <module> print isinstance(C, UserList.UserList) File "/home/ralf/py26/lib/python2.6/abc.py", line 120, in __instancecheck__ subclass = instance.__class__ AttributeError: class C has no attribute '__class__' If I use a new style class it works. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2008年03月17日 10:49:27 | schmir | set | spambayes_score: 0.00364964 -> 0.0036496446 recipients: + schmir |
| 2008年03月17日 10:49:27 | schmir | set | spambayes_score: 0.00364964 -> 0.00364964 messageid: <1205750967.32.0.985818553342.issue2319@psf.upfronthosting.co.za> |
| 2008年03月17日 10:49:26 | schmir | link | issue2319 messages |
| 2008年03月17日 10:49:25 | schmir | create | |