Why? see here: In [1]: sys = 5
In [2]: sys Out[2]: 5 In [3]: import sys as system In [4]: system Out[4]: <module 'sys' (built-in)> In [5]: sys Out[5]: 5 On Tuesday, December 2, 2014 6:27:16 PM UTC+1, Dan Drake wrote: > > On Tue, 02 Dec 2014 at 08:49AM -0800, SiL588 . wrote: > > but it gives the following error: > > TypeError: 'module' object does not support item assignment > > > > What does it mean? It seems a pretty simple operation to me and I can't > > understand what it is that i'm doing wrong. > > In addition the problems Jim pointed out, "sys" is already defined as a > Python module. You can overwrite that definition, as he suggested, but > be aware that you won't be able to import and use the sys module then. > > (See https://docs.python.org/2.7/library/sys.html for what the sys module > does.) > > > Dan > > -- > --- Dan Drake > ----- www.math.wisc.edu/~ddrake/ > ------- > -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
