summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* bpo-25455: Fixed crashes in repr of recursive buffered file-like objects. (#514)Serhiy Storchaka2017-03-193-8/+45
|
* bpo-29800: Fix crashes in partial.__repr__ if the keys of partial.keywords ↵Michael Seifert2017-03-151-1/+4
| | | | are not strings (#649)
* bpo-29735: Optimize partial_call(): avoid tuple (#516)Victor Stinner2017-03-141-35/+80
| | | | | | | | * Add _PyObject_HasFastCall() * partial_call() now avoids temporary tuple to pass positional arguments if the callable supports the FASTCALL calling convention for positional arguments. * Fix also a performance regression in partial_call() if the callable doesn't support FASTCALL.
* bpo-29730: replace some calls to PyNumber_Check and improve some error ↵Oren Milman2017-03-124-10/+20
| | | | messages (#650)
* bpo-28667: Fix a compile warning on FreeBSD when compare with FD_SETSIZE. (#501)Serhiy Storchaka2017-03-121-4/+4
| | | FreeBSD is the only platforms with unsigned FD_SETSIZE.
* bpo-26121: Revert to using the own implementations of lgamma and gamma on ↵Serhiy Storchaka2017-03-121-31/+0
| | | | all platforms. (#637)
* bpo-20185: Convert the resource moduel to Argument Clinic. (#545)Serhiy Storchaka2017-03-122-36/+239
| | | Based on patch by Vajrasky Kok.
* bpo-29723: Consistently configure sys.path[0] (#575)Nick Coghlan2017-03-121-28/+44
| | | | | | | | | | | | | | | | | | | | | | Directory and zipfile execution previously added the parent directory of the directory or zipfile as sys.path[0] and then subsequently overwrote it with the directory or zipfile itself. This caused problems in isolated mode, as it overwrote the "stdlib as a zip archive" entry in sys.path, as the parent directory was never added. The attempted fix to that issue in bpo-29319 created the opposite problem in *non*-isolated mode, by potentially leaving the parent directory on sys.path instead of overwriting it. This change fixes the root cause of the problem by removing the whole "add-and-overwrite" dance for sys.path[0], and instead simply never adds the parent directory to sys.path in the first place.
* bpo-15695: Implemented StgDict.__sizeof__(). (#509)Serhiy Storchaka2017-03-121-1/+21
|
* bpo-24037: Add Argument Clinic converter `bool(accept={int})`. (#485)Serhiy Storchaka2017-03-1210-62/+62
|
* bpo-26121: Use C library implementation for math functions: (#515)Serhiy Storchaka2017-03-111-1/+45
| | | | | | | * bpo-26121: Use C library implementation for math functions: tgamma(), lgamma(), erf() and erfc(). * Don't use tgamma() and lgamma() from libc on OS X.
* bpo-29770: remove outdated PYO related info (GH-590)Xiang Zhang2017-03-112-4/+4
|
* bpo-29741: Clean up C implementations of BytesIO and StringIO. (#606)orenmn2017-03-104-120/+68
| | | Some BytesIO methods now accept not just int subclasses but other int-like types.
* bpo-29619: Convert st_ino using unsigned integer (#557)Victor Stinner2017-03-091-5/+8
| | | | bpo-29619: os.stat() and os.DirEntry.inodeo() now convert inode (st_ino) using unsigned integers.
* bpo-28298: make array 'Q', 'L' and 'I' accept big intables as elements (#570)orenmn2017-03-091-46/+62
|
* bpo-29768: Fixed compile-time check for expat version. (#574)Serhiy Storchaka2017-03-091-1/+1
|
* allow the first call to wcsxfrm to return ERANGE (#536)Benjamin Peterson2017-03-081-1/+1
| | | If the output buffer provided to wcsxfrm is too small, errno is set to ERANGE. We should not error out in that case.
* bpo-15954: Check return code of wcsxfrm(). (#508)Serhiy Storchaka2017-03-061-4/+12
|
* bpo-27593: Get SCM build info from git instead of hg. (#446)Ned Deily2017-03-041-23/+23
| | | | | | | sys.version and the platform module python_build(), python_branch(), and python_revision() functions now use git information rather than hg when building from a repo. Based on original patches by Brett Cannon and Steve Dower.
* bpo-9303: Migrate sqlite3 module to _v2 API to enhance performance (#359)Aviv Palivoda2017-03-035-9/+28
|
* bpo-28963: Fix out of bound iteration in ↵Yury Selivanov2017-03-031-1/+1
| | | | asyncio.Future.remove_done_callback/C (#408)
* bpo-29271: Fix Task.current_task and Task.all_tasks to accept None. (#406)Yury Selivanov2017-03-032-9/+9
|
* bpo-28129: fix ctypes crashes (#386)orenmn2017-03-022-9/+34
| | | | | | | | | | | | * init commit, with initial tests for from_param and fields __set__ and __get__, and some additions to from_buffer and from_buffer_copy * added the rest of tests and patches. probably only a first draft. * removed trailing spaces * replace ctype with ctypes in error messages * change back from ctypes instance to ctype instance
* 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
|\ \ \ | |/ /