3591 Commits

Author SHA1 Message Date
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
Łukasz Langa
761c5a1ce4 Post 3.9.1rc1 2020-11-26 18:49:45 +01:00
Łukasz Langa
88db374422 Python 3.9.1rc1 2020-11-24 17:48:47 +01:00
Victor Stinner
05a5d697f4 bpo-41686: Always create the SIGINT event on Windows (GH-23344) (GH-23347)
bpo-41686, bpo-41713: On Windows, the SIGINT event,
_PyOS_SigintEvent(), is now created even if Python is configured to
not install signal handlers (PyConfig.install_signal_handlers=0 or
Py_InitializeEx(0)).
2020-11-17 18:58:12 +01:00
Victor Stinner
ec306a2fd9 bpo-41617: Add _Py__has_builtin() macro (GH-23260) (GH-23262)
Fix building pycore_bitutils.h internal header on old clang version
without __builtin_bswap16() (ex: Xcode 4.6.3 on Mac OS X 10.7).

Add a new private _Py__has_builtin() macro to check for availability
of a preprocessor builtin function.

Co-Authored-By: Joshua Root <jmr@macports.org>

Co-authored-by: Joshua Root <jmr@macports.org>
(cherry picked from commit b3b98082c5)
2020-11-13 16:38:06 +01:00
Miss Skeleton (bot)
ebc5a6b59e bpo-41986: Add Py_FileSystemDefaultEncodeErrors and Py_UTF8Mode back to limited API (GH-22621)
(cherry picked from commit 637a09b0d6)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2020-10-10 07:32:09 -07:00
Łukasz Langa
1691435fe7 Post 3.9.0 2020-10-05 18:07:40 +02:00
Łukasz Langa
9cf6752276 Python 3.9.0 2020-10-05 17:07:58 +02:00
Pablo Galindo
d6360891b3 Fix a compiler warning in pycore_pylifecycle.h (GH-22331) 2020-10-04 18:35:07 +02:00
Miss Islington (bot)
df71b65a88 bpo-41875: Use __builtin_unreachable when possible (GH-22433)
(cherry picked from commit 24ba3b0df5)

Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
2020-10-04 18:19:34 +02:00
Łukasz Langa
1f7c99ccf6 Post 3.9.0rc2 2020-09-17 10:45:49 +02:00
Łukasz Langa
2bd31b5fde Python 3.9.0rc2 2020-09-16 23:23:13 +02:00
Pablo Galindo
55e0836849 [3.9] bpo-41631: _ast module uses again a global state (GH-21961) (GH-22258)
Partially revert commit ac46eb4ad6:
"bpo-38113: Update the Python-ast.c generator to PEP384 (gh-15957)".

Using a module state per module instance is causing subtle practical
problems.

For example, the Mercurial project replaces the __import__() function
to implement lazy import, whereas Python expected that "import _ast"
always return a fully initialized _ast module.

Add _PyAST_Fini() to clear the state at exit.

The _ast module has no state (set _astmodule.m_size to 0). Remove
astmodule_traverse(), astmodule_clear() and astmodule_free()
functions..
(cherry picked from commit e5fbe0cbd4)

Co-authored-by: Victor Stinner <vstinner@python.org>
2020-09-15 20:32:56 +02:00
Victor Stinner
4217b3c128 bpo-41617: Fix pycore_byteswap.h to support clang 3.0 (GH-22042) (GH-22044)
__builtin_bswap16() is not available in LLVM clang 3.0.

(cherry picked from commit e6905e4c82)
2020-09-01 20:54:37 +02:00
Łukasz Langa
6e21a30215 Post 3.9.0rc1 2020-08-11 23:29:16 +02:00