9b60e55 | Christian Heimes | 15 May 2020, 21:54:53 UTC | bpo-40637: Add option to disable builtin hashes (GH-20121) Signed-off-by: Christian Heimes <christian@python.org> Automerge-Triggered-By: @tiran | 15 May 2020, 21:54:53 UTC |
a2b3cdd | Shantanu | 15 May 2020, 21:28:23 UTC | bpo-40445: Update compileall.compile_dir docs (GH-19806) | 15 May 2020, 21:28:23 UTC |
6a5d3ff | Gregory P. Smith | 15 May 2020, 21:26:00 UTC | bpo-40636: Clarify the zip built-in docstring. (GH-20118) Clarify the zip built-in docstring. This puts much simpler text up front along with an example. As it was, the zip built-in docstring was technically correct. But too technical for the reader who shouldn't _need_ to know about `__next__` and `StopIteration` as most people do not need to understand the internal implementation details of the iterator protocol in their daily life. This is a documentation only change, intended to be backported to 3.8; it is only tangentially related to PEP-618 which might offer new behavior options in the future. Wording based a bit more on enumerate per Brandt's suggestion. This gets rid of the legacy wording paragraph which seems too tied to implementation details of the iterator protocol which isn't relevant here. Co-authored-by: Brandt Bucher <brandtbucher@gmail.com> | 15 May 2020, 21:26:00 UTC |
938717f | Christian Heimes | 15 May 2020, 20:32:25 UTC | bpo-40163: Fix multissltest download of old OpenSSL (GH-19329) | 15 May 2020, 20:32:25 UTC |
382a563 | romasku | 15 May 2020, 20:12:05 UTC | bpo-40607: Reraise exception during task cancelation in asyncio.wait_for() (GH-20054) Currently, if asyncio.wait_for() timeout expires, it cancels inner future and then always raises TimeoutError. In case those future is task, it can handle cancelation mannually, and those process can lead to some other exception. Current implementation silently loses thoses exception. To resolve this, wait_for will check was the cancelation successfull or not. In case there was exception, wait_for will reraise it. Co-authored-by: Roman Skurikhin <roman.skurikhin@cruxlab.com> | 15 May 2020, 20:12:05 UTC |
c087a26 | Christian Heimes | 15 May 2020, 18:55:25 UTC | bpo-40515: Require OPENSSL_THREADS (GH-19953) The ``ssl`` and ``hashlib`` modules now actively check that OpenSSL is build with thread support. Python 3.7.0 made thread support mandatory and no longer works safely with a no-thread builds. Signed-off-by: Christian Heimes <christian@python.org> | 15 May 2020, 18:55:25 UTC |
62d618c | Christian Heimes | 15 May 2020, 16:48:25 UTC | bpo-40479: Test with latest OpenSSL versions (GH-20108) * 1.0.2u (EOL) * 1.1.0l (EOL) * 1.1.1g * 3.0.0-alpha2 (disabled for now) Build the FIPS provider and create a FIPS configuration file for OpenSSL 3.0.0. Signed-off-by: Christian Heimes <christian@python.org> Automerge-Triggered-By: @tiran | 15 May 2020, 16:48:25 UTC |
16d4e6f | Christian Heimes | 15 May 2020, 16:28:05 UTC | bpo-40479: Fix hashlib issue with OpenSSL 3.0.0 (GH-20107) OpenSSL 3.0.0-alpha2 was released today. The FIPS_mode() function has been deprecated and removed. It no longer makes sense with the new provider and context system in OpenSSL 3.0.0. EVP_default_properties_is_fips_enabled() is good enough for our needs in unit tests. It's an internal API, too. Signed-off-by: Christian Heimes <christian@python.org> | 15 May 2020, 16:28:05 UTC |
6e57237 | Victor Stinner | 15 May 2020, 16:06:23 UTC | bpo-40055: test_distutils leaves warnings filters unchanged (GH-20095) distutils.tests now saves/restores warnings filters to leave them unchanged. Importing tests imports docutils which imports pkg_resources which adds a warnings filter. | 15 May 2020, 16:06:23 UTC |
003708b | Andrew York | 15 May 2020, 10:43:58 UTC | Trivial typo fix in _tkinter.c (GH-19622) Change spelling of a #define in _tkinter.c from HAVE_LIBTOMMAMTH to HAVE_LIBTOMMATH, since this is used to keep track of tclTomMath.h, not tclTomMamth.h. No other file seems to refer to this variable. | 15 May 2020, 10:43:58 UTC |
4a12d12 | Chris Jerdonek | 15 May 2020, 02:25:45 UTC | Fix typo in code comment in main_loop label. (GH-20068) | 15 May 2020, 02:25:45 UTC |
15bc9ab | Guido van Rossum | 15 May 2020, 02:22:48 UTC | bpo-40612: Fix SyntaxError edge cases in traceback formatting (GH-20072) This fixes both the traceback.py module and the C code for formatting syntax errors (in Python/pythonrun.c). They now both consistently do the following: - Suppress caret if it points left of text - Allow caret pointing just past end of line - If caret points past end of line, clip to *just* past end of line The syntax error formatting code in traceback.py was mostly rewritten; small, subtle changes were applied to the C code in pythonrun.c. There's still a difference when the text contains embedded newlines. Neither handles these very well, and I don't think the case occurs in practice. Automerge-Triggered-By: @gvanrossum | 15 May 2020, 02:22:48 UTC |
1aa8767 | Chris Jerdonek | 15 May 2020, 02:11:00 UTC | Update code comment re: location of struct _is. (GH-20067) | 15 May 2020, 02:11:00 UTC |
6a78589 | Filipe Laíns | 15 May 2020, 02:08:21 UTC | bpo-40548: github actions: pass the changes check on no source changes (GH-20097) Signed-off-by: Filipe Laíns <lains@archlinux.org> | 15 May 2020, 02:08:21 UTC |
16ab070 | Pablo Galindo | 15 May 2020, 01:04:52 UTC | bpo-40334: Correctly identify invalid target in assignment errors (GH-20076) Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com> | 15 May 2020, 01:04:52 UTC |
7ba1f75 | Joannah Nanjekye | 15 May 2020, 00:59:46 UTC | bpo-38872: Document exec symbol for codeop.compile_command (GH-20047) * Document exec symbol for codeop.compile_command * Remove extra statements Co-authored-by: nanjekyejoannah <joannah.nanjekye@ibm.com> | 15 May 2020, 00:59:46 UTC |
4b972fa | Victor Stinner | 14 May 2020, 23:02:10 UTC | bpo-40462: Fix typo in test_json (GH-20094) | 14 May 2020, 23:02:10 UTC |
edf2643 | Victor Stinner | 14 May 2020, 22:51:51 UTC | bpo-40460: Fix typo in idlelib/zzdummy.py (GH-20093) Replace ztest with ztext. | 14 May 2020, 22:51:51 UTC |
75d7257 | Filipe Laíns | 14 May 2020, 22:11:40 UTC | bpo-40548: GitHub Action workflow: skip jobs on doc only PRs (GH-19983) Signed-off-by: Filipe Laíns <lains@archlinux.org> | 14 May 2020, 22:11:40 UTC |
d2dc827 | Victor Stinner | 14 May 2020, 20:44:32 UTC | bpo-40602: _Py_hashtable_set() reports rehash failure (GH-20077) If _Py_hashtable_set() fails to grow the hash table (rehash), it now fails rather than ignoring the error. | 14 May 2020, 20:44:32 UTC |
ce21cfc | Lysandros Nikolaou | 14 May 2020, 20:13:50 UTC | bpo-40618: Disallow invalid targets in augassign and except clauses (GH-20083) This commit fixes the new parser to disallow invalid targets in the following scenarios: - Augmented assignments must only accept a single target (Name, Attribute or Subscript), but no tuples or lists. - `except` clauses should only accept a single `Name` as a target. Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> | 14 May 2020, 20:13:50 UTC |
bcc3036 | Pablo Galindo | 14 May 2020, 20:11:48 UTC | bpo-40619: Correctly handle error lines in programs without file mode (GH-20090) | 14 May 2020, 20:11:48 UTC |
a482dc5 | Victor Stinner | 14 May 2020, 19:55:47 UTC | bpo-40602: Write unit tests for _Py_hashtable_t (GH-20091) Cleanup also hashtable.c. Rename _Py_hashtable_t members: * Rename entries to nentries * Rename num_buckets to nbuckets | 14 May 2020, 19:55:47 UTC |
f2c3b68 | Victor Stinner | 14 May 2020, 16:46:24 UTC | Revert "bpo-32604: [_xxsubinterpreters] Propagate exceptions. (GH-19768)" (GH-20089) * Revert "bpo-40613: Remove compiler warning from _xxsubinterpretersmodule (GH-20069)" This reverts commit fa0a66e62d087765dbc5c1b89d6149a23ecfb0a6. * Revert "bpo-32604: [_xxsubinterpreters] Propagate exceptions. (GH-19768)" This reverts commit a1d9e0accd33af1d8e90fc48b34c13d7b07dcf57. | 14 May 2020, 16:46:24 UTC |
97f33c3 | Victor Stinner | 14 May 2020, 16:05:58 UTC | bpo-40549: posixmodule.c uses defining_class (GH-20075) Pass PEP 573 defining_class to os.DirEntry methods. The module state is now retrieve from defining_class rather than Py_TYPE(self), to support subclasses (even if DirEntry doesn't support subclasses yet). * Pass the module rather than defining_class to DirEntry_fetch_stat(). * Only get the module state once in _posix_clear(), _posix_traverse() and _posixmodule_exec(). | 14 May 2020, 16:05:58 UTC |
e77d428 | Lumír 'Frenzy' Balhar | 14 May 2020, 14:17:22 UTC | bpo-40495: compileall option to hardlink duplicate pyc files (GH-19901) compileall is now able to use hardlinks to prevent duplicates in a case when .pyc files for different optimization levels have the same content. Co-authored-by: Miro Hrončok <miro@hroncok.cz> Co-authored-by: Victor Stinner <vstinner@python.org> | 14 May 2020, 14:17:22 UTC |
7443d42 | Hai Shi | 14 May 2020, 01:22:30 UTC | bpo-40275: Import locale module lazily in gettext (GH-19905) | 14 May 2020, 01:22:30 UTC |
6f2f475 | Arkadiusz Hiler | 14 May 2020, 00:53:26 UTC | bpo-40597: email: Use CTE if lines are longer than max_line_length consistently (gh-20038) raw_data_manager (default for EmailPolicy, EmailMessage) does correct wrapping of 'text' parts as long as the message contains characters outside of 7bit US-ASCII set: base64 or qp Content-Transfer-Encoding is applied if the lines would be too long without it. It did not, however, do this for ascii-only text, which could result in lines that were longer than policy.max_line_length or even the rfc 998 maximum. This changeset fixes the heuristic so that if lines are longer than policy.max_line_length, it will always apply a content-transfer-encoding so that the lines are wrapped correctly. | 14 May 2020, 00:53:26 UTC |
3d17c04 | Victor Stinner | 13 May 2020, 23:48:38 UTC | bpo-40521: Add PyInterpreterState.unicode (GH-20081) Move PyInterpreterState.fs_codec into a new PyInterpreterState.unicode structure. Give a name to the fs_codec structure and use this structure in unicodeobject.c. | 13 May 2020, 23:48:38 UTC |
75cd8e4 | Chris Jerdonek | 13 May 2020, 23:18:27 UTC | bpo-29587: Make gen.throw() chain exceptions with yield from (GH-19858) The previous commits on bpo-29587 got exception chaining working with gen.throw() in the `yield` case. This patch also gets the `yield from` case working. As a consequence, implicit exception chaining now also works in the asyncio scenario of awaiting on a task when an exception is already active. Tests are included for both the asyncio case and the pure generator-only case. | 13 May 2020, 23:18:27 UTC |
d6fb53f | Victor Stinner | 13 May 2020, 23:11:54 UTC | bpo-39465: Remove _PyUnicode_ClearStaticStrings() from C API (GH-20078) Remove the _PyUnicode_ClearStaticStrings() function from the C API. Make the function fully private (declare it with "static"). | 13 May 2020, 23:11:54 UTC |
d72ea60 | Michael Graczyk | 13 May 2020, 22:41:57 UTC | issue-25872: Fix KeyError using linecache from multiple threads (GH-18007) The crash that this fixes occurs when using traceback and other modules from multiple threads; del cache[filename] can raise a KeyError. | 13 May 2020, 22:41:57 UTC |
97e1568 | Victor Stinner | 13 May 2020, 22:31:31 UTC | bpo-38787: Fix Argument Clinic defining_class_converter (GH-20074) Don't hardcode defining_class parameter name to "cls": * Define CConverter.set_template_dict(): do nothing by default * CLanguage.render_function() now calls set_template_dict() on all converters. | 13 May 2020, 22:31:31 UTC |
a15c9b3 | Lysandros Nikolaou | 13 May 2020, 19:36:27 UTC | bpo-40334: Always show the caret on SyntaxErrors (GH-20050) This commit fixes SyntaxError locations when the caret is not displayed, by doing the following: - `col_number` always gets set to the location of the offending node/expr. When no caret is to be displayed, this gets achieved by setting the object holding the error line to None. - Introduce a new function `_PyPegen_raise_error_known_location`, which can be called, when an arbitrary `lineno`/`col_offset` needs to be passed. This function then gets used in the grammar (through some new macros and inline functions) so that SyntaxError locations of the new parser match that of the old. | 13 May 2020, 19:36:27 UTC |
de92769 | jack1142 | 13 May 2020, 18:55:12 UTC | bpo-34790: add version of removal of explicit passing of coros to `asyncio.wait`'s documentation (#20008) | 13 May 2020, 18:55:12 UTC |
fa0a66e | Dong-hee Na | 13 May 2020, 13:38:27 UTC | bpo-40613: Remove compiler warning from _xxsubinterpretersmodule (GH-20069) | 13 May 2020, 13:38:27 UTC |
b809717 | Tzanetos Balitsaris | 13 May 2020, 10:29:31 UTC | bpo-40331: Increase test coverage for the statistics module (GH-19608) | 13 May 2020, 10:29:31 UTC |
42bae3a | Victor Stinner | 13 May 2020, 03:36:23 UTC | bpo-40602: Optimize _Py_hashtable_get_ptr() (GH-20066) _Py_hashtable_get_entry_ptr() avoids comparing the entry hash: compare directly keys. Move _Py_hashtable_get_entry_ptr() just after _Py_hashtable_get_entry_generic(). | 13 May 2020, 03:36:23 UTC |
5b0a303 | Victor Stinner | 13 May 2020, 02:40:30 UTC | bpo-40609: _Py_hashtable_t values become void* (GH-20065) _Py_hashtable_t values become regular "void *" pointers. * Add _Py_hashtable_entry_t.data member * Remove _Py_hashtable_t.data_size member * Remove _Py_hashtable_t.get_func member. It is no longer needed to specialize _Py_hashtable_get() for a specific value size, since all entries now have the same size (void*). * Remove the following macros: * _Py_HASHTABLE_GET() * _Py_HASHTABLE_SET() * _Py_HASHTABLE_SET_NODATA() * _Py_HASHTABLE_POP() * Rename _Py_hashtable_pop() to _Py_hashtable_steal() * _Py_hashtable_foreach() callback now gets key and value rather than entry. * Remove _Py_hashtable_value_destroy_func type. value_destroy_func callback now only has a single parameter: data (void*). | 13 May 2020, 02:40:30 UTC |
d95bd42 | Victor Stinner | 13 May 2020, 01:52:11 UTC | bpo-40609: _tracemalloc allocates traces (GH-20064) Rewrite _tracemalloc to store "trace_t*" rather than directly "trace_t" in traces hash tables. Traces are now allocated on the heap memory, outside the hash table. Add tracemalloc_copy_traces() and tracemalloc_copy_domains() helper functions. Remove _Py_hashtable_copy() function since there is no API to copy a key or a value. Remove also _Py_hashtable_delete() function which was commented. | 13 May 2020, 01:52:11 UTC |
2d0a3d6 | Victor Stinner | 13 May 2020, 00:50:18 UTC | bpo-40609: Add destroy functions to _Py_hashtable (GH-20062) Add key_destroy_func and value_destroy_func parameters to _Py_hashtable_new_full(). marshal.c and _tracemalloc.c use these destroy functions. | 13 May 2020, 00:50:18 UTC |
f9b3b58 | Victor Stinner | 13 May 2020, 00:26:02 UTC | bpo-40609: Remove _Py_hashtable_t.key_size (GH-20060) Rewrite _Py_hashtable_t type to always store the key as a "const void *" pointer. Add an explicit "key" member to _Py_hashtable_entry_t. Remove _Py_hashtable_t.key_size member. hash and compare functions drop their hash table parameter, and their 'key' parameter type becomes "const void *". | 13 May 2020, 00:26:02 UTC |
9e2ca17 | Victor Stinner | 12 May 2020, 23:36:47 UTC | bpo-40609: Rewrite how _tracemalloc handles domains (GH-20059) Rewrite how the _tracemalloc module stores traces of other domains. Rather than storing the domain inside the key, it now uses a new hash table with the domain as the key, and the data is a per-domain traces hash table. * Add tracemalloc_domain hash table. * Remove _Py_tracemalloc_config.use_domain. * Remove pointer_t and related functions. | 12 May 2020, 23:36:47 UTC |
3d54211 | Allen Guo | 12 May 2020, 22:54:18 UTC | Fix Wikipedia link (GH-20031) | 12 May 2020, 22:54:18 UTC |
d6b727e | Steve Dower | 12 May 2020, 22:32:32 UTC | bpo-40501: Replace ctypes code in uuid with native module (GH-19948) | 12 May 2020, 22:32:32 UTC |
f453221 | Victor Stinner | 12 May 2020, 16:46:20 UTC | bpo-40602: Add _Py_HashPointerRaw() function (GH-20056) Add a new _Py_HashPointerRaw() function which avoids replacing -1 with -2 to micro-optimize hash table using pointer keys: using _Py_hashtable_hash_ptr() hash function. | 12 May 2020, 16:46:20 UTC |
4c9ea09 | scoder | 12 May 2020, 14:12:41 UTC | bpo-38787: Add PyCFunction_CheckExact() macro for exact type checks (GH-20024) … now that we allow subtypes of PyCFunction. Also add PyCMethod_CheckExact() and PyCMethod_Check() for checks against the PyCMethod subtype. | 12 May 2020, 14:12:41 UTC |
5650e76 | Serhiy Storchaka | 12 May 2020, 13:18:00 UTC | bpo-40596: Fix str.isidentifier() for non-canonicalized strings containing non-BMP characters on Windows. (GH-20053) | 12 May 2020, 13:18:00 UTC |
7c6e970 | Victor Stinner | 12 May 2020, 11:31:59 UTC | bpo-40602: Optimize _Py_hashtable for pointer keys (GH-20051) Optimize _Py_hashtable_get() and _Py_hashtable_get_entry() for pointer keys: * key_size == sizeof(void*) * hash_func == _Py_hashtable_hash_ptr * compare_func == _Py_hashtable_compare_direct Changes: * Add get_func and get_entry_func members to _Py_hashtable_t * Convert _Py_hashtable_get() and _Py_hashtable_get_entry() functions to static nline functions. * Add specialized get and get entry for pointer keys. | 12 May 2020, 11:31:59 UTC |
74ea6b5 | Serhiy Storchaka | 12 May 2020, 09:42:04 UTC | bpo-40593: Improve syntax errors for invalid characters in source code. (GH-20033) | 12 May 2020, 09:42:04 UTC |
f3a5b7a | Batuhan Taskaya | 12 May 2020, 02:32:40 UTC | bpo-39481: remove generic classes from ipaddress/mmap (GH-20045) These were added by mistake (see https://bugs.python.org/issue39481#msg366288). | 12 May 2020, 02:32:40 UTC |
b1b4c79 | Tim Peters | 12 May 2020, 02:19:20 UTC | bpo-40480: restore ability to join fnmatch.translate() results (GH-20049) In translate(), generate unique group names across calls. The restores the undocumented ability to get a valid regexp by joining multiple translate() results via `|`. | 12 May 2020, 02:19:20 UTC |
d0919f0 | Victor Stinner | 12 May 2020, 01:07:40 UTC | bpo-40602: _Py_hashtable_new() uses PyMem_Malloc() (GH-20046) _Py_hashtable_new() now uses PyMem_Malloc/PyMem_Free allocator by default, rather than PyMem_RawMalloc/PyMem_RawFree. PyMem_Malloc is faster than PyMem_RawMalloc for memory blocks smaller than or equal to 512 bytes. | 12 May 2020, 01:07:40 UTC |
b617993 | Victor Stinner | 12 May 2020, 00:42:19 UTC | bpo-40602: Rename hashtable.h to pycore_hashtable.h (GH-20044) * Move Modules/hashtable.h to Include/internal/pycore_hashtable.h * Move Modules/hashtable.c to Python/hashtable.c * Python is now linked to hashtable.c. _tracemalloc is no longer linked to hashtable.c. Previously, marshal.c got hashtable.c via _tracemalloc.c which is built as a builtin module. | 12 May 2020, 00:42:19 UTC |
21cdb71 | Raymond Hettinger | 12 May 2020, 00:00:53 UTC | bpo-40571: Make lru_cache(maxsize=None) more discoverable (GH-20019) | 12 May 2020, 00:00:53 UTC |
4804b5b | Victor Stinner | 11 May 2020, 23:43:38 UTC | bpo-39465: Don't access directly _Py_Identifier members (GH-20043) * Replace id->object with _PyUnicode_FromId(&id) * Use _Py_static_string_init(str) macro to initialize statically name_op in typeobject.c. | 11 May 2020, 23:43:38 UTC |
27c0d9b | Shantanu | 11 May 2020, 21:53:58 UTC | bpo-40334: produce specialized errors for invalid del targets (GH-19911) | 11 May 2020, 21:53:58 UTC |
86d6944 | Hai Shi | 11 May 2020, 21:38:55 UTC | bpo-40584: Update PyType_FromModuleAndSpec() to process tp_vectorcall_offset (GH-20026) | 11 May 2020, 21:38:55 UTC |
ef7973a | Brad Solomon | 11 May 2020, 18:50:11 UTC | bpo-40561: Add docstrings for webbrowser open functions (GH-19999) Co-authored-by: Brad Solomon <brsolomon@deloitte.com> Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> | 11 May 2020, 18:50:11 UTC |
d5d9a71 | Inada Naoki | 11 May 2020, 06:37:25 UTC | bpo-36346: array: Don't use deprecated APIs (GH-19653) * Py_UNICODE -> wchar_t * Py_UNICODE -> unicode in Argument Clinic * PyUnicode_AsUnicode -> PyUnicode_AsWideCharString * Don't use "u#" format. Co-authored-by: Victor Stinner <vstinner@python.org> | 11 May 2020, 06:37:25 UTC |
6067d4b | scoder | 11 May 2020, 04:04:31 UTC | bpo-40575: Avoid unnecessary overhead in _PyDict_GetItemIdWithError() (GH-20018) Avoid unnecessary overhead in _PyDict_GetItemIdWithError() by calling _PyDict_GetItem_KnownHash() instead of the more generic PyDict_GetItemWithError(), since we already know the hash of interned strings. | 11 May 2020, 04:04:31 UTC |
5b956ca | Pablo Galindo | 11 May 2020, 00:41:26 UTC | bpo-40585: Normalize errors messages in codeop when comparing them (GH-20030) With the new parser, the error message contains always the trailing newlines, causing the comparison of the repr of the error messages in codeop to fail. This commit makes the new parser mirror the old parser's behaviour regarding trailing newlines. | 11 May 2020, 00:41:26 UTC |
2cc9b84 | Raymond Hettinger | 10 May 2020, 21:53:29 UTC | Improve code clarity for the set lookup logic (GH-20028) | 10 May 2020, 21:53:29 UTC |
2fbc57a | Serhiy Storchaka | 10 May 2020, 12:14:27 UTC | bpo-40257: Tweak docstrings for special generic aliases. (GH-20022) * Add the terminating period. * Omit module name for builtin types. | 10 May 2020, 12:14:27 UTC |
0122d48 | Serhiy Storchaka | 10 May 2020, 10:39:40 UTC | bpo-40397: Fix subscription of nested generic alias without parameters. (GH-20021) | 10 May 2020, 10:39:40 UTC |
86a93fd | Sergey Fedoseev | 10 May 2020, 09:15:57 UTC | bpo-37986: Improve perfomance of PyLong_FromDouble() (GH-15611) * bpo-37986: Improve perfomance of PyLong_FromDouble() * Use strict bound check for safety and symmetry * Remove possibly outdated performance claims Co-authored-by: Mark Dickinson <dickinsm@gmail.com> | 10 May 2020, 09:15:57 UTC |
1c2fa78 | Victor Stinner | 10 May 2020, 09:05:29 UTC | bpo-40549: Convert posixmodule.c to multiphase init (GH-19982) Convert posixmodule.c ("posix" or "nt" module) to the multiphase initialization (PEP 489). * Create the module using PyModuleDef_Init(). * Create ScandirIteratorType and DirEntryType with the new PyType_FromModuleAndSpec() (PEP 573) * Get the module state from ScandirIteratorType and DirEntryType with the new PyType_GetModule() (PEP 573) * Pass module to functions which access the module state. * convert_sched_param() gets a new module parameter. It is now called directly since Argument Clinic doesn't support passing the module to an argument converter callback. * Remove _posixstate_global macro. | 10 May 2020, 09:05:29 UTC |
fcb2856 | Serhiy Storchaka | 10 May 2020, 08:53:16 UTC | bpo-40397: Remove __args__ and __parameters__ from _SpecialGenericAlias (GH-19984) | 10 May 2020, 08:53:16 UTC |
85bdec1 | Andre Delfino | 10 May 2020, 05:15:54 UTC | Add link to Enum class (GH-19884) | 10 May 2020, 05:15:54 UTC |
ac7a92c | Pablo Galindo | 10 May 2020, 04:34:50 UTC | bpo-40334: Avoid collisions between parser variables and grammar variables (GH-19987) This is for the C generator: - Disallow rule and variable names starting with `_` - Rename most local variable names generated by the parser to start with `_` Exceptions: - Renaming `p` to `_p` will be a separate PR - There are still some names that might clash, e.g. - anything starting with `Py` - C reserved words (`if` etc.) - Macros like `EXTRA` and `CHECK` | 10 May 2020, 04:34:50 UTC |
2c3d508 | Jason R. Coombs | 09 May 2020, 14:12:41 UTC | bpo-40570: Improve compatibility of uname_result with late-bound .platform (#20015) * bpo-40570: Improve compatibility of uname_result with late-bound .platform. * Add test capturing ability to cast uname to a tuple. | 09 May 2020, 14:12:41 UTC |
77c6146 | Dong-hee Na | 09 May 2020, 08:31:40 UTC | bpo-40566: Apply PEP 573 to abc module (GH-20005) | 09 May 2020, 08:31:40 UTC |
7f7e706 | Jason R. Coombs | 08 May 2020, 23:20:26 UTC | bpo-39791: Add files() to importlib.resources (GH-19722) * bpo-39791: Update importlib.resources to support files() API (importlib_resources 1.5). * 📜🤖 Added by blurb_it. * Add some documentation about the new objects added. Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> | 08 May 2020, 23:20:26 UTC |
d10091a | Joannah Nanjekye | 08 May 2020, 20:58:28 UTC | bpo-40502: Initialize n->n_col_offset (GH-19988) * initialize n->n_col_offset * 📜🤖 Added by blurb_it. * Move initialization Co-authored-by: nanjekyejoannah <joannah.nanjekye@ibm.com> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> | 08 May 2020, 20:58:28 UTC |
81a5fc3 | Raymond Hettinger | 08 May 2020, 14:53:15 UTC | bpo-40541: Add optional *counts* parameter to random.sample() (GH-19970) | 08 May 2020, 14:53:15 UTC |
2effef7 | Ned Batchelder | 08 May 2020, 11:39:57 UTC | Make the first dataclass example more useful (GH-19994) | 08 May 2020, 11:39:57 UTC |
d2c349b | Chris Jerdonek | 08 May 2020, 10:54:38 UTC | bpo-40559: Add Py_DECREF to _asynciomodule.c:task_step_impl() (GH-19990) This fixes a possible memory leak in the C implementation of asyncio.Task. | 08 May 2020, 10:54:38 UTC |
02fa0ea | Zackery Spytz | 08 May 2020, 05:25:50 UTC | bpo-40273: Reversible mappingproxy (FH-19513) | 08 May 2020, 05:25:50 UTC |
db9163c | Pablo Galindo | 08 May 2020, 02:38:44 UTC | bpo-40555: Check for p->error_indicator in loop rules after the main loop is done (GH-19986) | 08 May 2020, 02:38:44 UTC |
b7a78ca | Batuhan Taskaya | 07 May 2020, 20:57:26 UTC | bpo-40517: Implement syntax highlighting support for ASDL (GH-19967) | 07 May 2020, 20:57:26 UTC |
4e36376 | Victor Stinner | 07 May 2020, 20:42:14 UTC | bpo-40548: Always run GitHub action, even on doc PRs (GH-19981) Always run GitHub action jobs, even on documentation-only pull requests. So it will be possible to make a GitHub action job, like the Windows (64-bit) job, mandatory. | 07 May 2020, 20:42:14 UTC |
c068b53 | Hai Shi | 07 May 2020, 17:16:01 UTC | bpo-38787: Update structures.rst docs (PEP 573) (GH-19980) | 07 May 2020, 17:16:01 UTC |
a1d9e0a | Eric Snow | 07 May 2020, 14:56:01 UTC | bpo-32604: [_xxsubinterpreters] Propagate exceptions. (GH-19768) (Note: PEP 554 is not accepted and the implementation in the code base is a private one for use in the test suite.) If code running in a subinterpreter raises an uncaught exception then the "run" call in the calling interpreter fails. A RunFailedError is raised there that summarizes the original exception as a string. The actual exception type, __cause__, __context__, state, etc. are all discarded. This turned out to be functionally insufficient in practice. There is a more helpful solution (and PEP 554 has been updated appropriately). This change adds the exception propagation behavior described in PEP 554 to the _xxsubinterpreters module. With this change a copy of the original exception is set to __cause__ on the RunFailedError. For now we are using "pickle", which preserves the exception's state. We also preserve the original __cause__, __context__, and __traceback__ (since "pickle" does not preserve those). https://bugs.python.org/issue32604 | 07 May 2020, 14:56:01 UTC |
8963a7f | Victor Stinner | 07 May 2020, 13:42:33 UTC | bpo-40545: Export _PyErr_GetTopmostException() function (GH-19978) Declare _PyErr_GetTopmostException() with PyAPI_FUNC() to properly export the function in the C API. The function remains private ("_Py") prefix. Co-Authored-By: Julien Danjou <julien@danjou.info> | 07 May 2020, 13:42:33 UTC |
e1becf4 | Petr Viktorin | 07 May 2020, 13:39:59 UTC | bpo-38787: C API for module state access from extension methods (PEP 573) (GH-19936) Module C state is now accessible from C-defined heap type methods (PEP 573). Patch by Marcel Plch and Petr Viktorin. Co-authored-by: Marcel Plch <mplch@redhat.com> Co-authored-by: Victor Stinner <vstinner@python.org> | 07 May 2020, 13:39:59 UTC |
4638c64 | Lysandros Nikolaou | 07 May 2020, 10:44:06 UTC | bpo-40334: Error message for invalid default args in function call (GH-19973) When parsing something like `f(g()=2)`, where the name of a default arg is not a NAME, but an arbitrary expression, a specialised error message is emitted. | 07 May 2020, 10:44:06 UTC |
2f37c35 | Lysandros Nikolaou | 07 May 2020, 10:37:51 UTC | bpo-40334: Fix error location upon parsing an invalid string literal (GH-19962) When parsing a string with an invalid escape, the old parser used to point to the beginning of the invalid string. This commit changes the new parser to match that behaviour, since it's currently pointing to the end of the string (or to be more precise, to the beginning of the next token). | 07 May 2020, 10:37:51 UTC |
3466922 | Dong-hee Na | 07 May 2020, 01:17:16 UTC | bpo-1635741: Port errno module to multiphase initialization (GH-19923) | 07 May 2020, 01:17:16 UTC |
c1c7d8e | Serhiy Storchaka | 07 May 2020, 01:09:33 UTC | bpo-40397: Refactor typing._GenericAlias (GH-19719) Make the design more object-oriented. Split _GenericAlias on two almost independent classes: for special generic aliases like List and for parametrized generic aliases like List[int]. Add specialized subclasses for Callable, Callable[...], Tuple and Union[...]. | 07 May 2020, 01:09:33 UTC |
470aac4 | Pablo Galindo | 06 May 2020, 22:14:43 UTC | bpo-40334: Generate comments in the parser code to improve debugging (GH-19966) | 06 May 2020, 22:14:43 UTC |
99db2a1 | Pablo Galindo | 06 May 2020, 21:54:34 UTC | bpo-40334: Allow trailing comma in parenthesised context managers (GH-19964) | 06 May 2020, 21:54:34 UTC |
441416c | Naglis | 06 May 2020, 19:51:43 UTC | Fix typo in sqlite3 documentation (GH-19965) *first* is repeated twice. | 06 May 2020, 19:51:43 UTC |
999ec9a | Lysandros Nikolaou | 06 May 2020, 18:11:04 UTC | bpo-40334: Add type to the assignment rule in the grammar file (GH-19963) | 06 May 2020, 18:11:04 UTC |
b7aa23d | Victor Stinner | 06 May 2020, 17:05:27 UTC | bpo-40521: Disable list free list in subinterpreters (GH-19959) When Python is built with experimental isolated interpreters, disable the list free list. Temporary workaround until this cache is made per-interpreter. | 06 May 2020, 17:05:27 UTC |
d8135e9 | Victor Stinner | 06 May 2020, 16:25:06 UTC | bpo-40533: Disable GC in subinterpreters (GH-19961) When Python is built with experimental isolated interpreters, a garbage collection now does nothing in an isolated interpreter. Temporary workaround until subinterpreters stop sharing Python objects. | 06 May 2020, 16:25:06 UTC |
89fc4a3 | Victor Stinner | 06 May 2020, 16:23:58 UTC | bpo-40521: Disable method cache in subinterpreters (GH-19960) When Python is built with experimental isolated interpreters, disable the type method cache. Temporary workaround until the cache is made per-interpreter. | 06 May 2020, 16:23:58 UTC |
091951a | Batuhan Taskaya | 06 May 2020, 14:29:32 UTC | bpo-40528: Improve and clear several aspects of the ASDL definition code for the AST (GH-19952) | 06 May 2020, 14:29:32 UTC |
2668a9a | Victor Stinner | 06 May 2020, 13:22:17 UTC | bpo-40527: Fix command line argument parsing (GH-19955) | 06 May 2020, 13:22:17 UTC |
eff870b | Raymond Hettinger | 06 May 2020, 05:33:55 UTC | Revert "bpo-40517: Implement syntax highlighting support for ASDL (#19928)" (#19950) This reverts commit d60040ba226bd2e3b6f58d074015aa2499dc1cb8. | 06 May 2020, 05:33:55 UTC |
d60040b | Batuhan Taskaya | 06 May 2020, 05:24:39 UTC | bpo-40517: Implement syntax highlighting support for ASDL (#19928) | 06 May 2020, 05:24:39 UTC |