Just to expand on that answer: Plain python prints the empty dictionary as 
{} so it has the potential to be confusing to people that know Python:

>>> set()
set([])
>>> set([1])
set([1])
>>> dict()
{}
>>> dict(a=1)
{'a': 1}



On Friday, April 1, 2016 at 11:07:48 AM UTC+2, Viviane Pons wrote:
>
> I would say it's a python thing, and it's probably because {} is actually 
> a dictionarry and not a set. 
>
> 2016-04-01 11:04 GMT+02:00 Sébastien Labbé <sla...@gmail.com <javascript:>
> >:
>
>> sage: set([1])
>> {1}
>> sage: set()
>> set()
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "sage-devel" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to sage-devel+...@googlegroups.com <javascript:>.
>> To post to this group, send email to sage-...@googlegroups.com 
>> <javascript:>.
>> Visit this group at https://groups.google.com/group/sage-devel.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to