Issue1784564
Created on 2007-08-30.04:05:52 by pjenvey, last changed 2007-08-31.00:35:30 by pjenvey.
| File name |
Uploaded |
Description |
Edit |
Remove |
|
long_asint_r3455.diff
|
pjenvey,
2007-08-30.04:05:53
|
patch against r3455 |
|
|
| msg2863 (view) |
Author: Philip Jenvey (pjenvey) |
Date: 2007-08-30.04:05:52 |
|
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
|
| msg2864 (view) |
Author: Philip Jenvey (pjenvey) |
Date: 2007-08-31.00:35:30 |
|
applied in r3458
|
|
| Date |
User |
Action |
Args |
| 2007-08-30 04:05:52 | pjenvey | create | |
|