Victor Stinner
ce298a1c15
regrtest: --fast-ci/slow-ci no longer imply --rerun-fail ( #110849 )
2023-10-14 00:25:38 +00:00
Donghee Na
b2ab210aae
gh-109693: Update pyruntimestate._finalizing to use pyatomic.h (gh-110837)
2023-10-13 16:40:15 +00:00
Victor Stinner
8f07b6e4e3
gh-110697: test_os TimerfdTests uses selectors ( #110789 )
...
Replace select.epoll() with selectors.DefaultSelector to support
FreeBSD 14 and newer.
* Merge common code between test_timerfd_epoll()
test_timerfd_ns_epoll().
* Replace "_ = func()" with "func()".
* Add TimerfdTests.read_count_signaled() method.
2023-10-13 16:20:18 +02:00
Russell Keith-Magee
a7e2a10a85
gh-110771: Decompose run_forever() into parts ( #110773 )
...
Effectively introduce an unstable, private (really: protected) API for subclasses that want to override `run_forever()`.
2023-10-13 14:12:32 +00:00
Alex Waygood
0ed2329a16
Bump sphinx-lint to 0.7.0 ( #110830 )
2023-10-13 13:58:26 +00:00
paskozdilar
f81e36f700
gh-110703: Add asyncio.wait_for() change notes for 3.11 (GH-110818)
...
* Remove redundant versionchanged
* Add missing versionchanged
* Update Doc/library/asyncio-task.rst
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
---------
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
2023-10-13 15:15:28 +02:00
Serhiy Storchaka
548ce0923b
gh-110815: Improve tests for PyArg_ParseTupleAndKeywords() (GH-110817)
2023-10-13 16:05:01 +03:00
Petr Viktorin
2ab34f0e42
gh-110803: Reorganize docs for what PyType_Slot doesn't cover (GH-110813)
...
* gh-110803: Reorganize docs for what PyType_Slot doesn't cover
- Cover the offset fields first
- Mention the old alternative for MANAGED flags, which is needed
to support older Pythons
- De-emphasize the internal flags: use an inline list.
- Add a note to PyMemberDef saying what to do with it
* Remove an older draft...
2023-10-13 14:51:48 +02:00
Thomas Wouters
11bbe6c6e1
Merge branch 'main' of https://github.com/python/cpython
2023-10-13 13:40:12 +02:00
Thomas Wouters
4e011229a9
Post 3.13.0a1
2023-10-13 13:39:00 +02:00
Pablo Galindo Salgado
8316769d83
gh-110805: Fix test_peg_generator after the change in the parser for REPL tracebacks ( #110814 )
...
Fix test_peg_generator after the change in the parser for REPL tracebacks
2023-10-13 13:04:23 +02:00
Pablo Galindo Salgado
e1d8c65e1d
gh-110805: Allow the repl to show source code and complete tracebacks ( #110775 )
2023-10-13 09:25:37 +00:00
Lysandros Nikolaou
898f531996
gh-106212: Raise when using c-analyzer with clang on darwin ( #110757 )
2023-10-13 10:52:30 +02:00
Thomas Wouters
ad056f03ae
Python 3.13.0a1
2023-10-13 10:52:10 +02:00
T. Wouters
b7f9661bc1
Fix the pyspecific SOURCE_URI ( #110811 )
2023-10-13 08:43:01 +00:00
Lysandros Nikolaou
2a68f77026
gh-107450: Fix testMemoryErrorBigSource using the bigmemtest decorator (GH-110810)
2023-10-13 08:30:56 +00:00
Nikita Sobolev
989a253947
gh-110525: Delete `test_c_api` method from `set` object ( #110688 )
2023-10-13 10:06:25 +02:00
Lysandros Nikolaou
05439d3087
gh-107450: Fix parser column offset overflow test on Windows ( #110768 )
...
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2023-10-13 09:41:00 +02:00
Filipe Laíns
2f59d418cf
GH-110796: fix intermittent test failure in test_current_exceptions
2023-10-13 06:26:27 +00:00
Filipe Laíns
6478dea3c8
GH-110786: suppress BrokenPipeError on the sysconfig CLI ( #110791 )
2023-10-13 06:49:55 +01:00
Filipe Laíns
b883cad06b
GH-103480: fix sysconfig package not being installed ( #110792 )
2023-10-13 01:13:28 +00:00
Donghee Na
2566434e59
gh-109693: Update _gil_runtime_state.last_holder to use pyatomic.h ( #110605 )
2023-10-13 10:07:27 +09:00
Filipe Laíns
4a53a397c3
GH-103480: make sysconfig a package (GH-110785)
2023-10-12 23:41:34 +00:00
Jelle Zijlstra
d2a536b170
gh-110782: Fix crash when TypeVar is constructed with keyword args ( #110784 )
2023-10-12 16:00:12 -07:00
InSync
2c472a87c7
Remove unnecessary escape in Doc/library/enum.rst (GH-110780)
2023-10-12 15:04:36 -07:00
Alex Waygood
aa3f419acb
gh-109653: Improve the import time of `email.utils` ( #109824 )
2023-10-12 15:03:20 -07:00
Pablo Galindo Salgado
e7331365b4
gh-110721: Use the traceback module for PyErr_Display() and fallback to the C implementation ( #110702 )
2023-10-12 14:52:14 +00:00
Thomas Grainger
8c6c14b91b
gh-94597: Add asyncio.EventLoop ( #110723 )
...
This is needed to pave the way for deprecating and eventually killing the event loop policy system (which is over-engineered and rarely used).
2023-10-12 07:13:57 -07:00
Tian Gao
1e3460d9fa
gh-110752: Reset `ceval.eval_breaker` to 0 in `interpreter_clear` (GH-110753)
2023-10-12 15:10:21 +01:00
Nikita Sobolev
b6000d2874
gh-109409: Fix inheritance of frozen dataclass from non-frozen dataclass mixins (gh-109437)
...
Fix inheritance of frozen dataclass from non-frozen dataclass mixins
2023-10-12 09:05:23 -04:00
Irit Katriel
7dd3c2b800
gh-109094: remove redundant arg to _PyFrame_PushTrampolineUnchecked (GH-110759)
2023-10-12 11:02:42 +01:00
Mark Shannon
19b7ead5eb
GH-109214: Convert _SAVE_CURRENT_IP to _SET_IP in tier 2 trace creation. (GH-110755)
2023-10-12 10:34:32 +01:00
Lysandros Nikolaou
fb7843ee89
gh-107450: Raise OverflowError when parser column offset overflows ( #110754 )
2023-10-12 09:34:12 +00:00
Pablo Galindo Salgado
3d180347ae
gh-110696: Fix incorrect syntax error message for incorrect argument unpacking ( #110706 )
2023-10-12 09:02:02 +00:00
Erlend E. Aasland
ec5622d197
gh-71587: Establish global state in `_datetime` ( #110475 )
...
* Use explicit initialiser for m_base
* Add module state stub; establish global state on stack
* Put conversion factors in state struct
* Move PyDateTime_TimeZone_UTC to state
* Move PyDateTime_Epoch to state struct
* Fix ref leaks in and clean up initialisation
2023-10-12 10:28:10 +02:00
Hugo van Kemenade
ea530f2f9a
gh-106193: Rename and fix duplicated tests in `test_monitoring` (GH-109139)
2023-10-12 08:43:58 +01:00
Lysandros Nikolaou
17d65547df
gh-104169: Fix test_peg_generator after tokenizer refactoring ( #110727 )
...
* Fix test_peg_generator after tokenizer refactoring
* Remove references to tokenizer.c in comments etc.
2023-10-12 09:34:35 +02:00
Filipe Laíns
23645420dc
GH-110749: fix unistd.h import in file_tokenizer.c ( #110750 )
2023-10-12 07:52:13 +02:00
Nikita Sobolev
5257ade0bc
gh-110682: Ignore `__match_args__` from `__instancecheck__` in protocols ( #110683 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-10-11 19:20:20 -07:00
Victor Stinner
88ecb190f3
gh-85283: _stat extension now uses the limited C API ( #110711 )
...
gh-85283: _stat extension uses the limited C API
The _stat C extension is now built with the limited C API.
2023-10-12 00:06:20 +02:00
Victor Stinner
b4e8049766
gh-110673: test_pty raises on short write ( #110677 )
...
Add write_all() helper function to test_pty to raise an exception on
short write: if os.writes() does not write all bytes. It should not
happen for a PTY.
2023-10-11 21:30:15 +00:00
J. Nick Koston
3ac8e6955f
gh-110733: Micro-optimization in BaseEventLoop._run_once ( #110735 )
2023-10-11 20:59:27 +00:00
Ezio Melotti
41d8ec5a1b
gh-110631: Fix reST indentation in `Doc/reference` ( #110708 )
...
Fix wrong indentation in the Doc/reference dir.
2023-10-11 22:50:55 +02:00
Victor Stinner
6f4a49942b
gh-85283: If Py_LIMITED_API is defined, undefine Py_BUILD_CORE ( #110725 )
...
If the Py_LIMITED_API macro is defined, Py_BUILD_CORE,
Py_BUILD_CORE_BUILTIN and Py_BUILD_CORE_MODULE macros are now
undefined by Python.h.
Only undefine these 3 macros after including "exports.h" which uses
them to define PyAPI_FUNC(), PyAPI_DATA() and PyMODINIT_FUNC macros.
Remove hacks (undefine manually the 3 Py_BUILD_CORE macros) in
Modules/_testcapi/parts.h and Modules/_testclinic_limited.c.
2023-10-11 20:47:54 +00:00
Ezio Melotti
718391f475
gh-110631: Fix reST indentation ( #110724 )
...
* Fix wrong indentation in the other dirs.
* Fix more wrong indentation.
2023-10-11 22:43:03 +02:00
Ezio Melotti
bb7923f556
gh-110631: Fix reST indentation in `Doc/library` ( #110685 )
...
Fix wrong indentation in the Doc/library dir.
2023-10-11 22:24:12 +02:00
Tian Gao
c523ce0f43
gh-65052: Prevent pdb from crashing when trying to display objects ( #110578 )
2023-10-11 19:52:14 +02:00
Hugo van Kemenade
de956b263b
gh-109408: Revert pre-commit whitespace checks pending portable solution ( #110726 )
2023-10-11 16:12:28 +00:00
Victor Stinner
467abfe1d4
gh-110313: Revert "gh-90108: Disable LTO on _freeze_module and _teste… ( #110720 )
...
gh-110313: Revert "gh-90108: Disable LTO on _freeze_module and _testembed (#109581 )"
This reverts commit 3e3a7da590
.
2023-10-11 15:54:40 +00:00
Lysandros Nikolaou
01481f2dc1
gh-104169: Refactor tokenizer into lexer and wrappers ( #110684 )
...
* The lexer, which include the actual lexeme producing logic, goes into
the `lexer` directory.
* The wrappers, one wrapper per input mode (file, string, utf-8, and
readline), go into the `tokenizer` directory and include logic for
creating a lexer instance and managing the buffer for different modes.
---------
Co-authored-by: Pablo Galindo <pablogsal@gmail.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
2023-10-11 15:14:44 +00:00