[issue4326] type of UserList instance returns class instead of instance
Georg Brandl
report at bugs.python.org
Sat Nov 15 09:06:33 CET 2008
Georg Brandl <georg at python.org> added the comment:
What good is a comparison with InstanceType for? If you want to check
whether it's an instance of a custom class, you'll have to check for
instances of new-style classes anyway. If you want to check for UserList
instances, use isinstance().
----------
nosy: +georg.brandl
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4326>
_______________________________________
More information about the Python-bugs-list
mailing list