Message2863

Author pjenvey
Recipients
Date 2007-08-30.04:05:52
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
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
History
Date User Action Args
2008-02-20 17:18:48adminlinkissue1784564 messages
2008-02-20 17:18:48admincreate