Note also that for the same reason one element tuples are printed as
(x,). Because (1) can be confused with paranthesis around a 1.
I guess the idea is that: you want to rebuild an object from its string
representation (really, just copy-paste in the command line).
On 01/04/16 06:12, Sébastien Labbé wrote:
Indeed, looks like to come from IPython (not Python) :
$ sage -python
Python 2.7.10 (default, Apr 1 2016, 01:03:57)
[GCC 4.9.3] on darwin
Type "help", "copyright", "credits" or "license" for more information.
set([1])
set([1])
$ sage -ipython
Python 2.7.10 (default, Apr 1 2016, 01:03:57)
Type "copyright", "credits" or "license" for more information.
IPython 4.1.2 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.
In [1]: set([1])
Out[1]: {1}
In [2]: set([])
Out[2]: 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+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.