]> granicus.if.org Git - python/commit
Fix the tests for various anomalies in the string-to-numbers
authorGuido van Rossum <guido@python.org>
Mon, 22 Jun 1998 03:54:15 +0000 (03:54 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 22 Jun 1998 03:54:15 +0000 (03:54 +0000)
commit3b2b34790ff86abcf87cfcfe061fd9fa8cb0ab32
treefcf7e3d2c49b3eab598a0e888acbca162379df8c
parentf57736e77a40aba1278d506e05655b03b0db8596
Fix the tests for various anomalies in the string-to-numbers
conversions.  Formerly, for example, int('-') would return 0 instead
of raising ValueError, and int(' 0') would raise ValueError
(complaining about a null byte!) instead of 0...
Objects/abstract.c