On Fri, Dec 12, 2014 at 1:54 PM, Andrey Novoseltsev <novos...@gmail.com> wrote: > > On Friday, 12 December 2014 14:46:06 UTC-7, William wrote: >> >> It's completely reasonable to assign a variable and do a calculation >> with it in the same cell. >> >> > > Of course, I meant that on the command line those line were two "execution > units" and so were handled separately, with separate treatment of leading > indentation.
Oh, sorry. I agree totally. I also agree with you and Karl's suggestion to pass off the string as is to IPython, which would maintain consistency... William >And I think it is completely reasonable to expect consistent > indentation in the same cell. Mixing different indentation is much more > wrong code than stripping prompts. > > I am pretty sure that I was puzzled before by this behaviour (without > realizing that this was the issue) in some of student's worksheets, where > everything runs fine without errors, but does not work as expected. I would > prefer an error message forcing to fix indentation. > > -- > 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 http://groups.google.com/group/sage-devel. > For more options, visit https://groups.google.com/d/optout. -- William Stein Professor of Mathematics University of Washington http://wstein.org -- 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 http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.