Josh Rosenberg added the comment:

The motivation for this change was Mr. STINNER's comment on #26814 ( 
https://bugs.python.org/issue26814#msg263923 ), where he mentioned the 
weirdness of PyObject_CallFunction and friends, which complicates the 
implementation of PyObject_FastCall and alerted me to a second case ( #21209 ) 
in which this silent fix up has caused confusing issues in CPython (I filed 
#26478 so I recognized the issue).

If this fix could be made, it might be possible to eventually make the check 
for non-tuple arguments a debug build only check (or a check only on public 
APIs), allowing the implementation in release mode and/or internal APIs to 
avoid the work involved in constantly checking for and performing this 
workaround to fix doc violating code, and possible simplify PyObject_FastCall 
by removing the corner case.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue26820>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to