Hi all, Maybe it's just me, but I find it terribly annoying that one cannot paste code fragments containing indentation in a Sage terminal session, as one can with the ordinary Python interpreter. Simple example:
def f(x): if x == 1: return 2 return 1 >>> def f(x): ... if x == 1: ... return 2 ... return 1 ... sage: def f(x): ....: if x == 1: ....: return 2 ....: return 1 ------------------------------------------------------------ File "<ipython console>", line 4 rn Integer(1) ^ SyntaxError: invalid syntax Is this an IPython bug (and in that case can it be fixed or worked around), or is it a preparser issue? Fredrik -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org