[Python-Dev] 'new' and 'types'

Guido van Rossum guido@python.org
Fri, 14 Jun 2002 15:49:43 -0400

> Patch 568629 removes the built-in module new (with sincere apologies
> to Tommy Burnette ;-) and replaces it with a tiny Python module
> consisting of a single import statement:

I'm reviewing it now.  It seems it's your patch.  Did you forget to
mention that in this message?

> Now, what about the types module?  It has been suggested that this
> module should be deprecated.  I think it still has some use: we need
> a place to put all the types that are not used often enough to be
> added to the builtins.  I suggest that they be placed in the module
> 'types' with names matching their __name__ attribute.  The types
> module will still have the long MixedCaseType names for backward
> compatibility.  The use of the long names should be deprecated, not
> the types module itself.

Not a bad idea.

--Guido van Rossum (home page: http://www.python.org/~guido/)