A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2011-April/110915.html below:

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

[Python-Dev] Why are there no 'set' and 'frozenset' types in the 'types' module?haael haael at interia.pl
Mon Apr 25 14:04:35 CEST 2011
Sorry if I am asking the obvious, but why are the aliases of set types not 
included in the 'types' module? I thought for a moment that they are just 
classes, but no, they introduce themselves as built-in types, just like any 
other standard Python type.

 > print type(set([1, 2, 4]))
<type 'set'>

 > print type(frozenset([3, 5]))
<type 'frozenset'>

Is it intentional, or is there some meaning behind this? If not, shouldn't they 
be added to the module?


Regards,
Bartosz Tarnowski



---------------------------------------------------------------
Darmowy program do wypełniania PIT: http://linkint.pl/f2931

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4