Commit Graph

3573 Commits

Author SHA1 Message Date
Miss Islington (bot)
cca896e13b 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-09-28 15:16:24 -07:00
Pablo Galindo
724df8325d Fix a compiler warning in pycore_pylifecycle.h (GH-22331) 2020-09-21 11:57:22 +01: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
Łukasz Langa
439c93d51f Python 3.9.0rc1 2020-08-11 20:58:17 +02:00
Miss Islington (bot)
b2514c4934 bpo-41098: Doc: Add missing deprecated directives (GH-21162)
PyUnicodeEncodeError_Create has been deprecated with
`Py_DEPRECATED` macro. But it was not documented.
(cherry picked from commit 46e19b61d3)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
2020-08-07 00:49:53 -07:00
Miss Islington (bot)
e8dda907fb bpo-41366: Fix clang warning for sign conversion (GH-21592)
(cherry picked from commit 680254a8dc)

Co-authored-by: Henry Schreiner <HenrySchreinerIII@gmail.com>
2020-07-23 01:59:21 -07:00
Łukasz Langa
9e84a2c424 Post 3.9.0b5 2020-07-20 21:34:58 +02:00
Łukasz Langa
8ad7d506ca Python 3.9.0b5 2020-07-20 19:47:09 +02:00
Miss Islington (bot)
a0a6f11678 Revert "bpo-40170: PyType_HasFeature() now always calls PyType_GetFlags() (GH-19378)" (GH-21390)
This partially reverts commit 45ec5b99ae.
(cherry picked from commit b26a0db8ea)

Co-authored-by: Victor Stinner <vstinner@python.org>
2020-07-08 02:19:38 -07:00
Miss Islington (bot)
1ce59f0421 bpo-41165: Deprecate PyEval_ReleaseLock() (GH-21309)
(cherry picked from commit 9ce8132e1f)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
2020-07-05 20:25:14 -07:00
Miss Islington (bot)
9c38408708 Uncomment Py_DEPRECATED for Py_UNICODE APIs (GH-21318)
PyUnicode_EncodeDecimal and PyUnicode_TransformDecimalToASCII
are deprecated since Python 3.3.
But Py_DEPRECATED(3.3) was commented out.
(cherry picked from commit 13c90e82b6)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
2020-07-04 19:19:40 -07:00
Łukasz Langa
c1feaa5468 Post 3.9.0b4 2020-07-03 18:47:54 +02:00
Łukasz Langa
69dec9c8d2 Python 3.9.0b4 2020-07-02 19:57:45 +02:00
Lysandros Nikolaou
8ae5e8ec81 [3.9] bpo-40939: Deprecate PyNode_Compile (GH-21036)
Automerge-Triggered-By: @pablogsal
2020-06-21 17:07:39 -07:00
Pablo Galindo
5b1a311512 [3.9] Do not emit deprecation warnings inside CPython for old parser APIs (GH-21025) 2020-06-21 21:26:59 +01:00
Lysandros Nikolaou
d301d9473e [3.9] bpo-40939: Deprecate the PyParser_SimpleParse* functions (GH-21012) 2020-06-21 02:15:45 +01:00
Inada Naoki
610a60c601 bpo-36346: Add Py_DEPRECATED to deprecated unicode APIs (GH-20878)
Co-authored-by: Kyle Stanley <aeros167@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
(cherry picked from commit 2c4928d37e)
2020-06-18 17:30:53 +09:00
Miss Islington (bot)
2c6d6c12c2 bpo-19569: Add a macro to suppress deprecation warnings (GH-9004)
Co-authored-by: Arfrever Frehtes Taifersar Arahesis <arfrever.fta@gmail.com>
(cherry picked from commit de4304dad8)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2020-06-16 20:18:02 -07:00
Miss Islington (bot)
b498c7f1b3 bpo-36020: Remove snprintf macro in pyerrors.h (GH-20889)
On Windows, GH-include "pyerrors.h" no longer defines "snprintf" and
"vsnprintf" macros.

PyOS_snprintf() and PyOS_vsnprintf() should be used to get portable
behavior.

Replace snprintf() calls with PyOS_snprintf() and replace vsnprintf()
calls with PyOS_vsnprintf().
(cherry picked from commit e822e37946)

Co-authored-by: Victor Stinner <vstinner@python.org>
2020-06-15 13:20:10 -07:00
Łukasz Langa
6c645cbdd2 Post 3.9.0b3 2020-06-09 23:35:14 +02:00
Łukasz Langa
b484871ba7 Python 3.9.0b3 2020-06-09 20:52:10 +02:00