Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-34762: Fix contextvars C API to use PyObject* pointer types. (GH-9473) | Yury Selivanov | 2018-09-21 | 1 | -1/+1 |
| | |||||
* | Minor performance tweak for deque.index() with a start argument (GH-9440) | Raymond Hettinger | 2018-09-21 | 1 | -2/+4 |
| | |||||
* | bpo-34755: Add few minor optimizations in _asynciomodule.c. (GH-9455) | Serhiy Storchaka | 2018-09-21 | 1 | -158/+116 |
| | |||||
* | bpo-34735: Fix a memory leak in Modules/timemodule.c (GH-9418) | Zackery Spytz | 2018-09-21 | 1 | -0/+1 |
| | | | There was a missing PyMem_Free(format) in time_strftime(). | ||||
* | Simplify PyInit_timezone. (GH-9467) | Benjamin Peterson | 2018-09-21 | 1 | -50/+48 |
| | | | | | | | | Reduce the knotty preprocessor conditional logic, dedent unnecessarily nested code, and handle errors properly. The first edition of this change (afde1c1a05cc8a1e8adf6403c451f6708509a605) failed (bpo-34715) because FreeBSD doesn't define the timezone globals. That's why we're now checking for HAVE_DECL_TZNAME. | ||||
* | closes bpo-34656: Avoid relying on signed overflow in _pickle memos. (GH-9261) | Benjamin Peterson | 2018-09-21 | 1 | -31/+31 |
| | |||||
* | bpo-34743: Fix test_database_source_name under SQLite 3.7.9 (GH-9426) | Berker Peksag | 2018-09-20 | 1 | -0/+6 |
| | |||||
* | bpo-32215: Fix performance regression in sqlite3 (GH-8511) | Berker Peksag | 2018-09-20 | 1 | -4/+4 |
| | |||||
* | Revert "bpo-34589: Add -X coerce_c_locale command line option (GH-9378)" ↵ | Victor Stinner | 2018-09-19 | 2 | -32/+13 |
| | | | | | | | | | | | | | | | | (GH-9430) * Revert "bpo-34589: Add -X coerce_c_locale command line option (GH-9378)" This reverts commit dbdee0073cf0b88fe541980ace1f650900f455cc. * Revert "bpo-34589: C locale coercion off by default (GH-9073)" This reverts commit 7a0791b6992d420dc52536257f2f093851ed7215. * Revert "bpo-34589: Make _PyCoreConfig.coerce_c_locale private (GH-9371)" This reverts commit 188ebfa475a6f6aa2d0ea14ca8e1fbe7865b6d27. | ||||
* | bpo-25711: Rewrite zipimport in pure Python. (GH-6809) | Serhiy Storchaka | 2018-09-18 | 3 | -1993/+0 |
| | |||||
* | bpo-34623: Use XML_SetHashSalt in _elementtree (GH-9146) | Christian Heimes | 2018-09-18 | 2 | -0/+10 |
| | | | | | | | | | | The C accelerated _elementtree module now initializes hash randomization salt from _Py_HashSecret instead of libexpat's default CPRNG. Signed-off-by: Christian Heimes <christian@python.org> https://bugs.python.org/issue34623 | ||||
* | bpo-33721: Make some os.path functions and pathlib.Path methods be tolerant ↵ | Serhiy Storchaka | 2018-09-18 | 2 | -26/+15 |
| | | | | | | | | | | to invalid paths. (#7695) Such functions as os.path.exists(), os.path.lexists(), os.path.isdir(), os.path.isfile(), os.path.islink(), and os.path.ismount() now return False instead of raising ValueError or its subclasses UnicodeEncodeError and UnicodeDecodeError for paths that contain characters or bytes unrepresentative at the OS level. | ||||
* | bpo-32455: Add jump parameter to dis.stack_effect(). (GH-6610) | Serhiy Storchaka | 2018-09-18 | 2 | -11/+33 |
| | | | | Add C API function PyCompile_OpcodeStackEffectWithJump(). | ||||
* | bpo-34589: C locale coercion off by default (GH-9073) | Victor Stinner | 2018-09-17 | 1 | -5/+24 |
| | | | | | | | | | Py_Initialize() and Py_Main() cannot enable the C locale coercion (PEP 538) anymore: it is always disabled. It can now only be enabled by the Python program ("python3). test_embed: get_filesystem_encoding() doesn't have to set PYTHONUTF8 nor PYTHONCOERCECLOCALE, these variables are already set in the parent. | ||||
* | bpo-34589: Make _PyCoreConfig.coerce_c_locale private (GH-9371) | Victor Stinner | 2018-09-17 | 2 | -8/+8 |
| | | | | | | | | _PyCoreConfig: * Rename coerce_c_locale to _coerce_c_locale * Rename coerce_c_locale_warn to _coerce_c_locale_warn These fields are now private (name prefixed by "_"). | ||||
* | bpo-34715: Revert "Simplify PyInit_timezone. (GH-9323)" (GH-9366) | Victor Stinner | 2018-09-17 | 1 | -15/+68 |
| | | | This reverts commit afde1c1a05cc8a1e8adf6403c451f6708509a605. | ||||
* | bpo-32533: Fixed thread-safety of error handling in _ssl. (GH-7158) | Steve Dower | 2018-09-17 | 1 | -60/+68 |
| | |||||
* | Convert os.readlink() to Argument Clinic. (GH-8778) | Serhiy Storchaka | 2018-09-17 | 2 | -84/+202 |
| | | | Also convert os.get_blocking() and os.set_blocking(). | ||||
* | bpo-34710: fix SSL module build (GH-9347) | Alexandru Ardelean | 2018-09-17 | 1 | -0/+1 |
| | | | | | | Include ``openssl/dh.h`` header file to fix implicit function declaration of ``DH_free()``. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com> | ||||
* | bpo-34603, ctypes/libffi_msvc: Fix returning structs from functions (GH-9258) | Vladimir Matveev | 2018-09-16 | 5 | -6/+221 |
| | |||||
* | Simplify PyInit_timezone. (GH-9323) | Benjamin Peterson | 2018-09-14 | 1 | -68/+15 |
| | | | Assume tzname exists. Only use a hack to compute altzone if it's not defined. | ||||
* | bpo-34651: Only allow the main interpreter to fork. (gh-9279) | Eric Snow | 2018-09-14 | 2 | -0/+19 |
| | | | | | When os.fork() is called (on platforms that support it) all threads but the current one are destroyed in the child process. Consequently we must ensure that all but the associated interpreter are likewise destroyed. The main interpreter is critical for runtime operation, so we must ensure that fork only happens in the main interpreter. https://bugs.python.org/issue34651 | ||||
* | bpo-34672: Don't pass NULL to gmtime_r. (GH-9312) | Benjamin Peterson | 2018-09-14 | 1 | -1/+2 |
| | |||||
* | bpo-34672: Try to pass the C library's own timezone strings back to it. ↵ | Benjamin Peterson | 2018-09-14 | 1 | -4/+36 |
| | | | | (GH-9288) | ||||
* | bpo-34674: Assume unistd.h exists on Unix. (GH-9290) | Benjamin Peterson | 2018-09-14 | 2 | -38/+0 |
| | |||||
* | Remove wording that could be deemed to be perjorative (GH-9287) | Raymond Hettinger | 2018-09-14 | 2 | -4/+4 |
| | |||||
* | bpo-34658: Fix rare subprocess prexec_fn fork error. (GH-9255) | Gregory P. Smith | 2018-09-13 | 1 | -7/+13 |
| | | | | | | | | | [bpo-34658](https://www.bugs.python.org/issue34658): Fix a rare interpreter unhandled exception state SystemError only seen when using subprocess with a preexec_fn while an after_parent handler has been registered with os.register_at_fork and the fork system call fails. https://bugs.python.org/issue34658 | ||||
* | bpo-34649: Add missing NULL checks to _encoded_const() (GH-9225) | Alexey Izbyshev | 2018-09-12 | 1 | -3/+3 |
| | | | Reported by Svace static analyzer. | ||||
* | bpo-31577: Fix a crash in os.utime() in case of a bad ns argument. (GH-3752) | Oren Milman | 2018-09-12 | 1 | -0/+6 |
| | |||||
* | closes bpo-34646: Remove PyAPI_* macros from declarations. (GH-9218) | Benjamin Peterson | 2018-09-12 | 3 | -4/+4 |
| | |||||
* | Simplified implementation of _sre.ascii_iscased(). (GH-9097) | Sergey Fedoseev | 2018-09-12 | 1 | -6/+1 |
| | |||||
* | closes bpo-25041: Document AF_PACKET socket address format. (GH-4092) | Cheryl Sabella | 2018-09-12 | 1 | -3/+3 |
| | |||||
* | Delete old expat comment. (GH-9197) | Benjamin Peterson | 2018-09-12 | 1 | -8/+0 |
| | |||||
* | closes bpo-31903: Release the GIL when calling into SystemConfiguration ↵ | Max Bélanger | 2018-09-11 | 1 | -0/+6 |
| | | | | (GH-4178) | ||||
* | bpo-34636: Use fast path for more chars in SRE category macros. (GH-9170) | Sergey Fedoseev | 2018-09-11 | 1 | -3/+3 |
| | | | | | | | When handling \s, \d, or \w (and their inverse) escapes in bytes regexes this a small but measurable performance improvement. <!-- issue-number: [bpo-34636](https://www.bugs.python.org/issue34636) --> https://bugs.python.org/issue34636 <!-- /issue-number --> | ||||
* | bpo-20180: convert most of itertoolsmodule.c to use Argument Clinic (GH-9164) | Tal Einat | 2018-09-11 | 2 | -219/+694 |
| | |||||
* | closes bpo-31608: Fix a crash in methods of a subclass of _collections.deque ↵ | Oren Milman | 2018-09-11 | 1 | -4/+13 |
| | | | | with a bad __new__(). (GH-3788) | ||||
* | bpo-29386: Pass -1 to epoll_wait() when timeout is < -1 (GH-9040) | Berker Peksag | 2018-09-11 | 1 | -8/+15 |
| | | | | | | | Although the kernel accepts any negative value for timeout, the documented value to block indefinitely is -1. This commit also makes the code similar to select.poll.poll(). | ||||
* | bpo-34622: Extract asyncio exceptions into a separate module (GH-9141) | Andrew Svetlov | 2018-09-11 | 1 | -0/+2 |
| | |||||
* | closes bpo-29832: Remove "getsockaddrarg" from error messages. (GH-3163) | Oren Milman | 2018-09-11 | 1 | -60/+119 |
| | |||||
* | bpo-34625: Update vendorized expat version to 2.2.6. (GH-9150) | Benjamin Peterson | 2018-09-11 | 4 | -27/+69 |
| | |||||
* | bpo-32270: Don't close stdin/out/err in pass_fds (GH-6242) | Gregory P. Smith | 2018-09-11 | 1 | -10/+14 |
| | | | | | | | | | | | | | | When subprocess.Popen() stdin= stdout= or stderr= handles are specified and appear in pass_fds=, don't close the original fds after dup'ing them. This implementation and unittest primarily came from @izbyshev (see the PR) See also https://github.com/izbyshev/cpython/commit/b89b52f28490b69142d5c061604b3a3989cec66c This also removes the old manual p2cread, c2pwrite, and errwrite closing logic as inheritable flags and _close_open_fds takes care of that properly today without special treatment. This code is within child_exec() where it is the only thread so there is no race condition between the dup and _Py_set_inheritable_async_safe call. | ||||
* | bpo-20180: itertools.groupby Argument Clinic conversion (GH-4170) | Tal Einat | 2018-09-10 | 2 | -23/+105 |
| | |||||
* | Fix misleading mentions of tp_size in comments (GH-9093) | Peter Eisentraut | 2018-09-10 | 13 | -18/+18 |
| | | | | Many type object initializations labeled a field "tp_size" in the comment, but the name of that field is tp_basicsize. | ||||
* | bpo-20104: Change the file_actions parameter of os.posix_spawn(). (GH-6725) | Serhiy Storchaka | 2018-09-08 | 2 | -9/+10 |
| | | | | | * Make its default value an empty tuple instead of None. * Make it a keyword-only parameter. | ||||
* | bpo-34604: Fix possible mojibake in pwd.getpwnam() and grp.getgrnam() (GH-9098) | William Grzybowski | 2018-09-07 | 3 | -17/+17 |
| | | | | Pass the user/group name as Unicode to the formatting function, instead of always decoding a bytes string from UTF-8. | ||||
* | bpo-20104: Add flag capabilities to posix_spawn (GH-6693) | Pablo Galindo | 2018-09-07 | 2 | -13/+166 |
| | | | Implement the "attributes objects" parameter of `os.posix_spawn` to complete the implementation and fully cover the underlying API. | ||||
* | bpo-33625: Release GIL for grp.getgr{nam,gid} and pwd.getpw{nam,uid} (GH-7081) | William Grzybowski | 2018-09-07 | 2 | -12/+195 |
| | | | | | | Release GIL on grp.getgrnam(), grp.getgrgid(), pwd.getpwnam() and pwd.getpwuid() if reentrant variants of these functions are available. Patch by William Grzybowski. | ||||
* | _sre.c: Removed unused SRE_IS_ALNUM macro (GH-9090) | Sergey Fedoseev | 2018-09-07 | 1 | -2/+0 |
| | |||||
* | closes bpo-34581 : Conditionalize use of __pragma in Modules/socketmodule.c. ↵ | Erik Janssens | 2018-09-05 | 1 | -2/+5 |
| | | | | | | (GH-9067) |