[stdlib-sig] proposed removal: the types module

Barry Warsaw barry at python.org
Thu Apr 3 14:03:27 CEST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Apr 3, 2008, at 7:39 AM, M.-A. Lemburg wrote:
> On 2008-04-03 13:24, Brett Cannon wrote:
>> You can just call 'type' on something to get the type needed.
>
> Well, yes, but that's just what the types module does, isn't it ?
>
> It's really just a more practical way of getting at the type
> object than having to create a temporary object just to get
> at the type object.
>
> For basic types you don't need it (e.g. int, float, str, etc.),
> but there are quite a few types in Python that don't have a
> builtin constructor, e.g. methods, modules, instances, etc.

Plus, there are a few types in there that are difficult or impossible  
to get from Python.

- -1 unless you can find another place to stash such types.

- -Barry

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)

iQCVAwUBR/THkHEjvBPtnXfVAQIR8AP/T4LFcI75JudY69L9boSXtLd1l18Br2+H
OnhBceeeibouFGelyqS09tP+HnTrYLo/wUsROpQ7QRG9MukECXiZ9LFyLtC41ESH
jCbPT8nbeHjmkL4N5ym5DU+JWWZBZfDxzWp7khvYk5G4lqznWGuOnAvBNKnwHCyd
YDhntCCIGo8=
=ZjTI
-----END PGP SIGNATURE-----


More information about the stdlib-sig mailing list