[ python-Bugs-1178269 ] operator.isMappingType and isSequenceType on instances

SourceForge.net noreply at sourceforge.net
Thu Apr 7 07:38:52 CEST 2005


Bugs item #1178269, was opened at 2005-04-06 23:54
Message generated for change (Settings changed) made by rhettinger
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1178269&group_id=5470

Category: Documentation
Group: Python 2.4
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Dan Everhart (dieseldann)
Assigned to: Nobody/Anonymous (nobody)
Summary: operator.isMappingType and isSequenceType on instances

Initial Comment:
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>


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1178269&group_id=5470


More information about the Python-bugs-list mailing list