[stdlib-sig] proposed removal: the types module

Christian Heimes christian at cheimes.de
Thu Apr 3 16:38:22 CEST 2008


Jesse Noller schrieb:
> 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.

For your information:

Guido doesn't like grab bag modules, see http://bugs.python.org/issue1605

Christian


More information about the stdlib-sig mailing list