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
+# 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.
On Sun, Dec 23, 2012 at 12:03 PM, Terry Reedy tjre...@udel.edu 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 12/23/2012 4:47 PM, Chris Jerdonek wrote:
On Sun, Dec 23, 2012 at 12:03 PM, Terry Reedy tjre...@udel.edu 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
On Sun, Dec 23, 2012 at 6:19 PM, Terry Reedy tjre...@udel.edu wrote:
On 12/23/2012 4:47 PM, Chris Jerdonek wrote:
On Sun, Dec 23, 2012 at 12:03 PM, Terry Reedy tjre...@udel.edu wrote:
+# For example, PyPy 1.9.0 raised TypeError for these cases because
it
+# expects x to be a string