Commit graph

3630 commits

Author SHA1 Message Date
Miss Islington (bot)
95c9c2b9cb
gh-93065: Fix HAMT to iterate correctly over 7-level deep trees (GH-93066) (#93147)
Also while there, clarify a few things about why we reduce the hash to 32 bits.

Co-authored-by: Eli Libman <eli@hyro.ai>
Co-authored-by: Yury Selivanov <yury@edgedb.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>

(cherry picked from commit c1f5c903a7)
2022-05-24 10:52:49 +02:00
Łukasz Langa
ab003d0ba4
Post 3.9.13 2022-05-17 19:06:39 +02:00
Łukasz Langa
6de2ca5339
Python 3.9.13 2022-05-17 13:12:56 +02:00
Łukasz Langa
6f345d3633
Post 3.9.12 2022-03-24 01:26:30 +01:00
Łukasz Langa
b28265d7e6
Python 3.9.12 2022-03-23 22:12:08 +01:00
Łukasz Langa
665a399e1d
Post 3.9.11, take two 2022-03-16 16:05:47 +01:00
Łukasz Langa
2de452f8bf
Python 3.9.11, take two 2022-03-16 14:03:13 +01:00
Łukasz Langa
27f6386ffd
Post 3.9.11 2022-03-15 23:43:30 +01:00
Łukasz Langa
0f0c55c9f0
Python 3.9.11 2022-03-15 21:47:24 +01:00
Łukasz Langa
4de57db294
Post 3.9.10 2022-01-14 22:49:33 +01:00
Łukasz Langa
f2f3f53782
Python 3.9.10 2022-01-13 22:21:23 +01:00
Victor Stinner
92631a4144
bpo-39026: Fix Python.h when building with Xcode (GH-29488) (GH-29776)
Fix Python.h to build C extensions with Xcode: remove a relative
include from Include/cpython/pystate.h.

(cherry picked from commit 4ae26b9c1d)
2021-11-26 10:59:31 +01:00
Mark Shannon
4296396db0
[3.9] bpo-45806: Fix recovery from stack overflow for 3.9. Again. (GH-29640)
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2021-11-19 19:51:50 +01:00
Łukasz Langa
3bb2566ce8
Post 3.9.9 2021-11-15 22:41:03 +01:00
Łukasz Langa
ccb0e6a345
Python 3.9.9 2021-11-15 18:43:00 +01:00
Łukasz Langa
5fdf7912ca
Post 3.9.8 2021-11-05 22:21:27 +01:00
Łukasz Langa
bb3fdcfe95
Python 3.9.8 2021-11-05 20:21:41 +01:00
Serhiy Storchaka
6848602806
bpo-45467: Fix IncrementalDecoder and StreamReader in the "raw-unicode-escape" codec (GH-28944) (GH-28953)
They support now splitting escape sequences between input chunks.

Add the third parameter "final" in codecs.raw_unicode_escape_decode().
It is True by default to match the former behavior.

(cherry picked from commit 39aa98346d)
2021-10-14 21:23:52 +03:00
Serhiy Storchaka
7c722e32bf
[3.9] bpo-45461: Fix IncrementalDecoder and StreamReader in the "unicode-escape" codec (GH-28939) (GH-28945)
They support now splitting escape sequences between input chunks.

Add the third parameter "final" in codecs.unicode_escape_decode().
It is True by default to match the former behavior.
(cherry picked from commit c96d1546b1)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2021-10-14 20:03:29 +03:00
Christian Clauss
6c97b03cf6
[3.9] Fix typos in the Include directory (GH-28745) (GH-28788)
(cherry picked from commit 8e8f752217)
2021-10-07 06:01:05 -07:00
Serhiy Storchaka
e9ce081ec7
[3.9] Remove trailing spaces (GH-28710) 2021-10-03 20:04:38 +03:00
Miss Islington (bot)
9626ac8b74
closes bpo-44751: Move crypt.h include from public header to _cryptmodule (GH-27394)
Automerge-Triggered-By: GH:benjaminp
(cherry picked from commit 196998e220)

Co-authored-by: Geoffrey Thomas <geofft@ldpreload.com>
2021-09-29 13:47:58 -07:00
Łukasz Langa
5482db5800
[3.9] [codemod] Fix non-matching bracket pairs (GH-28473) (GH-28512)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>.
(cherry picked from commit 8f943ca257)

Co-authored-by: Mohamad Mansour <66031317+mohamadmansourX@users.noreply.github.com>
2021-09-22 17:32:04 +02:00
Miss Islington (bot)
41c2374024
[3.9] bpo-45083: Include the exception class qualname when formatting an exception (GH-28119) (GH-28135)
* bpo-45083: Include the exception class qualname when formatting an exception (GH-28119)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
(cherry picked from commit b4b6342848)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2021-09-03 18:56:05 +02:00
Łukasz Langa
9ab2b48f2b
Post 3.9.7 2021-08-30 23:55:37 +02:00
Łukasz Langa
1016ef3790
Python 3.9.7 2021-08-30 21:02:15 +02:00
Miss Islington (bot)
298ee657ab
bpo-44184: Fix subtype_dealloc() for freed type (GH-26274)
Fix a crash at Python exit when a deallocator function removes the
last strong reference to a heap type.

Don't read type memory after calling basedealloc() since
basedealloc() can deallocate the type and free its memory.

_PyMem_IsPtrFreed() argument is now constant.
(cherry picked from commit 615069eb08)

Co-authored-by: Victor Stinner <vstinner@python.org>
2021-07-15 16:36:51 -07:00
Łukasz Langa
0787a1b9d0
Post 3.9.6 2021-06-28 11:48:44 +02:00
Łukasz Langa
db3ff76da1
Python 3.9.6 2021-06-28 10:26:18 +02:00
Miss Islington (bot)
865269458f
bpo-44363: Get test_capi passing with address sanitizer (GH-26639)
(cherry picked from commit 31aa0dbff4)

Co-authored-by: Mark Shannon <mark@hotpy.org>
2021-06-10 05:01:22 -07:00
Jakub Kulík
d3cc68900d
[3.9] bpo-43667: Fix broken Unicode encoding in non-UTF locales on Solaris (GH-25096) (GH-25847)
(cherry picked from commit 9032cf5cb1)

Co-authored-by: Jakub Kulík <Kulikjak@gmail.com>
2021-05-21 16:59:39 +02:00
Łukasz Langa
bf124244f0
Post 3.9.5 2021-05-03 20:26:51 +02:00
Łukasz Langa
0a7dcbdb13
Python 3.9.5 2021-05-03 16:54:42 +02:00
Miss Islington (bot)
15ad30d88f
bpo-43816: Add extern "C" to Include/cpython/pyctype.h (GH-25365) (GH-25387)
Signed-off-by: Andrew V. Jones <andrew.jones@vector.com>
(cherry picked from commit 54db51c911)

Co-authored-by: Andrew V. Jones <andrewvaughanj@gmail.com>

Co-authored-by: Andrew V. Jones <andrewvaughanj@gmail.com>
2021-04-13 14:20:13 +02:00
Łukasz Langa
c3c43dc07b
Post 3.9.4 2021-04-04 20:39:08 +02:00
Łukasz Langa
1f2e3088f3
Python 3.9.4 2021-04-04 14:56:53 +02:00
Gregory P. Smith
c7b0feca25
[3.9] bpo-43710: Rollback the 3.9 bpo-42500 fix, it broke the ABI in 3.9.3 (#25179)
This reverts commit 8b795ab554.

It changed the PyThreadState structure size, breaking the ABI in 3.9.3.
2021-04-04 13:02:29 +02:00
Łukasz Langa
9350cc02f8
Post 3.9.3 2021-04-02 19:39:11 +02:00
Łukasz Langa
e723086bc3
Python 3.9.3 2021-04-02 11:51:53 +02:00
Mark Shannon
8b795ab554
bpo-42500: Fix recursion in or after except (GH-23568) (#24501)
* Use counter, rather boolean state when handling soft overflows.

(cherry picked from commit 4e7a69bdb6)
2021-03-02 11:36:38 +01:00
Łukasz Langa
8cc6e27bd6
Post 3.9.2 2021-02-19 13:32:44 +01:00
Łukasz Langa
1a79785e3e
Python 3.9.2 2021-02-19 13:31:44 +01:00
Łukasz Langa
eba45a8ea7
Post 3.9.2rc1 2021-02-16 22:34:29 +01:00
Łukasz Langa
4064156d62
Python 3.9.2rc1 2021-02-16 21:10:19 +01:00
Miss Islington (bot)
b0b01811bb
bpo-35295: Remove outdated comment. (GH-24453)
(cherry picked from commit d938816acf)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
2021-02-04 20:44:17 -08:00
Miss Islington (bot)
995a6c0150
bpo-43030: Fixed a compiler warning in Py_UNICODE_ISSPACE with signed wchar_t (GH-24350)
(cherry picked from commit 42b1806af9)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2021-01-31 06:20:14 -08:00
Miss Islington (bot)
6e72ab909d
[3.9] bpo-40052: Fix alignment issue in PyVectorcall_Function() (GH-23999) (GH-24005)
```
In file included from /usr/include/python3.8/Python.h:147:
In file included from /usr/include/python3.8/abstract.h:837:
/usr/include/python3.8/cpython/abstract.h:91:11: error: cast from 'char *' to 'vectorcallfunc *'
(aka 'struct _object *(**)(struct _object *, struct _object *const *, unsigned long, struct _object *)')
increases required alignment from 1 to 8 [-Werror,-Wcast-align]

    ptr = (vectorcallfunc*)(((char *)callable) + offset);
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
```
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-Authored-By: Andreas Schneider <asn@cryptomilk.org>
Co-Authored-By: Antoine Pitrou <antoine@python.org>
(cherry picked from commit 056c08211b)
2021-01-05 16:46:58 +01:00
Victor Stinner
6b2ed38509
bpo-42591: Export missing Py_FrozenMain() symbol (GH-23730) (GH-23734)
Export the Py_FrozenMain() function: fix a Python 3.9.0 regression.
Python 3.9 uses -fvisibility=hidden and the function was not exported
explicitly and so not exported.

(cherry picked from commit b5c7b38f5e)
2020-12-15 00:31:54 +01:00
Łukasz Langa
170dec3598
Post 3.9.1 2020-12-08 03:09:53 +01:00
Łukasz Langa
1e5d33e9b9
Python 3.9.1 2020-12-07 15:02:38 +01:00