Guido van Rossum
7840ff3cdb
gh-98831: Modernize the LOAD_ATTR family ( #101488 )
2023-02-01 10:56:52 -08:00
Raj
95fb0e0258
gh-101498 : Fix asyncio.Timeout example in docs ( #101499 )
...
Doc/library/asyncio-task.rst#timeout
2023-02-01 10:08:31 -08:00
Irit Katriel
62251c3da0
gh-101454: fix documentation for END_ASYNC_FOR ( #101455 )
2023-02-01 12:49:59 +00:00
Erlend E. Aasland
2b3e02a705
gh-101277: Isolate itertools, add group and _grouper types to module state ( #101302 )
...
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
2023-02-01 12:41:30 +01:00
beavailable
cc407b9de6
gh-101317: Add `ssl_shutdown_timeout` parameter for `asyncio.StreamWriter.start_tls` ( #101335 )
...
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
2023-02-01 16:33:59 +05:30
John Belmonte
75227fba1d
datetime.rst: fix combine() signature ( #101490 )
...
The default `tzinfo` param of the `combine()` signature pseudocode was erroneously `self.tzinfo`.
`self` has no meaning in the context of a classmethod, and the datetime class itself has no `tzinfo` attribute. The correct default pseudocode is `time.tzinfo`, reflecting that the default is the `tzinfo` attribute of the `time` parameter.
2023-02-01 14:01:28 +04:00
Brandt Bucher
76efcb4093
GH-100288: Skip extra work when failing to specialize LOAD_ATTR (GH-101354)
2023-01-31 13:28:32 -08:00
Erlend E. Aasland
2753cf2ed6
gh-101409: Improve generated clinic code for self type checks ( #101411 )
2023-01-31 21:42:03 +01:00
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