[pypy-commit] extradoc extradoc: Not a crasher, but a doubtful-in-my-opinion design decision
arigo
pypy.commits at gmail.com
Wed Aug 31 05:26:16 EDT 2016
Author: Armin Rigo <arigo at tunes.org>
Branch: extradoc
Changeset: r5697:cb1e43867d2c
Date: 2016-08-31 11:26 +0200
http://bitbucket.org/pypy/extradoc/changeset/cb1e43867d2c/
Log: Not a crasher, but a doubtful-in-my-opinion design decision
diff --git a/planning/py3.5/cpython-crashers.rst b/planning/py3.5/cpython-crashers.rst
--- a/planning/py3.5/cpython-crashers.rst
+++ b/planning/py3.5/cpython-crashers.rst
@@ -40,3 +40,9 @@
* re.sub(b'y', bytearray(b'a'), bytearray(b'xyz')) -> b'xaz'
re.sub(b'y', bytearray(b'\\n'), bytearray(b'xyz')) -> internal TypeError
+
+* not a bug: argument clinic turns the "bool" specifier into
+ PyObject_IsTrue(), accepting any argument whatsoever. This can easily
+ get very confusing for the user, e.g. after messing up the number of
+ arguments. For example: os.symlink("/path1", "/path2", "/path3")
+ doesn't fail, it just considers the 3rd argument as some true value.
More information about the pypy-commit
mailing list