On 3/24/14, 3:25, Volker Braun wrote:
I find the various commands to evaluate code from a file confusing (and not really documented). When was the English language changed so that "load" implies evaluation?
Probably when it was programmed into magma: http://linux.math.tifr.res.in/manuals/html/magma/text93.html (which I think the Sage %load originally derived from, right William?)
Also, changing the way IPython works is only going to confuse me more, not less. IMHO we should have %load # as provided by ipython %run # evaluate file content, preparsed depending on the file extension %attach # like run, but watch for changes
Also: * No new statements, i.e. no "load" without percent sign is not allowed.
in other words: load 'filename' is not allowed? (unless, I suppose, you turn on %automagics)
* But do support them as global functions load('filename.py'). * No %runfile. Whats the difference with %run?
For reference, here's the discussion from last time, which talks about the differences: https://groups.google.com/forum/#!topic/sage-devel/6UXXRtMvxBk. tl;dr: +1 to unifying %run and %runfile, and pushing these changes upstream. Not surprisingly, that's essentially what you voted for too in that thread, Volker.
Thanks, Jason -- 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.