- 04 Feb, 2017 4 commits
-
-
Berker Peksag authored
-
Berker Peksag authored
-
Berker Peksag authored
Patch by Jelle Zijlstra.
-
Serhiy Storchaka authored
-
- 03 Feb, 2017 1 commit
-
-
Xiang Zhang authored
-
- 02 Feb, 2017 20 commits
-
-
INADA Naoki authored
Calling builtin method is at most 10% faster.
-
Vinay Sajip authored
-
Vinay Sajip authored
-
Vinay Sajip authored
-
Vinay Sajip authored
-
Vinay Sajip authored
-
Vinay Sajip authored
-
Raymond Hettinger authored
* so->used never gets changed during a resize * so->filled only changes when dummies are present and being eliminated
-
Serhiy Storchaka authored
(10-20% for small integers).
-
Victor Stinner authored
Issue #29300: Rename struct.unpack() second parameter from "inputstr" to "buffer", and use the Py_buffer type. Fix also unit tests on struct.unpack() which passed a Unicode string instead of a bytes string as struct.unpack() second parameter. The purpose of test_trailing_counter() is to test invalid format strings, not to test the buffer parameter.
-
Victor Stinner authored
-
Victor Stinner authored
-
Victor Stinner authored
Add an unit test on the _struct.Struct.unpack_from() method to test passing arguments as keywords.
-
Victor Stinner authored
* The struct module now requires contiguous buffers. * Convert most functions and methods of the _struct module to Argument Clinic * Use "Py_buffer" type for the "buffer" argument. Argument Clinic is responsible to create and release the Py_buffer object. * Use "PyStructObject *" type for self to avoid explicit conversions. * Add an unit test on the _struct.Struct.unpack_from() method to test passing arguments as keywords. * Rephrase docstrings. * Rename "fmt" argument to "format" in docstrings and the documentation. As a side effect, functions and methods which used METH_VARARGS calling convention like struct.pack() now use the METH_FASTCALL calling convention which avoids the creation of temporary tuple to pass positional arguments and so is faster. For example, struct.pack("i", 1) becomes 1.56x faster (-36%):: $ ./python -m perf timeit \ -s 'import struct; pack=struct.pack' 'pack("i", 1)' \ --compare-to=../default-ref/python Median +- std dev: 119 ns +- 1 ns -> 76.8 ns +- 0.4 ns: 1.56x faster (-36%) Significant (t=295.91) Patch co-written with Serhiy Storchaka.
-
Victor Stinner authored
_Pickle_FastCall() has a surprising API: it decrements the reference counter of its second argument.
-
Serhiy Storchaka authored
method when unpickle collections.deque and other list-like objects. This can speed up unpickling to 2 times.
-
Mariatta Wijaya authored
-
Mariatta Wijaya authored
-
Mariatta Wijaya authored
-
Mariatta Wijaya authored
-
- 01 Feb, 2017 15 commits
-
-
Serhiy Storchaka authored
Based on patch by Vajrasky Kok.
-
Berker Peksag authored
-
Berker Peksag authored
-
Berker Peksag authored
-
Guido van Rossum authored
-
Victor Stinner authored
Issue #29367. On Python 2, __init__ name is render as u'__init__'.
-
Victor Stinner authored
Rename also "l" argument to "nargs".
-
Victor Stinner authored
Issue #29318: Caller and callee functions must not share the dictionary: kwargs must be copied.
-
Victor Stinner authored
Issue #29367. Use two break points to prevent breakpoint during Python initialization.
-
Victor Stinner authored
Issue #29367: python-gdb.py now supports also method-wrapper (wrapperobject) objects.
-
doko@ubuntu.com authored
-
doko@ubuntu.com authored
-
doko@ubuntu.com authored
-
Benjamin Peterson authored
-
Benjamin Peterson authored
-