Re: [Python-Dev] PyObject_CallFunction(func, "O", arg) special case

2017-01-17 Thread Victor Stinner
Oh, I found another recent bug fixed because of the "O" weird behaviour: http://bugs.python.org/issue26478 "dict views don't implement subtraction correctly" Victor 2016-12-09 18:46 GMT+01:00 Victor Stinner : > Hi, > > The PyObject_CallFunction() function has a special case when the > format stri

Re: [Python-Dev] PyObject_CallFunction(func, "O", arg) special case

2016-12-15 Thread Victor Stinner
2016-12-15 10:54 GMT+01:00 Victor Stinner : > Oh, right. No idea what/who compiles the documentation. I expected at > least one build per day? I am told that it can be related to https://github.com/python/docsbuild-scripts/pull/7 Victor ___ Python-Dev m

Re: [Python-Dev] PyObject_CallFunction(func, "O", arg) special case

2016-12-15 Thread Victor Stinner
2016-12-15 10:46 GMT+01:00 Serhiy Storchaka : > https://docs.python.org/3/c-api/object.html#c.PyObject_CallMethod > > Seems online documentation is not updated. "Last updated on Dec 08, 2016." Oh, right. No idea what/who compiles the documentation. I expected at least one build per day? Someone

Re: [Python-Dev] PyObject_CallFunction(func, "O", arg) special case

2016-12-15 Thread Serhiy Storchaka
On 15.12.16 10:45, Victor Stinner wrote: > Ah? It's possible that I forgot to update the documentation of some > functions. But sorry, I don't see where. Can you point me which file > is outdated please? https://docs.python.org/3/c-api/object.html#c.PyObject_CallMethod Seems online documentation

Re: [Python-Dev] PyObject_CallFunction(func, "O", arg) special case

2016-12-15 Thread Victor Stinner
Hi, 2016-12-10 7:43 GMT+01:00 Serhiy Storchaka : > It is documented for Py_BuildValue(), and the documentation of > PyObject_CallFunction() refers to Py_BuildValue(). You're right, but even if I read the documentation of Py_BuildValue() every week, I never noticed that PyObject_CallFunction() beh

Re: [Python-Dev] PyObject_CallFunction(func, "O", arg) special case

2016-12-12 Thread Annapoornima Koppad
I am not sure, but soon, I will be a great fan of your work, once I get to work on this! Thank your for inspiring me to work on these stuff! Best regards, Annapoornima On Fri, Dec 9, 2016 at 11:33 PM, Victor Stinner wrote: > 2016-12-09 18:46 GMT+01:00 Victor Stinner : > > Last days, I patched

Re: [Python-Dev] PyObject_CallFunction(func, "O", arg) special case

2016-12-09 Thread Serhiy Storchaka
On 09.12.16 19:46, Victor Stinner wrote: Last days, I patched functions of PyObject_CallFunction() family to use internally fast calls. I implemented the special case to keep backward compatibility. I replaced a lot of code using PyObject_CallFunction() with PyObject_CallFunctionObjArgs() when t

Re: [Python-Dev] PyObject_CallFunction(func, "O", arg) special case

2016-12-09 Thread Serhiy Storchaka
On 09.12.16 19:46, Victor Stinner wrote: The PyObject_CallFunction() function has a special case when the format string is "O", to pass exactly one Python object: * If the argument is a tuple, the tuple is unpacked: it behaves like func(*arg) * Otherwise, it behaves like func(arg) This case is

Re: [Python-Dev] PyObject_CallFunction(func, "O", arg) special case

2016-12-09 Thread Victor Stinner
2016-12-09 18:46 GMT+01:00 Victor Stinner : > Last days, I patched functions of PyObject_CallFunction() family to > use internally fast calls. > (...) > http://bugs.python.org/issue28915 Oh, I forgot to mention the performance results of these changes. Python slots are now a little bit faster. Ext