> because its potentially confusing. Thus here is my proposal. > > (1) The default behavior is exactly as in SAGE 1.4, i.e., no namespace > injection and one has the R.<x,y,z> = PolynomialRing(QQ,3) constructor. > 'll rework the preparser to make sure this can be done with violating > global uniqueness of parent structures (i.e., I'll not use > assign_names). > > (2) There is a mode that users can turn on if they want, which does the > namespace injection. They type inject_on() to turn it on. They can > put this in their init.sage startup file. Doing inject_on replaces > certain constructors with wrappers that do namespace injection. > > (3) If R is any structure with generators, R.inject_names(dict) will inject > the variable names of R into the given dictionary (which, e.g., could > be globals()). > > -- William
I like that proposal. Martin -- name: Martin Albrecht _pgp: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8EF0DC99 _www: http://www.informatik.uni-bremen.de/~malb _icq: 177334829 _jab: [EMAIL PROTECTED] --~--~---------~--~----~------------~-------~--~----~ 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-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~----------~----~----~----~------~----~------~--~---
