[Python-3000] PEP 3108: Standard Library Reorganization

Mike Klaas mike.klaas at gmail.com
Tue Jan 2 04:03:33 CET 2007


On 1/1/07, Brett Cannon <brett at python.org> wrote:
> * new
>     + Just a rebinding of names from the 'types' module.
>     + Can also call ``type`` built-in to get most types easily.

Perhaps 'types' should be deprecated instead?

obj.x = new.instancemethod(...

has a very pleasing ring to it (perhaps too pleasing--"new" feels like
a language construct, not a module name).

Much nicer than

obj.x = types.MethodType(...

-Mike


More information about the Python-3000 mailing list