summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
...
* bpo-29697: Don't use OpenSSL <1.0.2 fallback on 1.1+ (GH-395)Donald Stufft2017-03-021-2/+2
|
* fix an error message and a comment in _testcapimodule.c (GH-392)orenmn2017-03-021-2/+3
|
* bpo-29176 Use tmpfile() in curses module (#235)Christian Heimes2017-03-021-37/+15
| | | | | | | | | | | The curses module used mkstemp() + fopen() to create a temporary file in /tmp. The /tmp directory does not exist on Android. The tmpfile() function simplifies the task a lot. It creates a temporary file in a correct directory, takes care of cleanup and returns FILE*. tmpfile is supported on all platforms (C89, POSIX 2001, Android, Windows). Signed-off-by: Christian Heimes <christian@python.org>
* bpo-28518: Start a transaction implicitly before a DML statement (#245)Berker Peksag2017-02-263-11/+12
| | | Patch by Aviv Palivoda.
* bpo-29634: Reduce deque repeat execution when maxlen exist and size is not 1 ↵Louie Lu2017-02-241-0/+4
| | | | (#255) (#255)
* Document why functools.partial() must copy kwargs (#253)Victor Stinner2017-02-231-0/+3
| | | | Add a comment to prevent further attempts to avoid a copy for optimization.
* Add sockaddr_alg to sock_addr_t (#234)Christian Heimes2017-02-222-30/+34
| | | | | | | | | | sock_addr_t is used to define the minimum size of any socket address on the stack. Let's make sure that an AF_ALG address always fits. Coverity complains because in theory, AF_ALG might be larger than any of the other structs. In practice it already fits. Closes Coverity CID 1398948, 1398949, 1398950 Signed-off-by: Christian Heimes <christian@python.org>
* bpo-29532: Altering a kwarg dictionary passed to functools.partial() (#190)Serhiy Storchaka2017-02-201-1/+4
| | | no longer affects a partial object after creation.
* Fixed bpo-29565: Corrected ctypes passing of large structs by value on ↵Vinay Sajip2017-02-202-0/+23
| | | | | | | | | | | | | | | Windows AMD64. (#168) * Fixed bpo-29565: Corrected ctypes passing of large structs by value. Added code and test to check that when a structure passed by value is large enough to need to be passed by reference, a copy of the original structure is passed. The callee updates the passed-in value, and the test verifies that the caller's copy is unchanged. A similar change was also added to the test added for bpo-20160 (that test was passing, but the changes should guard against regressions). * Reverted unintended whitespace changes.
* bpo-29548: Fix some inefficient call API usage (GH-97)INADA Naoki2017-02-163-10/+6
|
* bpo-29556: Remove unused #include <langinfo.h> (#98)Yen Chi Hsuan2017-02-151-4/+0
| | | | | | bltinmodule.c: Added in b744ba1 and no longer necessary since d64e8a7 posixmodule.c: Added in d1cd4d4 and no longer necessary since efb00c0 pythonrun.c: Added in 73d538b and no longer necessary since d600951 sysmodule.c: Added in 5467d4c and no longer necessary since a2c17c5
* Update URL of Mersenne Twister Home Page (#20)Hiroki Noda2017-02-151-3/+3
|
* Remove double definition of IPPROTO_IPV6 (#100)Maximilian Hils2017-02-141-3/+0
| | | IPPROTO_IPV6 is already defined further above in the same way.
* bpo-29176: Fix name of the _curses.window class (#52)Victor Stinner2017-02-121-1/+1
| | | | Set name to "_curses.window" instead of "_curses.curses window" (with a space!?).
* Merge 3.6Victor Stinner2017-02-101-21/+40
|\
| * Fix datetime.fromtimestamp(): check boundsVictor Stinner2017-02-101-21/+40
| | | | | | | | | | Issue #29100: Fix datetime.fromtimestamp() regression introduced in Python 3.6.0: check minimum and maximum years.
| * Issue #29513: Fixed a reference leak in os.scandir() added in issue #29034.Serhiy Storchaka2017-02-091-7/+0
| |
* | Issue #29513: Fix outdated comment and remove redundand code is os.scandir().Serhiy Storchaka2017-02-091-7/+3
| |
* | Optimize deque index, insert and rotate() methodsVictor Stinner2017-02-061-11/+29
| | | | | | | | | | | | | | | | | | | | | | Issue #29452: Use METH_FASTCALL calling convention for index(), insert() and rotate() methods of collections.deque to avoid the creation a temporary tuple to pass position arguments. Speedup on deque methods: * d.rotate(): 1.10x faster * d.rotate(1): 1.24x faster * d.insert(): 1.18x faster * d.index(): 1.24x faster
* | Issue #29460: _PyArg_NoKeywords(), _PyArg_NoStackKeywords() andSerhiy Storchaka2017-02-061-3/+3
| | | | | | | | _PyArg_NoPositional() now are macros.
* | Issue #20186: Regenerated Argument Clinic.Serhiy Storchaka2017-02-052-3/+3
| |
* | Merge from 3.6Steve Dower2017-02-051-1/+13
|\ \ | |/
| * Adds precheck for console filename to fix Windows 7.Steve Dower2017-02-051-1/+13
| |
* | Issue #29319: Prevent RunMainFromImporter overwriting sys.path[0].Steve Dower2017-02-041-2/+12
|\ \ | |/
| * Issue #29319: Prevent RunMainFromImporter overwriting sys.path[0].Steve Dower2017-02-041-2/+12
| |\
| | * Issue #29319: Prevent RunMainFromImporter overwriting sys.path[0].Steve Dower2017-02-041-2/+12
| | |
* | | Merge issue #28164 and issue #29409Steve Dower2017-02-042-37/+51
|\ \ \ | |/ /
| * | Issue #28164: Correctly handle special console filenames (patch by Eryk Sun)Steve Dower2017-02-041-20/+47
| | |
| * | Issue #29409: Implement PEP 529 for io.FileIO (Patch by Eryk Sun)Steve Dower2017-02-041-17/+14
| | |
* | | Issue #29444: Fixed out-of-bounds buffer access in the group() method ofSerhiy Storchaka2017-02-041-2/+7
|\ \ \ | |/ / | | | | | | the match object. Based on patch by WGH.
| * | Issue #29444: Fixed out-of-bounds buffer access in the group() method ofSerhiy Storchaka2017-02-041-2/+7
| |\ \ | | |/ | | | | | | the match object. Based on patch by WGH.
| | * Issue #29444: Fixed out-of-bounds buffer access in the group() method ofSerhiy Storchaka2017-02-041-2/+7
| | | | | | | | | | | | the match object. Based on patch by WGH.
* | | Issue #20186: Converted the tracemalloc module to Argument Clinic.Serhiy Storchaka2017-02-042-102/+315
| | | | | | | | | | | | Based on patch by Georg Brandl.
* | | Issue #20186: Converted the symtable module to Argument Clinic.Serhiy Storchaka2017-02-042-11/+61
| | | | | | | | | | | | Original patch by Georg Brandl.
* | | Removed redundant Argument Clinic directives.Serhiy Storchaka2017-02-042-14/+0
| | |
* | | Issue #20185: Converted the gc module to Argument Clinic.Serhiy Storchaka2017-02-042-98/+390
| | |
* | | Issue #29300: Use Argument Clinic for getting struct object from the format.Serhiy Storchaka2017-02-042-83/+103
| | |
* | | Rename struct.unpack() 2nd parameter to "buffer"Victor Stinner2017-02-022-12/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Issue #29300: Convert _struct module to Argument ClinicVictor Stinner2017-02-022-226/+522
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* | | Issue #29368: Fix _Pickle_FastCall() usage in do_append()Victor Stinner2017-02-021-1/+0
| | | | | | | | | | | | | | | _Pickle_FastCall() has a surprising API: it decrements the reference counter of its second argument.
* | | Issue #29368: The extend() method is now called instead of the append()Serhiy Storchaka2017-02-021-19/+41
| | | | | | | | | | | | | | | method when unpickle collections.deque and other list-like objects. This can speed up unpickling to 2 times.
* | | merge 3.6 (#29398)Benjamin Peterson2017-02-011-1/+1
|\ \ \ | |/ /
| * | merge 3.5 (#29398)Benjamin Peterson2017-02-011-1/+1
| |\ \ | | |/
| | * gc types needs to be allocated as such (closes #29398)Benjamin Peterson2017-02-011-1/+1
| | |
* | | merge 3.6doko@ubuntu.com2017-01-3128-1176/+2105
|\ \ \ | |/ /
| * | merge 3.5doko@ubuntu.com2017-01-3128-1176/+2105
| |\ \ | | |/
| | * - Issue #29169: Update zlib to 1.2.10.doko@ubuntu.com2017-01-3128-1176/+2105
| | |
* | | Issue #29384: Remove Be OS scripts from Modules/, unused in 3.0+Martin Panter2017-01-292-151/+0
| | |
* | | Issue #28999: Use Py_RETURN_NONE, Py_RETURN_TRUE and Py_RETURN_FALSE whereverSerhiy Storchaka2017-01-233-9/+5
| | | | | | | | | | | | possible but Coccinelle couldn't find opportunity.
* | | Issue #28999: Use Py_RETURN_NONE, Py_RETURN_TRUE and Py_RETURN_FALSE whereverSerhiy Storchaka2017-01-2342-316/+161
| | | | | | | | | | | | possible. Patch is writen with Coccinelle.