Irit Katriel
0062f538d9
gh-98831: rewrite BEFORE_ASYNC_WITH and END_ASYNC_FOR in the instruction definition DSL ( #101458 )
2023-01-31 18:47:50 +00:00
Erlend E. Aasland
f80db6cef0
gh-101469: Optimise get_io_state() by using _PyModule_GetState() (GH-101470)
...
Automerge-Triggered-By: GH:erlend-aasland
2023-01-31 10:19:11 -08:00
Peter Jiping Xie
20c11f2e60
gh-101440: fix json snippet error in logging-cookbook.rst ( #101439 )
2023-01-31 17:30:38 +02:00
Raj
df0068ce48
gh-99276 - Updated Doc/faq/general.rst ( #101396 )
...
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-01-31 17:16:17 +02:00
Christophe Nanteuil
1a62ae84c6
Add JOBS parameter to docs Makefile ( #101395 )
2023-01-31 15:29:29 +02:00
Irit Katriel
29a858b85f
gh-98831: rewrite GET_LEN, GET_ITER, BEFORE_WITH and a few simple opcodes in the instruction definition DSL ( #101443 )
2023-01-31 10:23:15 +00:00
Shantanu
909a674693
gh-77607: Improve accuracy of os.path.join docs ( #101406 )
...
This is a follow-up to #100811 .
One of the changes in that PR isn't accurate in that
`os.path.join('', '')` will not end in a separator.
This reverts that change to the previous wording that used "only", but
explicitly calls out the case where the last part ends in a separator,
which is what caused confusin in #77607 and motivated the change
in #100811 .
2023-01-30 21:39:30 -08:00
Ben
ef09bf63d2
Fixes typo in asyncio.TaskGroup context manager code example ( #101449 )
2023-01-30 21:36:40 -08:00
Guido van Rossum
04ab767d28
gh-98831: Clean up and add cache size static_assert to macro ( #101442 )
2023-01-30 17:27:51 -08:00
Irit Katriel
af7b2db384
gh-99955: use SUCCESS/ERROR return values in optimizer and assembler. Use RETURN_IF_ERROR where appropriate. Fix a couple of bugs. ( #101412 )
2023-01-31 00:06:19 +00:00
Dong-hee Na
e867c1b753
gh-101400: Fix incorrect lineno in exception message on continue/break which are not in a loop ( #101413 )
2023-01-30 23:33:54 +00:00
Eclips4
28db978d7f
gh-101229: Add tests for aliases of imported names ( #101230 )
2023-01-30 11:49:06 -08:00
Guido van Rossum
7a3752338a
GH-101369: Allow macros as family members ( #101399 )
...
Also check for instructions straddling families (this includes macro parts).
2023-01-30 11:23:57 -08:00
Eric Snow
e11fc032a7
gh-59956: Clarify Runtime State Status Expectations (gh-101308)
...
A PyThreadState can be in one of many states in its lifecycle, represented by some status value. Those statuses haven't been particularly clear, so we're addressing that here. Specifically:
* made the distinct lifecycle statuses clear on PyThreadState
* identified expectations of how various lifecycle-related functions relate to status
* noted the various places where those expectations don't match the actual behavior
At some point we'll need to address the mismatches.
(This change also includes some cleanup.)
https://github.com/python/cpython/issues/59956
2023-01-30 12:07:48 -07:00
Owain Davies
ea232716d3
gh-101422: (docs) TarFile default errorlevel argument is 1, not 0 (GH-101424)
2023-01-30 09:56:33 -08:00
Mark Shannon
c1b1f51cd1
GH-101291: Refactor the `PyLongObject` struct into object header and PyLongValue struct. (GH-101292)
2023-01-30 10:03:04 +00:00
Guido van Rossum
f5a3d91b6c
gh-98831: Support conditional effects; use for LOAD_ATTR ( #101333 )
2023-01-29 17:28:39 -08:00
Irit Katriel
c4170c36b0
gh-39615: fix warning on return type mismatch ( #101407 )
2023-01-29 16:41:27 -08:00
Sergey B Kirpichev
0ef92d9793
gh-89381: Fix invalid signatures of math/cmath.log ( #101404 )
2023-01-29 11:50:10 -08:00
socal-nerdtastic
666c0840dc
Fix trivial typo in shebang example (GH-101385)
...
The example was showing the current version, but should be pinned to 3.7 to match the example command.
2023-01-28 15:18:04 +02:00
Raymond Hettinger
84483aacc0
GH-100485: Add extended accuracy test. Switch to faster fma() based variant. GH-101383)
2023-01-28 06:29:21 -06:00
Peter Jiping Xie
db757f0e44
gh-101386: fix typos found by codespell ( #101387 )
2023-01-28 11:57:40 +02:00
Gregory P. Smith
052f53d65d
gh-39615: Add warnings.warn() skip_file_prefixes support ( #100840 )
...
`warnings.warn()` gains the ability to skip stack frames based on code
filename prefix rather than only a numeric `stacklevel=` via a new
`skip_file_prefixes=` keyword argument.
2023-01-27 18:35:14 -08:00
Dong-hee Na
8cef9c0f92
gh-101341: Remove unncessary enum._power_of_two function (gh-101342)
2023-01-28 11:08:08 +09:00
Vinay Sajip
b5c4d6064c
[doc] Add a section on logging handler configuration order. (GH-101380)
2023-01-27 19:01:30 +00:00
Vinay Sajip
d083df39fa
[doc] Add some notices to logging configuration documentation. (GH-101373)
2023-01-27 14:50:09 +00:00
Steve Dower
737d367b1f
gh-77532: Minor tweaks to allow compiling with PlatformToolset=ClangCL on Windows (GH-101352)
...
To use this, ensure that clang support was selected in Visual Studio Installer, then set the PlatformToolset environment variable to "ClangCL" and build as normal from the command line.
It remains unsupported, but at least is possible now for experimentation.
2023-01-27 14:45:08 +00:00
Raymond Hettinger
7956e0c300
Speed-up and improve accuracy with Rump Algorithms (3.1) and (5.10) (GH-101366)
2023-01-27 01:56:19 -06:00
Barney Gale
e5b08ddddf
gh-101000: Add os.path.splitroot() ( #101002 )
...
Co-authored-by: Eryk Sun <eryksun@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-01-27 00:28:27 +00:00
Виталий Дмитриев
37f15a5efa
Fix typos in pystate.c file ( #101348 )
2023-01-26 15:04:11 -08:00
Steve Dower
8d18d1ffd5
gh-99834: Update bundled copy of Tcl/Tk to 8.6.13.0 on Windows (GH-101307)
2023-01-26 20:47:24 +00:00
Guido van Rossum
9f2c479eaf
gh-98831: Fix two bugs in case generator ( #101349 )
...
Fix two bugs in case generator
- UndefinedLocalError when generating metadata for an 'op'
- Accidental newline inserted in test_generator.py
2023-01-26 09:15:05 -08:00
Oleg Iarygin
409f5337a3
gh-60580: Fix a wrong type of `ctypes.wintypes.BYTE` ( #97579 )
...
Created from a patch file attached to an issue, by Anatoly Techtonik.
2023-01-26 18:16:27 +04:00
Dong-hee Na
f2ac9510a5
gh-85100: Migrate BPO link to the GitHub link for malloc warnings (gh-101343)
2023-01-26 21:58:35 +09:00
Yukihiro Nakadaira
dfad678d70
gh-99952: [ctypes] fix refcount issues in from_param() result. ( #100169 )
...
Fixes a reference counting issue with `ctypes.Structure` when a `from_param()` method call is used and the structure size is larger than a C pointer `sizeof(void*)`.
This problem existed for a very long time, but became more apparent in 3.8+ by change likely due to garbage collection cleanup timing changes.
2023-01-26 00:28:34 -08:00
John Belmonte
f5ad63f79a
datetime.rst: improve combine() docs ( #101338 )
...
The explanation on handling of datetime as the date arg was confusingly mixed with an unrelated
item, and lacked proper arg name formatting.
2023-01-26 11:25:43 +04:00
JosephSBoyle
a2262789ab
gh-100522 Add a test for 'futures.as_completed' timing out with a non-zero timeout value ( #100523 )
2023-01-25 23:01:11 -08:00
Oleg Iarygin
73245d084e
gh-94518: Rename `group*` to `extra_group*` to avoid confusion ( #101054 )
...
* Rename `group*` to `extra_group*` to avoid confusion
* Rename `num_groups` into `extra_group_size`
* Rename `groups_list` to `extra_groups_packed`
2023-01-25 22:50:33 -08:00
Irit Katriel
b400219df5
gh-98831: rewrite RAISE_VARARGS in the instruction definition DSL ( #101306 )
2023-01-25 22:29:56 +00:00
Brandt Bucher
6162a0e305
Fix incorrect versions in magic number comments (GH-101301)
2023-01-25 13:30:33 -08:00
Irit Katriel
19f90d6b97
gh-98831: add variable stack effect support to cases generator ( #101309 )
2023-01-25 20:41:03 +00:00
Shantanu
a178ba82bf
gh-101326: Fix regression when passing None to FutureIter.throw ( #101327 )
2023-01-25 12:01:01 -08:00
achhina
952a1d9cc9
GH-88597: Rename uuid's new CLI args to be in line with uuidgen. ( #101248 )
...
this way they match an existing uuidgen command line tool.
2023-01-25 09:39:42 -08:00
Guido van Rossum
1417712812
Add advice how to freeze fewer modules ( #101298 )
...
(And fix a bug that only occurs when you follow the advice.)
2023-01-25 09:28:14 -08:00
Guido van Rossum
395871e511
GH-98831: Elaborate some cases_generator tests ( #101299 )
...
* Make macro test more elaborate
* Add test for 'register inst()'
2023-01-25 08:55:46 -08:00
Guido van Rossum
498598e8c2
Fix some comments in ceval.c and fix lltrace output ( #101297 )
...
The comment at the top was rather outdated. :-)
Also added a note about the dangers of dump_stack().
2023-01-24 14:58:18 -08:00
Irit Katriel
1a9d8c750b
gh-98831: rewrite pattern matching opcodes in the instruction definition DSL ( #101287 )
2023-01-24 22:39:13 +00:00
Mark Shannon
f02fa64bf2
GH-100762: Don't call `gen.throw()` in `gen.close()`, unless necessary. (GH-101013)
...
* Store exception stack depth in YIELD_VALUE's oparg and use it avoid expensive gen.throw() in gen.close() where possible.
2023-01-24 17:25:37 +00:00
Martin Boisvert
daec3a463c
gh-101135: Add backwards compatibility to Windows launcher for older 32-bit versions (GH-101138)
...
Python 2.x and up to 3.4 did not contain the "-32" in their registry name, so the 32 and 64-bit installs were treated equal. Since 3.5/PEP 514 this is no longer true, but we still want to detect the EOL versions correctly in case people are still using them.
Additionally, the code to replace a node with one with a lower sort key was buggy (wrong node chosen, replace never happened since parent was always NULL, replaced node never freed, etc)
2023-01-24 16:35:16 +00:00
Erlend E. Aasland
fee7a995a1
gh-92123: Adapt _elementtree to multi-phase init (PEP 489) ( #101285 )
2023-01-24 17:00:24 +01:00