On 28 Jan 2008, at 23:45, Greg Ewing wrote:
> Guido van Rossum wrote:
>>
...
>> Have a look at PEP 218.
>
> That PEP proposes that there be no set literal or comprehension
> syntax, and doesn't contain any discussion on whether such
> syntax should produce sets or frozensets if it were to exist.

It seems to me that this raises a critical question; would one want a  
set comprehension to produce frozen sets?  If the comprehension form  
{i for i in range(4)} should produce something mutable then I think it  
would be way too confusing for the form {0,1,2,3} to produce something  
different.  Personally I'd like set comprehensions to give me mutable  
sets, and so I feel set literals should do the same.

        Nicko

_______________________________________________
Python-3000 mailing list
Python-3000@python.org
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to