26726c7 | Nikita Sobolev | 10 November 2022, 10:51:22 UTC | gh-99320: remove tests for old-style class from `test_complex` (#99321) | 10 November 2022, 10:51:22 UTC |
d6f2767 | Nikita Sobolev | 10 November 2022, 10:37:57 UTC | gh-99281: [csv] remove try/except, `complex` always exists (#99282) | 10 November 2022, 10:37:57 UTC |
2e343fc | Victor Stinner | 10 November 2022, 10:25:33 UTC | gh-99300: Use Py_NewRef() in Python/ceval.c (#99318) Replace Py_INCREF() and Py_XINCREF() with Py_NewRef() and Py_XNewRef() in Python/ceval.c and related files. | 10 November 2022, 10:25:33 UTC |
231d83b | Victor Stinner | 10 November 2022, 10:23:36 UTC | gh-99300: Use Py_NewRef() in Python/ directory (#99317) Replace Py_INCREF() and Py_XINCREF() with Py_NewRef() and Py_XNewRef() in C files of the Python/ directory. Update Parser/asdl_c.py to regenerate Python/Python-ast.c. | 10 November 2022, 10:23:36 UTC |
d8f239d | Victor Stinner | 10 November 2022, 08:03:39 UTC | gh-99300: Use Py_NewRef() in Python/ directory (#99302) Replace Py_INCREF() and Py_XINCREF() with Py_NewRef() and Py_XNewRef() in C files of the Python/ directory. | 10 November 2022, 08:03:39 UTC |
f883b7f | Serhiy Storchaka | 10 November 2022, 06:54:37 UTC | bpo-34272: Reorganize C API tests. (GH-8551) Move some C API tests into Lib/test/test_capi/. | 10 November 2022, 06:54:37 UTC |
87f5180 | Nikita Sobolev | 09 November 2022, 22:05:07 UTC | gh-98832: Change wording in docstring of `pathlib.Path.iterdir` (GH-98833) Found while working on https://github.com/python/cpython/issues/98829 Automerge-Triggered-By: GH:AlexWaygood | 09 November 2022, 22:05:07 UTC |
283ab0e | Brandt Bucher | 09 November 2022, 21:55:20 UTC | GH-99205: Mark new interpreters and threads as non-static (GH-99268) | 09 November 2022, 21:55:20 UTC |
58ee5d8 | jmcb | 09 November 2022, 19:26:46 UTC | Update reference to the size of PyPI (#99076) Update reference to the size of PyPI Last changed in 2008 (528576031d9655ca8004260a2bf2c783f77d1da1). | 09 November 2022, 19:26:46 UTC |
c7f5708 | Brandt Bucher | 09 November 2022, 18:50:09 UTC | GH-98686: Get rid of "adaptive" and "quick" instructions (GH-99182) | 09 November 2022, 18:50:09 UTC |
6e3cc72 | Kumar Aditya | 09 November 2022, 16:53:21 UTC | GH-90699: disallow `_Py_IDENTIFIER` in core code (GH-99210) | 09 November 2022, 16:53:21 UTC |
c03e05c | Victor Stinner | 09 November 2022, 13:06:36 UTC | gh-98724: Fix Py_CLEAR() macro side effects (#99100) The Py_CLEAR(), Py_SETREF() and Py_XSETREF() macros now only evaluate their argument once. If an argument has side effects, these side effects are no longer duplicated. Add test_py_clear() and test_py_setref() unit tests to _testcapi. | 09 November 2022, 13:06:36 UTC |
0124b5d | Victor Stinner | 09 November 2022, 07:40:40 UTC | gh-90868: Add _PyStaticObject_CheckRefcnt() function (#99261) Add _PyStaticObject_CheckRefcnt() function to make _PyStaticObjects_CheckRefcnt() shorter. Use _PyObject_ASSERT_FAILED_MSG() to log the object causing the fatal error. | 09 November 2022, 07:40:40 UTC |
f7a82cd | Filipe Laíns | 09 November 2022, 03:27:13 UTC | CODEOWNERS: add myself to sysconfig and importlib.resources (#98851) | 09 November 2022, 03:27:13 UTC |
b3bd69c | Bruno Neyra | 09 November 2022, 00:39:56 UTC | [Enum] Typo: fix DuplicateFreeEnum example docs (GH-99265) | 09 November 2022, 00:39:56 UTC |
2eee9d9 | Gregory P. Smith | 08 November 2022, 21:00:31 UTC | gh-99238: clarify the type of the env dict. (#99253) | 08 November 2022, 21:00:31 UTC |
027bc7e | Carl Meyer | 08 November 2022, 20:39:32 UTC | gh-94445: add compiler test for another case of excessive stack use (GH-99237) | 08 November 2022, 20:39:32 UTC |
0b4ffb0 | Ethan Furman | 08 November 2022, 20:00:19 UTC | gh-99248: [Enum] fix negative number infinite loop (GH-99256) [Enum] fix negative number infinite loop - _iter_bits_lsb() now raises a ValueError if a negative number is passed in - verify() now skips checking negative numbers for named flags | 08 November 2022, 20:00:19 UTC |
52f91c6 | Eric Snow | 08 November 2022, 17:03:03 UTC | gh-90868: Adjust the Generated Objects (gh-99223) We do the following: * move the generated _PyUnicode_InitStaticStrings() to its own file * move the generated _PyStaticObjects_CheckRefcnt() to its own file * include pycore_global_objects.h in extension modules instead of pycore_runtime_init.h These changes help us avoid including things that aren't needed. https://github.com/python/cpython/issues/90868 | 08 November 2022, 17:03:03 UTC |
d45cc80 | Eric Snow | 08 November 2022, 16:58:11 UTC | gh-98627: Add the _testsinglephase Module (gh-99039) This makes it more clear that a given test is definitely testing against a single-phase init (legacy) extension module. The new module is a companion to _testmultiphase. https://github.com/python/cpython/issues/98627 | 08 November 2022, 16:58:11 UTC |
4d5fcca | Victor Stinner | 08 November 2022, 16:40:27 UTC | gh-91248: Add PyFrame_GetVar() function (#95712) Add PyFrame_GetVar() and PyFrame_GetVarString() functions to get a frame variable by its name. Move PyFrameObject C API tests from test_capi to test_frame. | 08 November 2022, 16:40:27 UTC |
acf4d5d | Mikael Koli | 08 November 2022, 16:26:06 UTC | Fix broken link in `asyncio-subprocesses` doc (GH-99214) # Fix broken link in Doc/library/asyncio-subprocess.rst This is a trivial fix in documentation to fix a broken link. There is a broken link in [Doc/library/asyncio-subprocess.rst](https://docs.python.org/3/library/asyncio-subprocess.html#asyncio.subprocess.Process) for the function ``wait_for``: ![image](https://user-images.githubusercontent.com/37690409/200388894-fb6b7c42-b2cc-49ec-a239-e3472890db1f.png) I suppose this refers to the function ``asyncio.wait_for`` which is not clear in the docs. This PR fixes the link and the result looks like the following: ![image](https://user-images.githubusercontent.com/37690409/200389483-b4a92105-7d2c-4285-b0fc-78a6dc0be39c.png) Automerge-Triggered-By: GH:AlexWaygood | 08 November 2022, 16:26:06 UTC |
f1a6546 | Guido van Rossum | 08 November 2022, 16:22:56 UTC | GH-98831: Simple input-output stack effects for bytecodes.c (#99120) | 08 November 2022, 16:22:56 UTC |
c7065ce | Brandt Bucher | 08 November 2022, 15:50:46 UTC | GH-93143: Don't turn LOAD_FAST into LOAD_FAST_CHECK (GH-99075) | 08 November 2022, 15:50:46 UTC |
e56e33d | Nikita Sobolev | 08 November 2022, 15:48:58 UTC | gh-72719: Remove asyncore and asynchat modules (#96580) Remove modules asyncore and asynchat, which were deprecated by PEP 594. Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> | 08 November 2022, 15:48:58 UTC |
c43714f | Irit Katriel | 08 November 2022, 09:32:20 UTC | gh-99181: fix except* on unhashable exceptions (GH-99192) | 08 November 2022, 09:32:20 UTC |
a751bf5 | Kumar Aditya | 08 November 2022, 06:50:07 UTC | GH-90699: fix refleak in `_testcapimodule.c` (gh-99236) | 08 November 2022, 06:50:07 UTC |
b9dedfe | Kamil Turek | 08 November 2022, 04:53:59 UTC | gh-92119: ctypes: Print exception class name instead of its representation (#98302) | 08 November 2022, 04:53:59 UTC |
a309ad9 | Nikita Sobolev | 08 November 2022, 01:48:23 UTC | gh-98513: Test abstract methods of some `collections` types (#98516) | 08 November 2022, 01:48:23 UTC |
c32bc1b | Nikita Sobolev | 08 November 2022, 01:47:32 UTC | gh-99124: use concrete exception types in `test_builtin` (#99125) | 08 November 2022, 01:47:32 UTC |
d315722 | Gregory P. Smith | 08 November 2022, 00:54:41 UTC | gh-98433: Fix quadratic time idna decoding. (#99092) There was an unnecessary quadratic loop in idna decoding. This restores the behavior to linear. This also adds an early length check in IDNA decoding to outright reject huge inputs early on given the ultimate result is defined to be 63 or fewer characters. | 08 November 2022, 00:54:41 UTC |
9430d27 | Hugo van Kemenade | 07 November 2022, 20:23:35 UTC | gh-98817: Remove PCbuild/lib.pyproj (GH-98818) | 07 November 2022, 20:23:35 UTC |
be0d500 | Kumar Aditya | 07 November 2022, 20:06:23 UTC | GH-90699: Remove remaining `_Py_IDENTIFIER` stdlib usage (GH-99067) | 07 November 2022, 20:06:23 UTC |
1438b77 | Petr Viktorin | 07 November 2022, 18:45:50 UTC | gh-96746: Docs: Clear up Py_TPFLAGS_DISALLOW_INSTANTIATION inheritance (GH-99002) The flag is not inherited, but its effect -- a NULL tp_new -- is. Drop hints for people who come here wanting to “disallow instantiation”. | 07 November 2022, 18:45:50 UTC |
4a1c58d | Mark Shannon | 07 November 2022, 14:49:51 UTC | GH-96793: Specialize FOR_ITER for generators. (GH-98772) | 07 November 2022, 14:49:51 UTC |
80c08d1 | Noam Cohen | 07 November 2022, 14:27:37 UTC | gh-95389: expose popular ETHERTYPE_* constants in the socket module (#95390) Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM> | 07 November 2022, 14:27:37 UTC |
6168e71 | Pablo Galindo Salgado | 07 November 2022, 13:37:14 UTC | gh-98254: Add what's new entry for the improvement in commit bb56dead336357153a0c3b8cc9d9d6856d2c5a03 (#99197) | 07 November 2022, 13:37:14 UTC |
be31ecf | Pablo Galindo Salgado | 07 November 2022, 13:36:48 UTC | gh-91058: Add what's new entry for the improvement in commit 7cfbb49fcd4c85f9bab3797302eadf93df490344 (#99198) | 07 November 2022, 13:36:48 UTC |
e02f1e2 | Erlend E. Aasland | 07 November 2022, 13:18:36 UTC | Docs: add argument spec to sqlite3 CLI docs (#99200) | 07 November 2022, 13:18:36 UTC |
5ff81da | Zackery Spytz | 07 November 2022, 11:45:16 UTC | bpo-38523: ignore_dangling_symlinks does not apply recursively (GH-22937) | 07 November 2022, 11:45:16 UTC |
cfec5b1 | Harshil | 07 November 2022, 07:43:39 UTC | remove new line in pickle exception message (GH-31782) | 07 November 2022, 07:43:39 UTC |
c6325b1 | andrei kulakov | 07 November 2022, 07:24:46 UTC | gh-91803: Mock - fix error when using autospec methods with seal (#92213) Fixes https://github.com/python/cpython/issues/91803. Co-authored-by: Karthikeyan Singaravelan <tir.karthi@gmail.com> Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com> | 07 November 2022, 07:24:46 UTC |
728e42f | jmcb | 07 November 2022, 04:55:55 UTC | doc: Formatting and typo fixes (#98974) | 07 November 2022, 04:55:55 UTC |
d7a00f1 | Nikita Sobolev | 07 November 2022, 03:02:13 UTC | GH-99155: Fix `NormalDist` pickle with `0` and `1` protocols (GH-99156) | 07 November 2022, 03:02:13 UTC |
bef9efa | Nikita Sobolev | 07 November 2022, 02:56:41 UTC | GH-99155: Fix `NormalDist` pickle with `0` and `1` protocols (GH99156) | 07 November 2022, 02:56:41 UTC |
f626b7b | Dong-hee Na | 07 November 2022, 01:19:25 UTC | gh-96055: Update faulthandler to emit proper unexpect signal number (gh-99162) | 07 November 2022, 01:19:25 UTC |
57a4052 | Wenzel Jakob | 06 November 2022, 22:54:55 UTC | gh-98586: Add What's New entry and update docs (#99056) Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> | 06 November 2022, 22:54:55 UTC |
bd221c0 | Anh71me | 06 November 2022, 22:13:40 UTC | gh-98139: enhance namespace package repr | 06 November 2022, 22:13:40 UTC |
2db55e0 | Nouran Ali | 06 November 2022, 20:14:58 UTC | gh-94286 Fix documentation of print default param (GH-94297) | 06 November 2022, 20:14:58 UTC |
5eff82f | Terry Jan Reedy | 06 November 2022, 20:10:22 UTC | bpo-33964: IDLE macosx - removed unused local dict. (GH-7926) | 06 November 2022, 20:10:22 UTC |
a71b117 | Ethan Furman | 06 November 2022, 20:03:42 UTC | [Enum] add built-in property to test_test_simple_enum (GH-98453) | 06 November 2022, 20:03:42 UTC |
8463cb5 | Nikita Sobolev | 06 November 2022, 19:28:44 UTC | gh-99051: remove duplicated test from `test_weakref` (GH-99052) | 06 November 2022, 19:28:44 UTC |
7dcd28e | Guido van Rossum | 06 November 2022, 17:40:47 UTC | GH-98831: Implement super-instruction generation (#99084) Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM> | 06 November 2022, 17:40:47 UTC |
ede6cb2 | jonasdlindner | 06 November 2022, 16:54:44 UTC | Correct some typos in comments (GH-98194) Automerge-Triggered-By: GH:AlexWaygood | 06 November 2022, 16:54:44 UTC |
61b6c40 | Irit Katriel | 06 November 2022, 15:36:19 UTC | gh-99153: set location on SyntaxError for try with both except and except* (GH-99160) | 06 November 2022, 15:36:19 UTC |
d3b82b4 | Shantanu | 06 November 2022, 14:05:13 UTC | gh-83004: Clean up refleak in _pickle initialisation (#98841) | 06 November 2022, 14:05:13 UTC |
31f2f65 | Shantanu | 06 November 2022, 14:04:36 UTC | gh-83004: Clean up refleak in _zoneinfo initialisation (#98842) | 06 November 2022, 14:04:36 UTC |
99e2e60 | Pablo Galindo Salgado | 06 November 2022, 13:52:06 UTC | gh-99139: Improve NameError error suggestion for instances (#99140) | 06 November 2022, 13:52:06 UTC |
a0bc75e | Nikita Sobolev | 06 November 2022, 11:53:57 UTC | `test_typing`: use all pickle protocols (#99154) | 06 November 2022, 11:53:57 UTC |
8feb7ab | Ethan Furman | 06 November 2022, 01:01:08 UTC | gh-93464: [Enum] fix auto() failure during multiple assignment (GH-99148) * fix auto() failure during multiple assignment i.e. `ONE = auto(), 'text'` will now have `ONE' with the value of `(1, 'text')`. Before it would have been `(<an auto instance>, 'text')` | 06 November 2022, 01:01:08 UTC |
586b07e | Doj | 05 November 2022, 21:03:29 UTC | [doc] fix typo (GH-99143) | 05 November 2022, 21:03:29 UTC |
47ab848 | Paul Moore | 05 November 2022, 17:50:39 UTC | gh-99134: Update bundled pip to 22.3.1 (gh-99135) Update bundled pip to 22.3.1 | 05 November 2022, 17:50:39 UTC |
317acb8 | Nikita Sobolev | 05 November 2022, 17:08:47 UTC | gh-94808: add tests covering `PyFunction_GetKwDefaults` and `PyFunction_SetKwDefaults` (GH-98809) | 05 November 2022, 17:08:47 UTC |
c5c4077 | Nikita Sobolev | 05 November 2022, 17:08:00 UTC | gh-94808: add tests covering `PySequence_{Set,Del}Slice` (GH-99123) | 05 November 2022, 17:08:00 UTC |
67ade40 | Kaushik Kulkarni | 05 November 2022, 16:31:57 UTC | gh-98284: better error message for undefined abstractmethod (#97971) | 05 November 2022, 16:31:57 UTC |
b5f7111 | Nikita Sobolev | 05 November 2022, 13:07:59 UTC | gh-94808: add tests covering `PyEval_GetFuncDesc` function (GH-98300) | 05 November 2022, 13:07:59 UTC |
12078e7 | Sam James | 05 November 2022, 08:30:31 UTC | gh-99086: Fix implicit int compiler warning in configure check for PTHREAD_SCOPE_SYSTEM (#99085) | 05 November 2022, 08:30:31 UTC |
d04899a | Guido van Rossum | 05 November 2022, 00:40:43 UTC | GH-99104: Update headers for bytecodes.c and generate_cases.py (#99112) Also tweak the labels near the end of bytecodes.c. | 05 November 2022, 00:40:43 UTC |
6a8d3c5 | Brandt Bucher | 04 November 2022, 23:54:32 UTC | GH-98686: Fix compiler warning for HAS_ARG (GH-99106) | 04 November 2022, 23:54:32 UTC |
7a020b8 | Mark Shannon | 04 November 2022, 23:37:53 UTC | GH-98831: Add some macros definitions to bytecodes.c to reduce IDE warnings. (#99093) | 04 November 2022, 23:37:53 UTC |
c885623 | Guido van Rossum | 04 November 2022, 22:30:17 UTC | GH-98831: Auto-generate PREDICTED() macro calls (#99102) Co-authored-by: Brandt Bucher <brandtbucher@gmail.com> | 04 November 2022, 22:30:17 UTC |
e99380c | Brandt Bucher | 04 November 2022, 22:00:51 UTC | GH-98831: Add `regen-cases` to `regen-all` (#99107) | 04 November 2022, 22:00:51 UTC |
f09da28 | Victor Stinner | 04 November 2022, 13:41:33 UTC | gh-90867: test.support.wait_process() uses LONG_TIMEOUT (#99071) The test.support.wait_process() function now uses a timeout of LONG_TIMEOUT seconds by default, instead of SHORT_TIMEOUT. It doesn't matter if a Python buildbot is slower, it only matters that the process completes. The timeout should just be shorter than "forever". | 04 November 2022, 13:41:33 UTC |
387f725 | Victor Stinner | 04 November 2022, 13:24:10 UTC | gh-90716: Fix pylong_int_from_string() refleak (#99094) Fix validated by: $ ./python -m test -R 3:3 test_int Tests result: SUCCESS | 04 November 2022, 13:24:10 UTC |
c0bf760 | Skip Montanaro | 04 November 2022, 13:02:11 UTC | minor edits to locale doc (#98537) | 04 November 2022, 13:02:11 UTC |
2844aa6 | Michael Droettboom | 04 November 2022, 10:15:54 UTC | Support comparing two sets of pystats (GH-98816) This adds support for comparing pystats collected from two different builds. - The `--json-output` can be used to load in a set of raw stats and output a JSON file. - Two of these JSON files can be provided on the next run, and then comparative results between the two are output. | 04 November 2022, 10:15:54 UTC |
044bcc1 | Nikita Sobolev | 04 November 2022, 09:58:38 UTC | gh-94808: Cover `LOAD_GLOBAL` for custom dict subtypes (GH-96767) | 04 November 2022, 09:58:38 UTC |
016c7d3 | Nick Pope | 03 November 2022, 23:21:01 UTC | Docs: add `named` to the list of styles in the sqlite3.paramstyle attr docs (#99078) | 03 November 2022, 23:21:01 UTC |
4c4b5ce | Gregory P. Smith | 03 November 2022, 23:18:38 UTC | gh-90716: bugfixes and more tests for _pylong. (#99073) * Properly decref on _pylong import error. * Improve the error message on _pylong TypeError. * Fix the assertion error in pydebug builds to be a TypeError. * Tie the return value comments together. These are minor followups to issues not caught among the reviewers on https://github.com/python/cpython/pull/96673. | 03 November 2022, 23:18:38 UTC |
bee1070 | Gregory P. Smith | 03 November 2022, 21:41:20 UTC | gh-73691: Increase size limits in _xxtestfuzz (#99070) Now that our int<->str conversions are size limited and we have the _pylong module handling larger integers, we don't need to limit everything just to avoid wasting time in the quadratic time DoS-like case while fuzzing. We can tweak these further after seeing how this goes. | 03 November 2022, 21:41:20 UTC |
0ee59a9 | Kumar Aditya | 03 November 2022, 20:20:10 UTC | GH-90699: Remove `_Py_IDENTIFIER` usage from `_ctypes` (GH-99054) | 03 November 2022, 20:20:10 UTC |
0faa0ba | Victor Stinner | 03 November 2022, 18:27:27 UTC | gh-92584: Remove the distutils package (#99061) Remove the distutils package. It was deprecated in Python 3.10 by PEP 632 "Deprecate distutils module". For projects still using distutils and cannot be updated to something else, the setuptools project can be installed: it still provides distutils. * Remove Lib/distutils/ directory * Remove test_distutils * Remove references to distutils * Skip test_check_c_globals and test_peg_generator since they use distutils | 03 November 2022, 18:27:27 UTC |
b07f546 | Victor Stinner | 03 November 2022, 17:34:32 UTC | gh-98978: Fix Py_SetPythonHome(NULL) (#99066) Fix use-after-free in Py_SetPythonHome(NULL), Py_SetProgramName(NULL) and _Py_SetProgramFullPath(NULL) function calls. Issue reported by Benedikt Reinartz. | 03 November 2022, 17:34:32 UTC |
ef0e72b | Victor Stinner | 03 November 2022, 17:32:25 UTC | gh-94172: Remove keyfile, certfile and check_hostname parameters (#94173) Remove the keyfile, certfile and check_hostname parameters, deprecated since Python 3.6, in modules: ftplib, http.client, imaplib, poplib and smtplib. Use the context parameter (ssl_context in imaplib) instead. Parameters following the removed parameters become keyword-only parameters. ftplib: Remove the FTP_TLS.ssl_version class attribute: use the context parameter instead. | 03 November 2022, 17:32:25 UTC |
9c4ae03 | Victor Stinner | 03 November 2022, 17:16:28 UTC | gh-90716: Remove _pylong._DEBUG flag (#99063) To debug the _pylong module, it's trivial to add this code again locally. There is not need to keep it in Python releases. | 03 November 2022, 17:16:28 UTC |
e3b9832 | Nikita Sobolev | 03 November 2022, 17:14:12 UTC | gh-98884: [pathlib] remove `hasattr` check for `lru_cache` (#98885) | 03 November 2022, 17:14:12 UTC |
e99c507 | Victor Stinner | 03 November 2022, 17:12:45 UTC | gh-92584: Remove references to removed _bootsubprocess (#99062) The _bootsubprocess module was removed in gh-93939 by commit 81dca70d704d0834d8c30580e648a973250b2973. | 03 November 2022, 17:12:45 UTC |
00b6745 | Johnny11502 | 03 November 2022, 16:57:30 UTC | gh-97909: PyMemberDef & PyGetSetDef members are not marked up (GH-98810) | 03 November 2022, 16:57:30 UTC |
a60ddd3 | Victor Stinner | 03 November 2022, 16:53:25 UTC | gh-98401: Invalid escape sequences emits SyntaxWarning (#99011) A backslash-character pair that is not a valid escape sequence now generates a SyntaxWarning, instead of DeprecationWarning. For example, re.compile("\d+\.\d+") now emits a SyntaxWarning ("\d" is an invalid escape sequence), use raw strings for regular expression: re.compile(r"\d+\.\d+"). In a future Python version, SyntaxError will eventually be raised, instead of SyntaxWarning. Octal escapes with value larger than 0o377 (ex: "\477"), deprecated in Python 3.11, now produce a SyntaxWarning, instead of DeprecationWarning. In a future Python version they will be eventually a SyntaxError. codecs.escape_decode() and codecs.unicode_escape_decode() are left unchanged: they still emit DeprecationWarning. * The parser only emits SyntaxWarning for Python 3.12 (feature version), and still emits DeprecationWarning on older Python versions. * Fix SyntaxWarning by using raw strings in Tools/c-analyzer/ and wasm_build.py. | 03 November 2022, 16:53:25 UTC |
916af11 | Guido van Rossum | 03 November 2022, 16:50:35 UTC | GH-98831: Remove redundant extract_cases.py script (GH-99065) Debt I owe from PR GH-98830. | 03 November 2022, 16:50:35 UTC |
b8a9f13 | Victor Stinner | 03 November 2022, 14:56:12 UTC | gh-97616: test_list_resize_overflow() uses sys.maxsize (#99057) | 03 November 2022, 14:56:12 UTC |
1208037 | Shantanu | 03 November 2022, 14:29:11 UTC | gh-83004: Clean up refleak in _io initialisation (#98840) | 03 November 2022, 14:29:11 UTC |
8c4de57 | serge-sans-paille | 03 November 2022, 13:31:37 UTC | gh-98948: Remove obsolete readelf dependency (#98949) This got introduced in commit 5884449539510313c826d69835829c7957c7154a to determine if readline is already linked against curses or tinfo in the setup.py, which is no longer present. | 03 November 2022, 13:31:37 UTC |
cff1c20 | Victor Stinner | 03 November 2022, 12:33:33 UTC | gh-94199: Remove ssl.wrap_socket() documentation (#99023) The function has been removed. In the ssl documentation, replace references to the ssl.wrap_socket() function with references to the ssl.SSLContext.wrap_socket() method. Co-authored-by: Illia Volochii <illia.volochii@gmail.com> | 03 November 2022, 12:33:33 UTC |
f4adb97 | Mark Shannon | 03 November 2022, 11:38:51 UTC | GH-96793: Implement PEP 479 in bytecode. (GH-99006) * Handle converting StopIteration to RuntimeError in bytecode. * Add custom instruction for converting StopIteration into RuntimeError. | 03 November 2022, 11:38:51 UTC |
e9ac890 | Serhiy Storchaka | 03 November 2022, 07:23:46 UTC | gh-98740: Fix validation of conditional expressions in RE (GH-98764) In very rare circumstances the JUMP opcode could be confused with the argument of the opcode in the "then" part which doesn't end with the JUMP opcode. This led to incorrect detection of the final JUMP opcode and incorrect calculation of the size of the subexpression. NOTE: Changed return value of functions _validate_inner() and _validate_charset() in Modules/_sre/sre.c. Now they return 0 on success, -1 on failure, and 1 if the last op is JUMP (which usually is a failure). Previously they returned 1 on success and 0 on failure. | 03 November 2022, 07:23:46 UTC |
41bc101 | Guido van Rossum | 03 November 2022, 04:31:26 UTC | GH-98831: "Generate" the interpreter (#98830) The switch cases (really TARGET(opcode) macros) have been moved from ceval.c to generated_cases.c.h. That file is generated from instruction definitions in bytecodes.c (which impersonates a C file so the C code it contains can be edited without custom support in e.g. VS Code). The code generator lives in Tools/cases_generator (it has a README.md explaining how it works). The DSL used to describe the instructions is a work in progress, described in https://github.com/faster-cpython/ideas/blob/main/3.12/interpreter_definition.md. This is surely a work-in-progress. An easy next step could be auto-generating super-instructions. **IMPORTANT: Merge Conflicts** If you get a merge conflict for instruction implementations in ceval.c, your best bet is to port your changes to bytecodes.c. That file looks almost the same as the original cases, except instead of `TARGET(NAME)` it uses `inst(NAME)`, and the trailing `DISPATCH()` call is omitted (the code generator adds it automatically). | 03 November 2022, 04:31:26 UTC |
2cfcaf5 | Nikita Sobolev | 03 November 2022, 03:03:12 UTC | gh-98999: Raise `ValueError` in `_pyio` on closed buffers (gh-99009) | 03 November 2022, 03:03:12 UTC |
26720ff | Hugo van Kemenade | 03 November 2022, 02:15:00 UTC | Docs: Add 'as, match statement' to the index (#99001) | 03 November 2022, 02:15:00 UTC |
29e027c | Nikita Sobolev | 03 November 2022, 02:10:42 UTC | gh-98512: Add more tests for `ValuesView` (#98515) | 03 November 2022, 02:10:42 UTC |