By the way, this page: http://www.sagemath.org/doc/tutorial/afterword.html#the-pre-parser-differences-between-sage-and-python
from the tutorial is also relevant. John On Monday, May 26, 2014 6:04:04 PM UTC-7, robin wrote: > > brilliant, thanks Leif. > > It'd be nice to have an explicit "Note: " on the documentation for load() > which states this extension-dependent behaviour for newbies like me. In my > world (mostly R) the file extension is immaterial, and I'm sure this issue > is a gotcha for many people like me. > > best wishes [marked 'resolved'] > > Robin > > > > > On Tuesday, 27 May 2014 12:41:23 UTC+12, leif wrote: >> >> robin wrote: >> > >> > > Can anyone advise? I am very very very reluctant to >> > > adopt the ghastly "**" notation. >> > >> > If you want your file to get preparsed (such that the Sage >> preparser >> > replaces '^' by '**' "internally" when you load or run the file >> with >> > 'sage'), simply rename your file to "f.sage". >> > >> > Similar holds for '.pyx' vs. '.spyx'; the latter first gets >> preparsed. >> > >> > >> > >> > thanks for this Leif. Where do I look for documentation of this issue? >> > The help page for load() discusses file extensions but does not mention >> > preparsing. >> >> See for example >> >> >> http://sagemath.org/doc/tutorial/programming.html#loading-and-attaching-sage-files >> >> >> or type 'preparse?<RETURN>' at the 'sage:' prompt. >> >> The documentation for 'load' (type 'load?') also refers to 'attach', >> whose documentation is more explicit regarding filename extensions. >> >> >> -leif >> >> -- >> () The ASCII Ribbon Campaign >> /\ Help Cure HTML E-Mail >> >> -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.