[stdlib-sig] proposed removal: the types module

Christian Heimes christian at cheimes.de
Fri Apr 4 11:32:49 CEST 2008

Antoine Pitrou schrieb:
> Le jeudi 03 avril 2008 à 13:24 +0200, Brett Cannon a écrit :
>> You can just call 'type' on something to get the type needed. And
>> practically all of the types listed are easy to get from some object
>> lying about that is of the proper type. Plus Guido supports its
>> removal. =)
> I don't see the point. It's not like using the types modules is
> considered dangerous, or unsafe, or very bad practice. It's not like
> there is a really better replacement, either. And I don't think
> maintenance of the types module is a huge burden ;)

It's considered bad practice since isinstance(egg, list) works. It's
still in use because several types aren't directly available via import,
e.g. CodeType.


More information about the stdlib-sig mailing list