[Python-Dev] operator.isMappingType

Alex Martelli aleaxit at yahoo.com
Sat Nov 8 11:43:25 EST 2003


On Saturday 08 November 2003 13:22, Raymond Hettinger wrote:
> >>> import operator
> >>> map(operator.isMappingType, [(), [], '', u'', {}])
>
> [True, True, True, True, True]
>
> We did not resolve this when it came up before.  Would there be any
> objections to my removing operator.isMappingType()?

No objections from me.  Either it should be made to do something
useful (and I don't know how unless the 'basemapping' abstract type
I mentioned is introduced), or it should be removed -- having it in
its current state seems worst.


Alex




More information about the Python-Dev mailing list