[Python-checkins] r59200 - in python/trunk: Demo/newmetaclasses/Eiffel.py Lib/compiler/pyassem.py Lib/doctest.py Lib/modulefinder.py Lib/test/test_descr.py Lib/test/test_doctest.py Lib/test/test_funcattrs.py Lib/test/test_getopt.py Lib/test/test_

Georg Brandl g.brandl at gmx.net
Wed Nov 28 00:28:32 CET 2007


Guido van Rossum schrieb:
> On Nov 27, 2007 2:47 PM, Georg Brandl <g.brandl at gmx.net> wrote:
>> > +from types import FunctionType as function
>>
>> Hm, that reminds me how ugly (and often redundant) the names in "types" are...
> 
> Yes, I'm hoping we'll be able to get rid of the types module
> altogether. The idea of collecting all type names in one module
> doesn't make sense anyway; it's better to group things by
> functionality.

I've just looked, and the types you can't get trivially via builtin or
type(singleton) are

* module
* function
* generator
* code
* method
* builtin-function-or-method
* frame
* traceback
* dictproxy
* getset- and member-descriptor

Where would one put them?

Georg



More information about the Python-checkins mailing list