- 23 Aug, 2016 23 commits
-
-
Victor Stinner authored
Issue #27809: * PyObject_CallMethodObjArgs(), _PyObject_CallMethodIdObjArgs() and PyObject_CallFunctionObjArgs() now use fast call to avoid the creation of a temporary tuple * Rename objargs_mktuple() to objargs_mkstack() * objargs_mkstack() now stores objects in a C array using borrowed references, instead of storing arguments into a tuple objargs_mkstack() uses a small buffer allocated on the C stack for 5 arguments or less, or allocates a buffer in the heap memory. Note: this change is different than the change 0e4f26083bbb, I fixed the test to decide if the small stack can be used or not. sizeof(PyObject**) was also replaced with sizeof(stack[0]) since the sizeof() was wrong (but gave the same result).
-
Victor Stinner authored
-
Victor Stinner authored
-
Victor Stinner authored
Issue #27809: * PyObject_CallMethodObjArgs(), _PyObject_CallMethodIdObjArgs() and PyObject_CallFunctionObjArgs() now use fast call to avoid the creation of a temporary tuple * Rename objargs_mktuple() to objargs_mkstack() * objargs_mkstack() now stores objects in a C array using borrowed references, instead of storing arguments into a tuple objargs_mkstack() uses a small buffer allocated on the C stack for 5 arguments or less, or allocates a buffer in the heap memory.
-
Victor Stinner authored
Use a small stack allocated in the C stack for up to 5 iterator functions, otherwise allocates a stack on the heap memory.
-
Mark Dickinson authored
-
Alexander Belopolsky authored
-
Zachary Ware authored
-
Terry Jan Reedy authored
-
-
-
Guido van Rossum authored
Patch by Ivan Levkivskyi, docs by Neil Girdhar.
-
-
Steven D'Aprano authored
-
Guido van Rossum authored
In asyncio.locks.Lock.acquire(): Avoid deadlock when a cancelled future is in self._waiters. (Merge 3.5->3.6)
-
Guido van Rossum authored
-
Steven D'Aprano authored
-
Mark Dickinson authored
-
Steven D'Aprano authored
-
Mark Dickinson authored
-
Victor Stinner authored
-
Martin Panter authored
The @reap_threads decorator made the test wait (for up to 1 s) until background threads have finished. Calling join() with a timeout should be equivalent.
-
Vinay Sajip authored
-
- 22 Aug, 2016 17 commits
-
-
Victor Stinner authored
-
Victor Stinner authored
Issue #27809: PyEval_CallObjectWithKeywords() doesn't increment temporary the reference counter of the args tuple (positional arguments). The caller already holds a strong reference to it.
-
Victor Stinner authored
-
Victor Stinner authored
-
Victor Stinner authored
-
Victor Stinner authored
-
Victor Stinner authored
Issue #27809: Helper function optimized to create an exception: use fastcall whenever possible.
-
Victor Stinner authored
Modify: * init_subclass() * builtin___build_class__() Fix also a bug in init_subclass(): check for super() failure.
-
Victor Stinner authored
Issue #27809. _PyObject_FastCallDict() now supports keyword arguments, and so the args==NULL fast-path can also be used when kwargs is not NULL.
-
Victor Stinner authored
Modify: * builtin_sorted() * classmethoddescr_call() * methoddescr_call() * wrapperdescr_call()
-
Victor Stinner authored
* Rename nm to name * PEP 7: add { ... } to if/else blocks
-
Victor Stinner authored
Issue #27809: * Rename _PyFunction_FastCall() to _PyFunction_FastCallDict() * Rename _PyCFunction_FastCall() to _PyCFunction_FastCallDict() * _PyFunction_FastCallDict() now supports keyword arguments
-
Victor Stinner authored
Issue #27809: * Rename _PyObject_FastCall() function to _PyObject_FastCallDict() * Add _PyObject_FastCall(), _PyObject_CallNoArg() and _PyObject_CallArg1() macros calling _PyObject_FastCallDict()
-
Berker Peksag authored
-
Berker Peksag authored
This was found by PVS-Studio: V595 The 'def' pointer was utilized before it was verified against nullptr. Check lines: 286, 292. pystate.c 286 Initial patch by Christian Heimes.
-
Victor Stinner authored
Use flush=True to try to get a warning which is missing in buildbots. Use also f-string to make the code shorter.
-
Victor Stinner authored
* main.py: remove unused import * runtest: simplify runtest_inner() parameters, reuse ns parameter
-