Message2863
The addition of this method to PyLong allows long arguments passed to built in types for ints to work. An OverflowError is raised for longs > sys.maxint
e.g.:
Jython 2.3a0 on java1.5.0_07
Type "copyright", "credits" or "license" for more information.
>>> 'jy thon'.split(' ', 1L)
Traceback (innermost last):
File "<console>", line 1, in ?
TypeError: expected an integer
Python 2.3.5 (#1, Aug 19 2006, 21:31:42)
[GCC 4.0.1 (Apple Computer, Inc. build 5363)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> 'jy thon'.split(' ', 1L)
['jy', 'thon']
A test is included |
|
Date |
User |
Action |
Args |
2008-02-20 17:18:48 | admin | link | issue1784564 messages |
2008-02-20 17:18:48 | admin | create | |
|