Robert M said: Have you tried putting from sage.matrix.constructor import matrix before M = matrix()?
That was a good idea! Unfortunately, it didn't work, even when trying the file in several different directories (is that possibly what's wrong?). I used this, and the same "matrix as global variable" problem arose. EXAMPLES: Here is my only example. sage: from DoNothing import * sage: from sage.matrix.constructor import matrix sage: donothing(5) """ M = matrix() Interestingly, if I changed the example to try to import something nonsensical, like sage: from sage.matrix.constructor import jabba then sage -t correctly tells me that I am trying to import something nonexistent as an error, so I presume (perhaps wrongly) that matrix is getting imported when I use the correct syntax. Nonetheless I get this same global variable problem once I switch back to importing 'matrix' (or not importing at all). Point of information is that I am still at 2.8.12 as I am a little afraid of losing my notebook files with -upgrade, but I don't think that would affect things either. Thanks for any other ideas. --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~----------~----~----~----~------~----~------~--~---