Hello,
I noticed that globals() does something different in Python and Cython.
In Cython, it allows to access the "top-level" globals, e.g. the globals
on the IPython command line. This is the reason that
sage: _ = var('y')
sage: y
y
works. However, this only works because the var() function is
implemented in Cython! Python's globals() are the globals of the module.
I am almost certain this is the source of #12446.
So the question is: is it possible to access the top-level globals from
Python? Implementing stuff in Cython just because globals() behaves
differently looks very fragile to me.
Jeroen.
--
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.