[stdlib-sig] proposed removal: the types module
steven.bethard at gmail.com
Thu Apr 3 16:25:32 CEST 2008
Barry Warsaw schrieb:
> Plus, there are a few types in there that are difficult or impossible
> to get from Python.
On Thu, Apr 3, 2008 at 6:12 AM, Barry Warsaw <barry at python.org> wrote:
> Actually, inspect.types might be a good place to put them all.
+1 on inspect.types. If you really need to check for things like
MethodType, instead of simply hasattr(obj, '__call__'), then you're
really doing inspect-style code whether you've admitted it to yourself
yet or not. ;-)
I'm not *in*-sane. Indeed, I am so far *out* of sane that you appear a
tiny blip on the distant coast of sanity.
--- Bucky Katt, Get Fuzzy
More information about the stdlib-sig