Message3289

Author nriley
Recipients nriley
Date 2008-06-15.21:41:11
SpamBayes Score 0.0013530392
Marked as misclassified No
Message-id <1213566073.51.0.0791273633768.issue1059@psf.upfronthosting.co.za>
In-reply-to
Content
Jython:

>>> x = long(None)
>>> x
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
java.lang.NullPointerException
	at org.python.core.PyLong.long_toString(PyLong.java:122)
	at org.python.core.PyLong.toString(PyLong.java:117)
	at org.python.core.PyObject.__repr__(PyObject.java:103)

CPython:

>>> long(None)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: long() argument must be a string or a number, not 'NoneType'

int(None) fails as expected.
History
Date User Action Args
2008-06-15 21:41:14nrileysetspambayes_score: 0.00135304 -> 0.0013530392
recipients: + nriley
2008-06-15 21:41:13nrileysetspambayes_score: 0.00135304 -> 0.00135304
messageid: <1213566073.51.0.0791273633768.issue1059@psf.upfronthosting.co.za>
2008-06-15 21:41:12nrileylinkissue1059 messages
2008-06-15 21:41:12nrileycreate