➜

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients docs@python, serhiy.storchaka, vstinner
Date 2016-12-16.08:14:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <[email protected]>
In-reply-to
Content
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);
History
Date User Action Args
2016-12-16 08:14:52vstinnersetrecipients: + vstinner, docs@python, serhiy.storchaka
2016-12-16 08:14:52vstinnersetmessageid: <[email protected]>
2016-12-16 08:14:52vstinnerlinkissue28977 messages
2016-12-16 08:14:52vstinnercreate