Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Expand the PySlice_GetIndicesEx macro. (#1023) | Serhiy Storchaka | 2017-04-08 | 5 | -25/+24 |
| | |||||
* | bpo-29962: add math.remainder (#950) | Mark Dickinson | 2017-04-05 | 1 | -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 Nester | 2017-04-04 | 1 | -4/+30 |
| | |||||
* | Correct typo (#976) | Angus Hollands | 2017-04-03 | 1 | -1/+1 |
| | |||||
* | bpo-29953: Fix memory leaks in the replace() method of datetime and time (#927) | Serhiy Storchaka | 2017-03-31 | 1 | -11/+10 |
| | | | objects when pass out of bound fold argument. | ||||
* | suppress compiler warnings in _ctypes_test (#902) | Benjamin Peterson | 2017-03-31 | 1 | -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 Lu | 2017-03-30 | 1 | -1/+3 |
| | |||||
* | bpo-29942: Fix the use of recursion in itertools.chain.from_iterable. (#889) | T. Wouters | 2017-03-30 | 1 | -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 Storchaka | 2017-03-30 | 1 | -2/+2 |
| | | | | | deque (#887) when pass indices of wrong type. | ||||
* | bpo-29204: Emit warnings for already deprecated ElementTree features. (#773) | Serhiy Storchaka | 2017-03-30 | 2 | -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 Storchaka | 2017-03-30 | 1 | -48/+52 |
| | |||||
* | bpo-29852: Argument Clinic Py_ssize_t converter now supports None (#716) | Serhiy Storchaka | 2017-03-30 | 17 | -198/+60 |
| | | | if pass `accept={int, NoneType}`. | ||||
* | bpo-25996: Added support of file descriptors in os.scandir() on Unix. (#502) | Serhiy Storchaka | 2017-03-30 | 2 | -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 Storchaka | 2017-03-30 | 9 | -61/+24 |
| | |||||
* | bpo-29932: Fix small error message typos in arraymodule.c (GH-888) | Sylvain | 2017-03-29 | 1 | -3/+3 |
| | |||||
* | bpo-29919: Remove unused imports found by pyflakes (#137) | Victor Stinner | 2017-03-27 | 1 | -1/+0 |
| | | | Make also minor PEP8 coding style fixes on modified imports. | ||||
* | Simplify partial.__new__. (#813) | Serhiy Storchaka | 2017-03-25 | 1 | -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 Zeitouny | 2017-03-23 | 1 | -1/+16 |
| | |||||
* | Use NULL rather than 0. (#778) | Serhiy Storchaka | 2017-03-23 | 6 | -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 Storchaka | 2017-03-23 | 9 | -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. Smith | 2017-03-23 | 1 | -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 Storchaka | 2017-03-21 | 7 | -16/+16 |
| | | | | (#748) | ||||
* | bpo-25455: Fixed crashes in repr of recursive buffered file-like objects. (#514) | Serhiy Storchaka | 2017-03-19 | 3 | -8/+45 |
| | |||||
* | bpo-29800: Fix crashes in partial.__repr__ if the keys of partial.keywords ↵ | Michael Seifert | 2017-03-15 | 1 | -1/+4 |
| | | | | are not strings (#649) | ||||
* | bpo-29735: Optimize partial_call(): avoid tuple (#516) | Victor Stinner | 2017-03-14 | 1 | -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 Milman | 2017-03-12 | 4 | -10/+20 |
| | | | | messages (#650) | ||||
* | bpo-28667: Fix a compile warning on FreeBSD when compare with FD_SETSIZE. (#501) | Serhiy Storchaka | 2017-03-12 | 1 | -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 Storchaka | 2017-03-12 | 1 | -31/+0 |
| | | | | all platforms. (#637) | ||||
* | bpo-20185: Convert the resource moduel to Argument Clinic. (#545) | Serhiy Storchaka | 2017-03-12 | 2 | -36/+239 |
| | | | Based on patch by Vajrasky Kok. | ||||
* | bpo-29723: Consistently configure sys.path[0] (#575) | Nick Coghlan | 2017-03-12 | 1 | -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 Storchaka | 2017-03-12 | 1 | -1/+21 |
| | |||||
* | bpo-24037: Add Argument Clinic converter `bool(accept={int})`. (#485) | Serhiy Storchaka | 2017-03-12 | 10 | -62/+62 |
| | |||||
* | bpo-26121: Use C library implementation for math functions: (#515) | Serhiy Storchaka | 2017-03-11 | 1 | -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 Zhang | 2017-03-11 | 2 | -4/+4 |
| | |||||
* | bpo-29741: Clean up C implementations of BytesIO and StringIO. (#606) | orenmn | 2017-03-10 | 4 | -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 Stinner | 2017-03-09 | 1 | -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) | orenmn | 2017-03-09 | 1 | -46/+62 |
| | |||||
* | bpo-29768: Fixed compile-time check for expat version. (#574) | Serhiy Storchaka | 2017-03-09 | 1 | -1/+1 |
| | |||||
* | allow the first call to wcsxfrm to return ERANGE (#536) | Benjamin Peterson | 2017-03-08 | 1 | -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 Storchaka | 2017-03-06 | 1 | -4/+12 |
| | |||||
* | bpo-27593: Get SCM build info from git instead of hg. (#446) | Ned Deily | 2017-03-04 | 1 | -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 Palivoda | 2017-03-03 | 5 | -9/+28 |
| | |||||
* | bpo-28963: Fix out of bound iteration in ↵ | Yury Selivanov | 2017-03-03 | 1 | -1/+1 |
| | | | | asyncio.Future.remove_done_callback/C (#408) | ||||
* | bpo-29271: Fix Task.current_task and Task.all_tasks to accept None. (#406) | Yury Selivanov | 2017-03-03 | 2 | -9/+9 |
| | |||||
* | bpo-28129: fix ctypes crashes (#386) | orenmn | 2017-03-02 | 2 | -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 Stufft | 2017-03-02 | 1 | -2/+2 |
| | |||||
* | fix an error message and a comment in _testcapimodule.c (GH-392) | orenmn | 2017-03-02 | 1 | -2/+3 |
| | |||||
* | bpo-29176 Use tmpfile() in curses module (#235) | Christian Heimes | 2017-03-02 | 1 | -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 Peksag | 2017-02-26 | 3 | -11/+12 |
| | | | Patch by Aviv Palivoda. | ||||
* | bpo-29634: Reduce deque repeat execution when maxlen exist and size is not 1 ↵ | Louie Lu | 2017-02-24 | 1 | -0/+4 |
| | | | | (#255) (#255) |