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.

classification
Title: operator.isMappingType and isSequenceType on instances
Type: Stage:
Components: Documentation Versions: Python 2.4
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: dieseldann
Priority: normal Keywords:

Created on 2005-04-07 04:54 by dieseldann, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (1)
msg24938 - (view) Author: Dan Everhart (dieseldann) Date: 2005-04-07 04:54
Python Library Reference section 3.10 (module operator)
claims that IsMappingType() and isSequenceType() return
true for instance objects.  Yet:

ActivePython 2.4 Build 243 (ActiveState Corp.) based on
Python 2.4 (#60, Nov 30 2004, 09:34:21) [MSC v.1310 32
bit (Intel)]
Type "help", "copyright", "credits" or "license" for
more informatio
>>> class c: pass
...
>>> x = c()
>>> from operator import *
>>> isMappingType(x)
False
>>> isSequenceType(x)
False
>>> x
<__main__.c instance at 0x009EA7B0>
History
Date User Action Args
2022-04-11 14:56:10adminsetgithub: 41822
2005-04-07 04:54:09dieseldanncreate