[Python-Dev] Re: [Python-checkins] python/dist/src/Lib types.py,1.26,1.27
Skip Montanaro
skip@pobox.com
Thu, 23 May 2002 01:59:44 -0500
Martin> Sure. I was just surprised that, even though this specific
Martin> change had been rejected before atleast three times, it suddenly
Martin> went in.
I must of missed them. It seemed like a trivial change to me.
Just for the heck of it, I just checked the libref docs for the types
module. (I freely admit I didn't consult the docs before making the
change.) It begins:
This module defines names for all object types that are used by the
standard Python interpreter,...
Given that types is not yet deprecated, it makes sense to me that the above
statement should remain true. It sounds like you are headed in another
direction for testing the typeness of objects that relies on isinstance().
If that's the case, I suggest you deprecate the types module and change its
documentation to reflect the new preferred way of doing business.
Skip