[Python-Dev] Why are there no 'set' and 'frozenset' types in the 'types' module?

Benjamin Peterson benjamin at python.org
Mon Apr 25 16:02:20 CEST 2011


2011/4/25 haael <haael at interia.pl>:
>
>> Because there's no reason to include them, since they are already in
>> the root (builtins) namespace.
>>
>> You'll notice that in Python 3, the "types" module only contains types
>> which are not obviously accessed through easier means:
>
>
> OK, makes sense, but in this case it would be handy to have some list of all
> possible built-in types. I was just creating one and I nearly missed sets.
> If an entry in 'types' module is too much, there should be some
> comprehensive list in the documentation at least.

http://docs.python.org/dev/library/stdtypes


-- 
Regards,
Benjamin


More information about the Python-Dev mailing list