operator.isMappingType

Raymond Hettinger vze4rx4y at verizon.net
Sat Nov 1 19:32:27 EST 2003


Since the advent of extended slicing, operator.isMappingType() returns a
misleading result.

>>> map(operator.isMappingType, ([], (), {}, '', u''))
[True, True, True, True, True]


I recommend removing it from the operator module.


Raymond Hettinger






More information about the Python-list mailing list