Re: [sage-devel] Indented code in terminal

2011-04-19 Thread Jeroen Demeyer
On 2011-04-19 14:40, Fredrik Johansson wrote: > 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 =

[sage-devel] Indented code in terminal

2011-04-19 Thread Fredrik Johansson
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 =