STINNER Victor added the comment:

If the behaviour of PyObject_CallFunction(func, "O", arg) is changed, an 
application relying on the current behaviour would have to replace:

   res = PyObject_CallFunction(func, "O", arg);

with:

   /* code working on any Python version */
   if (PyTuple_Check(arg))
       res = PyObject_Call(func, arg, NULL);
   else
       res = PyObject_CallFunction(func, "O", arg);

----------

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

Reply via email to