On Thu, Nov 27, 2014 at 3:12 PM, Simon King <simon.k...@uni-jena.de> wrote: > Hi Christophe, > > On 2014-11-27, Christophe Bal <projet...@gmail.com> wrote: >> Indeed, my question is related to pedagogical reasons. Even if my code is >> simple, it uses the import machinery that I would like to not use. > > Why not? Isn't it a good thing to teach students that polluting the > global name space is bad and thus that the stuff one needs should > first be imported?
I disagree. A basic design choice in Sage -- since day 1 -- is not to make such a judgement. Sage is meant to be an easy to use system designed for mathematics, which happens to use Python as a language, instead of me creating a new language from scratch. Of course we have to take with what is introduced in the global namespace. But that you can start Sage and type sage: sin(pi) is not only *good*, but critical. Requiring all users to do a few imports before the above would be bad. -- William > > Best regards, > Simon > > -- > 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. -- William Stein Professor of Mathematics University of Washington http://wstein.org -- 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.