Miss Islington (bot)
225bee75e3
gh-92886: make test_ast pass with -O (assertions off) (GH-98058)
...
-O does not strip docstrings.
Automerge-Triggered-By: GH:iritkatriel
(cherry picked from commit 27ce45d8e1 )
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
2022-10-07 22:02:45 -07:00
Miss Islington (bot)
8d40fbe48b
gh-92886: make test_coroutines pass with -O (assertions off) (GH-98060)
...
Automerge-Triggered-By: GH:iritkatriel
(cherry picked from commit 45f21472da )
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
2022-10-07 21:07:09 -07:00
Jelle Zijlstra
2090eeb46d
[3.10] gh-96288: Add a sentence to os.mkdir's docstring. (GH-96271). ( #98066 )
...
(cherry picked from commit 1523c9e9d4 )
Co-authored-by: Hagai Helman Tov <hagai.helman@gmail.com>
2022-10-07 20:59:48 -07:00
Jelle Zijlstra
f50e3a7fea
[3.10] gh-96073: Fix installed tests by adding to Makefile.pre.in ( #98072 )
...
This was broken in #98045 but already fixed on main.
2022-10-07 20:59:10 -07:00
Miss Islington (bot)
1818235f40
gh-57179: Add note on symlinks for os.walk (GH-94799)
...
(cherry picked from commit 0f498f1a95 )
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
2022-10-07 20:15:08 -07:00
Miss Islington (bot)
1a31799d16
gh-61105: Add default param, note on using cookiejar subclass (GH-95427)
...
(cherry picked from commit 5eaf4d6101 )
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
2022-10-07 19:00:35 -07:00
Miss Islington (bot)
02394400f3
[3.10] gh-91708: Revert params note in urllib.parse.urlparse table (GH-96699) ( #98053 )
...
Revert params note in urllib.parse.urlparse table
(cherry picked from commit eed80458e8 )
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
2022-10-07 16:02:43 -07:00
Miss Islington (bot)
6f40e2fb93
[3.10] gh-94808: Cover %p in PyUnicode_FromFormat (GH-96677) ( #98032 )
...
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
(cherry picked from commit 72c166add8 )
2022-10-07 15:41:06 -07:00
Miss Islington (bot)
8c81d330b9
gh-96073: fix backticks in NEWS entry (GH-98056)
...
Automerge-Triggered-By: GH:JelleZijlstra
(cherry picked from commit 0f111f53c1 )
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2022-10-07 15:38:35 -07:00
Miss Islington (bot)
90f2c7992f
Add a warning message about PyOS_snprintf (GH-95993)
...
(cherry picked from commit c7b2204996 )
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
2022-10-07 13:36:21 -07:00
Miss Islington (bot)
a3a3701fec
GH-96073: Fix wild replacement in inspect.formatannotation (GH-96074)
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
(cherry picked from commit d5fea01d9d )
Co-authored-by: Anh71me <iyumelive@gmail.com>
2022-10-07 12:56:29 -07:00
Miss Islington (bot)
e73cb54a06
gh-65496: Correct wording on csv's skipinitialspace argument (GH-96170)
...
(cherry picked from commit 676d8ef380 )
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
2022-10-07 12:30:39 -07:00
Miss Islington (bot)
7565944994
[3.10] gh-96959: Update HTTP links which are redirected to HTTPS (GH-98039) ( #98050 )
...
(cherry picked from commit c81c64ca58 )
Co-authored-by: 180909 <734461790@qq.com>
2022-10-07 12:03:36 -07:00
Miss Islington (bot)
5054ae23ce
gh-64921: Clarify wording for open()'s newline arg (GH-96171)
...
(cherry picked from commit 4a74e6ab38 )
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
2022-10-07 11:21:44 -07:00
Miss Islington (bot)
da986c68c9
Add note on capture_output arg to subprocess.run() docstring (GH-98012)
...
add note on capture_output arg to the docstring
(cherry picked from commit 80b3e32d62 )
Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
2022-10-07 10:54:54 -07:00
Christopher Chianelli
5e87cc2ab5
[3.10] gh-71316: Update dis documentation to include changes to jump arguments (GH-95798). (GH-98029)
...
(cherry picked from commit 6592a62ec2 )
Co-authored-by: Christopher Chianelli <cchianel@redhat.com>
2022-10-07 15:35:41 +01:00
Miss Islington (bot)
11945f2cf6
fixes gh-96078: os.sched_yield release the GIL while calling sched_yield(2). (gh-97965)
...
(cherry picked from commit b9d2e81716 )
Co-authored-by: Dong-hee Na <donghee.na@python.org>
2022-10-06 21:50:44 -07:00
Miss Islington (bot)
e0e303abe4
[3.10] gh-97943: PyFunction_GetAnnotations should return a borrowed reference. (GH-97949) (GH-97989)
...
gh-97943: PyFunction_GetAnnotations should return a borrowed reference. (GH-97949)
(cherry picked from commit 6bfb0be804 )
Co-authored-by: larryhastings <larry@hastings.org>
2022-10-06 17:59:09 -07:00
Miss Islington (bot)
bb21bc335b
[3.10] Remove extra spaces in custom openSSL documentation. (GH-93568) ( #98008 )
...
Remove extra spaces in custom openSSL documentation. (GH-93568)
(cherry picked from commit 4875433682 )
Co-authored-by: Xiao Chen <chenxiao_7@163.com>
Co-authored-by: Xiao Chen <chenxiao_7@163.com>
2022-10-06 17:56:51 -07:00
Miss Islington (bot)
bc03bf42e7
gh-97850: Remove the open issues section from the import reference (GH-97935)
...
Remove the open issues section from the import reference
Tracking in https://github.com/python/cpython/issues/97850 instead.
(cherry picked from commit f8edc6ff53 )
Co-authored-by: Brett Cannon <brett@python.org>
2022-10-06 14:07:34 -07:00
Miss Islington (bot)
b7487dff30
gh-86482: Document assignment expression need for ()s (GH-23291)
...
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
(cherry picked from commit 2b5f1360ea )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2022-10-06 12:33:23 -07:00
Miss Islington (bot)
3d89ac2f4c
[3.10] gh-97897: Prevent os.mkfifo and os.mknod segfaults with macOS 13 SDK (GH-97944) ( #97967 )
...
The macOS 13 SDK includes support for the `mkfifoat` and `mknodat` system calls.
Using the `dir_fd` option with either `os.mkfifo` or `os.mknod` could result in a
segfault if cpython is built with the macOS 13 SDK but run on an earlier
version of macOS. Prevent this by adding runtime support for detection of
these system calls ("weaklinking") as is done for other newer syscalls on
macOS.
(cherry picked from commit 6d0a0191a4 )
Co-authored-by: Ned Deily <nad@python.org>
2022-10-06 12:14:16 -07:00
Łukasz Langa
537c93ea3b
[3.10] gh-93738: Disallow pre-v3 syntax in the C domain (GH-97962) ( #97977 )
...
Also, disable using invalid sphinx-lint 0.6.2.
(cherry picked from commit f612565bd3 )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2022-10-06 11:56:52 -07:00
Miss Islington (bot)
e2591e4f5e
[3.10] gh-95691: Doc BufferedWriter and BufferedReader (GH-95703) ( #97948 )
...
gh-95691: Doc BufferedWriter and BufferedReader (GH-95703)
(cherry picked from commit 0d68879104 )
Co-authored-by: 180909 <734461790@qq.com>
Co-authored-by: 180909 <734461790@qq.com>
2022-10-05 17:22:42 -07:00
Miss Islington (bot)
c80c282d11
GH-88968: Add notes about socket ownership transfers (GH-97936)
...
(cherry picked from commit 74ea204634 )
Co-authored-by: Guido van Rossum <guido@python.org>
2022-10-05 16:54:46 -07:00
Miss Islington (bot)
6f23472345
[3.10] Fix type annotation of pstats.FunctionProfile.ncalls (GH-96741) ( #96836 )
...
This change aligns the type annotation of `pstats.FunctionProfile.ncalls` with its runtime type.
(cherry picked from commit 8e9a37dde4 )
Co-authored-by: Ruan Comelli <ruancomelli@gmail.com>
2022-10-05 14:57:26 -07:00
Miss Islington (bot)
9f1c9b1a7a
[3.10] gh-97654: Add auto exception chaining example to tutorial (GH-97703) ( #97884 )
...
Add auto exception chaining example to tutorial
(cherry picked from commit 395b66a0ae )
Co-authored-by: Shahriar Heidrich <smheidrich@weltenfunktion.de>
2022-10-05 14:51:10 -07:00
Łukasz Langa
3b0f2a7ff0
[3.10] gh-93738: Documentation C syntax (:c:type:<C type> -> :c:expr:<C type>) (GH-97768) ( #97925 )
...
:c:type:`<C type>` -> :c:expr:`<C type>`
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit 0031e62973 )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2022-10-05 14:10:55 -07:00
Miss Islington (bot)
ac2427eeff
gh-91539: improve performance of get_proxies_environment (GH-91566)
...
* improve performance of get_proxies_environment when there are many environment variables
* 📜 🤖 Added by blurb_it.
* fix case of short env name
* fix formatting
* fix whitespace
* whitespace
* Update Lib/urllib/request.py
Co-authored-by: Carl Meyer <carl@oddbird.net>
* Update Lib/urllib/request.py
Co-authored-by: Carl Meyer <carl@oddbird.net>
* Update Lib/urllib/request.py
Co-authored-by: Carl Meyer <carl@oddbird.net>
* Update Lib/urllib/request.py
Co-authored-by: Carl Meyer <carl@oddbird.net>
* whitespace
* Update Misc/NEWS.d/next/Library/2022-04-15-11-29-38.gh-issue-91539.7WgVuA.rst
Co-authored-by: Carl Meyer <carl@oddbird.net>
* Update Lib/urllib/request.py
Co-authored-by: Carl Meyer <carl@oddbird.net>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Carl Meyer <carl@oddbird.net>
(cherry picked from commit aeb28f5130 )
Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
2022-10-05 11:39:24 -07:00
Miss Islington (bot)
b39182e4b0
[3.10] gh-93738: Documentation C syntax (Function glob patterns -> literal markup) (GH-97774) ( #97911 )
...
(cherry picked from commit 0e72606dd4 )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2022-10-05 11:00:50 -07:00
Miss Islington (bot)
de0a656d5b
[3.10] gh-93738: Documentation C syntax (:c:type:PyTypeObject* -> :c:expr:PyTypeObject*) (GH-97778) ( #97890 )
...
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
(cherry picked from commit c70c8b6976 )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2022-10-05 08:21:18 -07:00
Łukasz Langa
9aed6bdb20
[3.10] gh-93738: Documentation C syntax (Use c:struct) (GH-97772) ( #97893 )
...
Use `c:struct`
(cherry picked from commit a0f5599aac )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2022-10-05 08:20:46 -07:00
Łukasz Langa
d99ea4c7a2
[3.10] gh-93738: Documentation C syntax (:c:type: to :c:expr:, misc. cases) (GH-97775) ( #97891 )
...
(cherry picked from commit 6b3d4db02e )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2022-10-05 08:19:38 -07:00
Miss Islington (bot)
4245764fae
[3.10] gh-93738: Documentation C syntax (:c:type:PyObject -> :c:expr:PyObject) (GH-97776) ( #97888 )
...
:c:type:`PyObject` -> :c:expr:`PyObject`
(cherry picked from commit 0bf6a617ed )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2022-10-05 08:17:46 -07:00
Miss Islington (bot)
d108eeb678
gh-95196: Disable incorrect pickling of the C implemented classmethod descriptors (GH-96383)
...
(cherry picked from commit 77f0249308 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2022-10-05 04:53:38 -07:00
Miss Islington (bot)
3c09debaa7
gh-97661: Improve accuracy of sqlite3.Cursor.fetchone docs (GH-97662)
...
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
(cherry picked from commit 4b83cd0b22 )
Co-authored-by: Jia Junjie <62194633+jiajunjie@users.noreply.github.com>
2022-10-05 01:56:47 -07:00
Miss Islington (bot)
ece5f7e046
gh-97825: fix AttributeError when calling subprocess.check_output(input=None) with encoding or errors args (GH-97826)
...
* fix AttributeError, add unit test
(cherry picked from commit db64fb9bbe )
Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
2022-10-04 20:35:53 -07:00
Miss Islington (bot)
24908f1f20
Add re.VERBOSE flag documentation example (GH-97678)
...
The current re.VERBOSE documentation example leaves space for ambiguous
interpretation. One may read that spaces within the `(?:` token are
spaces inside the non-capturing group (such as `(?: )`). This patch
removes the ambiguity by including examples after the statement.
(cherry picked from commit 0ceafa7fa4 )
Co-authored-by: Athos Ribeiro <athoscribeiro@gmail.com>
2022-10-04 18:37:01 -07:00
Miss Islington (bot)
09e5029aca
[3.10] gh-93738: Documentation C syntax (:c:type:PyInterpreterState * -> :c:expr:PyInterpreterState *) (GH-97777) ( #97877 )
...
:c:type:`PyInterpreterState *` -> :c:expr:`PyInterpreterState *`
(cherry picked from commit 4ebb025031 )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2022-10-04 17:56:46 -07:00
Miss Islington (bot)
95289bf983
[3.10] gh-93738: Documentation C syntax (:c:data:view->obj -> :c:expr:view->obj) (GH-97773) ( #97868 )
...
:c:data:`view->obj` -> :c:expr:`view->obj`
(cherry picked from commit fa59bda8d3 )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2022-10-04 17:55:31 -07:00
Miss Islington (bot)
994eaa3a6f
[3.10] gh-93738: Documentation C syntax (:c:type:TYPE -> :c:expr:TYPE) (GH-97770) ( #97870 )
...
:c:type:`TYPE` -> :c:expr:`TYPE`
(cherry picked from commit 8b211b4cdb )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2022-10-04 17:47:56 -07:00
Miss Islington (bot)
5eedf1d863
[3.10] gh-93738: Documentation C syntax (:c:type:FILE -> :c:expr:FILE) (GH-97769) ( #97872 )
...
:c:type:`FILE` -> :c:expr:`FILE`
(cherry picked from commit 192d401ba5 )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2022-10-04 17:47:20 -07:00
Miss Islington (bot)
9c755d7d6b
[3.10] gh-93738: Documentation C syntax (:c:type:PyTupleObject* -> :c:expr:PyTupleObject*) (GH-97780) ( #97864 )
...
:c:type:`PyTupleObject*` -> :c:expr:`PyTupleObject*`
(cherry picked from commit 510baa429a )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2022-10-04 16:46:30 -07:00
Miss Islington (bot)
5aa108b9e0
[3.10] gh-93738: Documentation C syntax (:c:type:PyBytesObject* -> :c:expr:PyBytesObject*) (GH-97782) ( #97862 )
...
:c:type:`PyBytesObject*` -> :c:expr:`PyBytesObject*`
(cherry picked from commit 9ebc50866b )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2022-10-04 16:41:05 -07:00
Miss Islington (bot)
20ddf1c17a
[3.10] gh-93738: Documentation C syntax (:c:type:PyUnicodeObject* -> :c:expr:PyUnicodeObject*) (GH-97783) ( #97860 )
...
:c:type:`PyUnicodeObject*` -> :c:expr:`PyUnicodeObject*`
(cherry picked from commit 898834e27b )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2022-10-04 16:39:57 -07:00
Miss Islington (bot)
f879297b86
[3.10] gh-93738: Documentation C syntax (:c:type:Py_UNICODE* -> :c:expr:Py_UNICODE*) (GH-97784) ( #97858 )
...
:c:type:`Py_UNICODE*` -> :c:expr:`Py_UNICODE*`
(cherry picked from commit a081cae2a2 )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2022-10-04 16:38:39 -07:00
Miss Islington (bot)
a980dafd2c
[3.10] gh-88355: Fix backslashes in AF_PIPE (GH-96543) ( #97855 )
...
gh-88355: Fix backslashes in AF_PIPE (GH-96543)
Fix backslashes in AF_PIPE (GH-88355)
The correct syntax for AF_PIPE addresses is `\\.\pipe\blahblah`, not `\.\pipe{blahblah}`, but the syntax markup messed up the backslashes.
(cherry picked from commit ff28d8926d )
Co-authored-by: cousteau <cousteaulecommandant@users.noreply.github.com>
Co-authored-by: cousteau <cousteaulecommandant@users.noreply.github.com>
2022-10-04 15:55:39 -07:00
Miss Islington (bot)
f9b49b6bfa
[3.10] gh-96448: fix documentation for _thread.lock.acquire (GH-96449) ( #97852 )
...
gh-96448: fix documentation for _thread.lock.acquire (GH-96449)
* fix documentation for _thread.lock.acquire
* update formatting of _thread.lock.acquire() doc
(cherry picked from commit 7acb93f0d4 )
Co-authored-by: Daniel Giger <danielg3432@gmail.com>
Co-authored-by: Daniel Giger <danielg3432@gmail.com>
2022-10-04 15:21:38 -07:00
Senthil Kumaran
989bdbcfae
[3.10] gh-97731: fix distclean target to clean docs GH-97732 ( #97846 )
...
Backport gh-97731: fix distclean target to clean docs #97732 to 3.10
2022-10-04 14:56:55 -07:00
Miss Islington (bot)
19ed29ed3c
[3.10] gh-97709: Included newline separator in Mandelbrot set (GH-97737) ( #97823 )
...
Included newline separator in Mandelbrot set
Now the Mandelbrot set one-liner example on separates the lines with a '\n' character.
(cherry picked from commit 49802605f8 )
Co-authored-by: matheusja <matheusjahnke@hotmail.com>
2022-10-04 12:01:07 -07:00