> I see. Why not just import that one function, in that case? That is
> a very natural thing to do. Only import a whole namespace if you
> really have to - it can really mess things up, as you have pointed
> out.
I'm aware of that, that piece of code was stupid because I was lazy
when I wrote that.
>
> What do you think about the other things - bugs, annoying, user error?
Do you mean about the different import of var() ?
Both functions have in fact different uses and my problem arose
because of my bad programming.
I did not see it before, but it's stated in the note of calculus/
var.pyx var() function:
The new variable is both returned and automatically injected
into the global namespace. If you need symbolic variable in
library code, it is better to use either SR.var() or
SR.symbol().
So I guess there is no problem at all.
I should have been more careful and less noisy.
--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org