[stdlib-sig] proposed removal: the types module

Jesse Noller jnoller at gmail.com
Thu Apr 3 16:32:24 CEST 2008

On Thu, Apr 3, 2008 at 10:25 AM, Steven Bethard
<steven.bethard at gmail.com> wrote:
> 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. ;-)
>  Steve

+1 on inspect.types as well. It makes sense to put it there.


More information about the stdlib-sig mailing list