Victor Stinner
6c54e5d721
gh-105376: Remove logging.Logger.warn() method ( #105377 )
2023-06-06 18:35:51 +00:00
Victor Stinner
221d703498
gh-104783: locale.getlocale() calls sys.getfilesystemencoding() ( #105401 )
...
locale.getlocale() always calls sys.getfilesystemencoding(), instead
of calling it only once.
2023-06-06 18:19:40 +00:00
Victor Stinner
2b8e6e5712
gh-94172: Update keyfile removal documentation ( #105392 )
...
Remove the "deprecated:: 3.6" markup, since the parameters (like
keyfile and certfile) got removed in Python 3.12.
2023-06-06 20:14:06 +02:00
Nikita Sobolev
3907de12b5
gh-92658: Fix typo in docs and tests for HV_GUID_PARENT
(GH-105267)
2023-06-06 17:11:19 +01:00
Victor Stinner
b1a91d26c6
gh-104783: locale.getencoding() fallback uses FS encoding ( #105381 )
...
The locale.getencoding() function now uses
sys.getfilesystemencoding() if _locale.getencoding() is missing,
instead of calling locale.getdefaultlocale().
2023-06-06 16:55:21 +02:00
Victor Stinner
3a975b5e92
gh-102304: Document Py_INCREF() change in What's New in Python 3.12 ( #105389 )
...
Not in Python 3.13.
2023-06-06 16:50:58 +02:00
Victor Stinner
04181965cf
gh-105156: Update Unicode C API: remove deprecation ( #105379 )
...
_PyUnicode_ToLowercase(), _PyUnicode_ToUppercase(),
_PyUnicode_ToTitlecase() are no longer deprecated in the
documentation. It's no longer needed since they now use Py_UCS4 type,
rather than the deprecated Py_UNICODE type.
2023-06-06 16:42:49 +02:00
Victor Stinner
0cb6b9b0db
gh-104783: Remove locale.resetlocale() function ( #104784 )
2023-06-06 14:55:50 +02:00
Victor Stinner
c7bf74bacd
gh-105268: Add _Py_FROM_GC() function to pycore_gc.h ( #105362 )
...
* gcmodule.c reuses _Py_AS_GC(op) for AS_GC()
* Move gcmodule.c FROM_GC() implementation to a new _Py_FROM_GC()
static inline function in pycore_gc.h.
* _PyObject_IS_GC(): only get the type once
* gc_is_finalized(à) and PyObject_GC_IsFinalized() use
_PyGC_FINALIZED(), instead of _PyGCHead_FINALIZED().
* Remove _Py_CAST() in pycore_gc.h: this header file is not built
with C++.
2023-06-06 14:44:48 +02:00
dependabot[bot]
963099ebd9
build(deps): bump requests from 2.29.0 to 2.31.0 in /Doc ( #105368 )
...
Bumps [requests](https://github.com/psf/requests ) from 2.29.0 to 2.31.0.
- [Release notes](https://github.com/psf/requests/releases )
- [Changelog](https://github.com/psf/requests/blob/main/HISTORY.md )
- [Commits](https://github.com/psf/requests/compare/v2.29.0...v2.31.0 )
---
updated-dependencies:
- dependency-name: requests
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-06 14:35:51 +02:00
Pablo Galindo Salgado
c0a6ed3934
gh-105259: Ensure we don't show newline characters for trailing NEWLINE tokens ( #105364 )
2023-06-06 12:52:16 +01:00
Victor Stinner
0202aa002e
gh-102304: Fix up Simple ABI doc (GH-105351)
2023-06-06 13:03:51 +02:00
Christopher Chavez
2c49c759e8
gh-104411: Update test_getint for Tcl 9.0 (GH-104412)
2023-06-06 13:01:22 +03:00
Victor Stinner
8ddf0dd264
gh-105268: Remove _PyGC_FINALIZED() macro ( #105350 )
...
Remove the old private, undocumented and untested _PyGC_FINALIZED()
macro which was kept for backward compatibility with Python 3.8 and
older.
2023-06-06 11:54:23 +02:00
Petr Viktorin
49fe2e4af7
Add myself as codeowner for Limited API/Stable ABI, remove from *import* (GH-105349)
...
This should set up more relevant notifications for me.
2023-06-06 09:33:40 +00:00
Erlend E. Aasland
e01c4de35d
gh-90005: Don't link with libbsd if not needed ( #105236 )
...
The regression was introduced with commit 5b946cada
.
Restore pre gh-29696 behaviour.
2023-06-06 09:33:01 +00:00
Irit Katriel
f4d8e10d0d
gh-105292: Add option to make traceback.TracebackException.format_exception_only recurse into exception groups ( #105294 )
...
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2023-06-06 11:26:18 +02:00
Victor Stinner
92022d8416
gh-102304: Fix Py_INCREF() stable ABI in debug mode ( #104763 )
...
When Python is built in debug mode (if the Py_REF_DEBUG macro is
defined), the Py_INCREF() and Py_DECREF() function are now always
implemented as opaque functions to avoid leaking implementation
details like the "_Py_RefTotal" variable or the
_Py_DecRefTotal_DO_NOT_USE_THIS() function.
* Remove _Py_IncRefTotal_DO_NOT_USE_THIS() and
_Py_DecRefTotal_DO_NOT_USE_THIS() from the stable ABI.
* Remove _Py_NegativeRefcount() from limited C API.
2023-06-06 11:15:09 +02:00
Victor Stinner
bae415ad02
gh-102304: doc: Add links to Stable ABI and Limited C API ( #105345 )
...
* Add "limited-c-api" and "stable-api" references.
* Rename "stable-abi-list" reference to "limited-api-list".
* Makefile: Document files regenerated by "make regen-limited-abi"
* Remove first empty line in generated files:
- Lib/test/test_stable_abi_ctypes.py
- PC/python3dll.c
2023-06-06 08:40:32 +00:00
Christopher Chavez
00d73caf80
gh-104399: Use newer libtommath APIs when necessary (GH-104407)
2023-06-06 09:52:07 +03:00
Gregory P. Smith
852348ab65
Display the sanitizer config in the regrtest header. ( #105301 )
...
Display the sanitizers present in libregrtest.
Having this in the CI output for tests with the relevant environment
variable displayed will help make it easier to do what we need to
create an equivalent local test run.
2023-06-05 23:36:36 -07:00
Pablo Galindo Salgado
f04c16875b
gh-105324: Fix tokenize module main function for stdin ( #105325 )
2023-06-05 18:36:40 +02:00
Tian Gao
677cf39741
Remove dead code in codeop.py ( #105263 )
2023-06-05 18:14:10 +02:00
Jakub Kuczys
a4f72fa39a
gh-89412: Add missing attributes (added in 3.10) to traceback module docs ( #105046 )
2023-06-05 18:10:13 +02:00
Hugo van Kemenade
eb0ce92141
What's New in 3.12: List 'Improved Modules' alphabetically ( #105315 )
2023-06-05 18:04:11 +03:00
Alex Waygood
f714aa2c29
gh-105286: Improve typing.py
docstrings ( #105287 )
...
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2023-06-05 14:16:09 +00:00
Alex Waygood
08756dbba6
gh-105280: Ensure isinstance([], collections.abc.Mapping)
always evaluates to False
( #105281 )
2023-06-05 14:10:49 +00:00
Dong-hee Na
058b960535
gh-103906: Remove immortal refcounting in compile/marshal.c (gh-103922)
2023-06-05 22:38:36 +09:00
Alex Waygood
cdfb201bfa
gh-105237: Allow calling issubclass(X, typing.Protocol)
again ( #105239 )
2023-06-05 06:36:51 -07:00
Jelle Zijlstra
69d1245685
gh-105164: Detect annotations inside match blocks ( #105177 )
2023-06-05 06:07:17 -07:00
Mark Shannon
0689340366
GH-105229: Replace some superinstructions with single instruction equivalent. (GH-105230)
2023-06-05 11:07:04 +01:00
Mark Shannon
e8ecb9ee6b
GH-104584: Allow optimizers to opt out of optimizing. (GH-105244)
2023-06-05 09:44:23 +01:00
Tian Gao
9efaff5fd3
gh-103558: Add coverage tests for argparse ( #103570 )
...
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Co-authored-by: hauntsaninja <hauntsaninja@gmail.com>
2023-06-05 00:14:00 -07:00
Gregory P. Smith
418befd75d
gh-98963: Restore the ability to have a dict-less property. ( #105262 )
...
Ignore doc string assignment failures in `property` as has been the
behavior of all past Python releases.
2023-06-05 03:18:15 +00:00
Inada Naoki
1237fb6a4b
gh-80480: array: Add 'w' typecode. ( #105242 )
2023-06-04 16:45:00 +00:00
Joe Geisbauer
5a5ed7a3e6
gh-104882: Docs: fix description of relationship between socket.getblocking()
and socket.gettimeout()
( #105026 )
2023-06-04 16:59:16 +01:00
Shantanu
9a90c9ace2
Fix typo in Python 3.12 What's New ( #105278 )
2023-06-04 16:42:00 +01:00
chgnrdv
ce558e69d4
gh-104690 Disallow thread creation and fork at interpreter finalization ( #104826 )
...
Disallow thread creation and fork at interpreter finalization.
in the following functions, check if interpreter is finalizing and raise `RuntimeError` with appropriate message:
* `_thread.start_new_thread` and thus `threading`
* `posix.fork`
* `posix.fork1`
* `posix.forkpty`
* `_posixsubprocess.fork_exec` when a `preexec_fn=` is supplied.
---------
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
2023-06-04 04:06:45 +00:00
Nikita Sobolev
eaff9c39aa
gh-89415: Mention new IP_*
constants in socket
module in the docs ( #105266 )
2023-06-03 08:28:29 -07:00
Irit Katriel
94a1eea511
gh-103277: remove unused macros ( #105247 )
2023-06-03 05:12:07 -06:00
Eric Snow
e6373c0d8b
gh-101524: Only Use Public C-API in the _xxsubinterpreters Module (gh-105258)
...
The _xxsubinterpreters module was meant to only use public API. Some internal C-API usage snuck in over the last few years (e.g. gh-28969). This fixes that.
2023-06-02 22:52:33 +00:00
Tian Gao
9ad199ba36
gh-105080: Fixed inconsistent signature on derived classes ( #105217 )
2023-06-02 16:22:33 -06:00
Brett Cannon
70dc2fb973
GH-102404, GH-100956: Document how to do a WASI build (GH-105251)
...
Also includes a reference shell script to implements what is documented.
2023-06-02 15:15:41 -07:00
Erlend E. Aasland
e01b04c907
gh-104614: Fix potential ref. leak in _testcapimodule/get_basic_static_type() ( #105225 )
2023-06-02 18:44:24 +02:00
Irit Katriel
0dafc785ee
gh-102778: update documentation of PyErr_PrintEx and traceback.print_last() regarding sys.last_exc ( #105190 )
2023-06-02 17:01:46 +01:00
Dong-hee Na
2f5c1ae080
gh-87092: avoid gcc warning on uninitialized struct field in assemble… (gh-105243)
...
gh-87092: avoid gcc warning on uninitialized struct field in assemble.c (part2)
2023-06-02 16:00:50 +00:00
Irit Katriel
a9305b5e80
gh-105240: add missing function prototypes ( #105241 )
2023-06-02 15:11:20 +00:00
Jelle Zijlstra
44bb03f856
gh-105214: Use named constants for MAKE_FUNCTION oparg ( #105215 )
2023-06-02 14:10:45 +00:00
Pablo Galindo Salgado
41de54378d
gh-105194: Fix format specifier escaped characters in f-strings ( #105231 )
2023-06-02 13:33:26 +02:00
Mark Shannon
4bfa01b9d9
GH-104584: Plugin optimizer API (GH-105100)
2023-06-02 11:46:18 +01:00