On 23.12.12 22:03, Terry Reedy wrote:
I think the above behavior is buggy and should be changed rather than
frozen into CPython with a test. According to the docs, PyPy does it right.
http://bugs.python.org/issue16761
___
Python-Dev mailing list
Pyt
On Sun, Dec 23, 2012 at 6:19 PM, Terry Reedy wrote:
> On 12/23/2012 4:47 PM, Chris Jerdonek wrote:
>> On Sun, Dec 23, 2012 at 12:03 PM, Terry Reedy wrote:
>>>
+# For example, PyPy 1.9.0 raised TypeError for these cases because
it
+# expects x to be a string if base is given
On 12/23/2012 4:47 PM, Chris Jerdonek wrote:
On Sun, Dec 23, 2012 at 12:03 PM, Terry Reedy wrote:
+# For example, PyPy 1.9.0 raised TypeError for these cases because it
+# expects x to be a string if base is given.
+@support.cpython_only
+def test_base_arg_with_no_x_arg(self):
On Sun, Dec 23, 2012 at 12:03 PM, Terry Reedy wrote:
>
>> +# For example, PyPy 1.9.0 raised TypeError for these cases because it
>> +# expects x to be a string if base is given.
>> +@support.cpython_only
>> +def test_base_arg_with_no_x_arg(self):
>> +self.assertEquals(int(b
+# For example, PyPy 1.9.0 raised TypeError for these cases because it
+# expects x to be a string if base is given.
+@support.cpython_only
+def test_base_arg_with_no_x_arg(self):
+self.assertEquals(int(base=6), 0)
+# Even invalid bases don't raise an exception.
+