sage: X = 2 + O(2^7)

sage: X[1:6]
---------------------------------------------------------------------------
<type 'exceptions.NameError'>             Traceback (most recent call last)

/Users/nalexand/emacs/<ipython console> in <module>()

/Users/nalexand/sage/local/lib/python2.5/site-packages/sage/rings/padics/padic_generic_element.py
 in __getitem__(self, n)
    101             if n.start == 0:
    102                 raise ValueError, "due to limitations in Python 2.5, 
you must call the slice() function rather than using the [:] syntax in this 
case"
--> 103             if n.stop == sys.MAXINT:
    104                 return self.slice(n.start, None, n.step)
    105             return self.slice(n.start, n.stop, n.step)

<type 'exceptions.NameError'>: global name 'sys' is not defined

Just need an import sys somewhere.

Nick

--~--~---------~--~----~------------~-------~--~----~
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/
-~----------~----~----~----~------~----~------~--~---

Reply via email to