summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* Expand the PySlice_GetIndicesEx macro. (#1023)Serhiy Storchaka2017-04-085-25/+24
|
* bpo-29962: add math.remainder (#950)Mark Dickinson2017-04-051-0/+103
| | | | | | | | | | | | | | * Implement math.remainder. * Fix markup for arguments; use double spaces after period. * Mark up function reference in what's new entry. * Add comment explaining the calculation in the final branch. * Fix out-of-order entry in whatsnew. * Add comment explaining why it's good enough to compare m with c, in spite of possible rounding error.
* bpo-29649: Improve struct.pack_into() boundary error messages (#424)Andrew Nester2017-04-041-4/+30
|
* Correct typo (#976)Angus Hollands2017-04-031-1/+1
|
* bpo-29953: Fix memory leaks in the replace() method of datetime and time (#927)Serhiy Storchaka2017-03-311-11/+10
| | | objects when pass out of bound fold argument.
* suppress compiler warnings in _ctypes_test (#902)Benjamin Peterson2017-03-311-3/+3
| | | Changed test code to suppress a compiler warning, while taking care to avoid the code being optimized out by the compiler.
* bpo-29946: Fix "sqrtpi defined but not used" (#908)Louie Lu2017-03-301-1/+3
|
* bpo-29942: Fix the use of recursion in itertools.chain.from_iterable. (#889)T. Wouters2017-03-301-24/+28
| | | | | Fix the use of recursion in itertools.chain.from_iterable. Using recursion is unnecessary, and can easily cause stack overflows, especially when building in low optimization modes or with Py_DEBUG enabled.
* bpo-29935: Fixed error messages in the index() method of tuple, list and ↵Serhiy Storchaka2017-03-301-2/+2
| | | | | deque (#887) when pass indices of wrong type.
* bpo-29204: Emit warnings for already deprecated ElementTree features. (#773)Serhiy Storchaka2017-03-302-3/+67
| | | | | | | | Element.getiterator() and the html parameter of XMLParser() were deprecated only in the documentation (since Python 3.2 and 3.4 correspondintly). Now using them emits a deprecation warning. * Don’t need check_warnings any more.
* bpo-27863: Fixed multiple crashes in ElementTree. (#765)Serhiy Storchaka2017-03-301-48/+52
|
* bpo-29852: Argument Clinic Py_ssize_t converter now supports None (#716)Serhiy Storchaka2017-03-3017-198/+60
| | | if pass `accept={int, NoneType}`.
* bpo-25996: Added support of file descriptors in os.scandir() on Unix. (#502)Serhiy Storchaka2017-03-302-24/+85
| | | | os.fwalk() is sped up by 2 times by using os.scandir().
* bpo-29878: Add global instances of int for 0 and 1. (#852)Serhiy Storchaka2017-03-309-61/+24
|
* bpo-29932: Fix small error message typos in arraymodule.c (GH-888)Sylvain2017-03-291-3/+3
|
* bpo-29919: Remove unused imports found by pyflakes (#137)Victor Stinner2017-03-271-1/+0
| | | Make also minor PEP8 coding style fixes on modified imports.
* Simplify partial.__new__. (#813)Serhiy Storchaka2017-03-251-8/+2
| | | | Fast paths in partial.__new__ no longer needed since concatenating with empty tuple was optimized.
* faulthandler: Restore the old sigaltstack during teardown (#777)Christophe Zeitouny2017-03-231-1/+16
|
* Use NULL rather than 0. (#778)Serhiy Storchaka2017-03-236-13/+13
| | | | | There was few cases of using literal 0 instead of NULL in the context of pointers. While this was a legitimate C code, using NULL rather than 0 makes the code clearer.
* bpo-6532: Make the thread id an unsigned integer. (#781)Serhiy Storchaka2017-03-239-30/+30
| | | | | | | | | | | * bpo-6532: Make the thread id an unsigned integer. From C API side the type of results of PyThread_start_new_thread() and PyThread_get_thread_ident(), the id parameter of PyThreadState_SetAsyncExc(), and the thread_id field of PyThreadState changed from "long" to "unsigned long". * Restore a check in thread_get_ident().
* bpo-29728: Provide socket.TCP_NOTSENT_LOWAT (#477)Nathaniel J. Smith2017-03-231-0/+3
| | | | | * Provide socket.TCP_NOTSENT_LOWAT * New TCP option available on recent MacOS and Linux. * Document addition of TCP_NOTSENT_LOWAT
* bpo-29865: Use PyXXX_GET_SIZE macros rather than Py_SIZE for concrete types. ↵Serhiy Storchaka2017-03-217-16/+16
| | | | (#748)
* 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)