Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b0478d7

Browse files
committed
Fix Sphynx syntax in the memory.rst document
1 parent 22dbd9e commit b0478d7

4 files changed

Lines changed: 46 additions & 12 deletions

File tree

Doc/c-api/memory.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ Allocator Domains
9696
=================
9797

9898
All allocating functions belong to one of three different "domains" (see also
99-
:c:type`PyMemAllocatorDomain`). These domains represent different allocation
99+
:c:type:`PyMemAllocatorDomain`). These domains represent different allocation
100100
strategies and are optimized for different purposes. The specific details on
101101
how every domain allocates memory or what internal functions each domain calls
102102
is considered an implementation detail, but for debugging purposes a simplified

Include/patchlevel.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020
#define PY_MINOR_VERSION 10
2121
#define PY_MICRO_VERSION 0
2222
#define PY_RELEASE_LEVEL PY_RELEASE_LEVEL_ALPHA
23-
#define PY_RELEASE_SERIAL 4
23+
#define PY_RELEASE_SERIAL 5
2424

2525
/* Version as a string */
26-
#define PY_VERSION "3.10.0a4+"
26+
#define PY_VERSION "3.10.0a5"
2727
/*--end constants--*/
2828

2929
/* Version as a single 4-byte hex number, e.g. 0x010502B2 == 1.5.2b2.

Lib/pydoc_data/topics.py

Lines changed: 42 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
# Autogenerated by Sphinx on Mon Jan 4 17:25:50 2021
2+
# Autogenerated by Sphinx on Tue Feb 2 20:44:10 2021
33
topics = {'assert': 'The "assert" statement\n'
44
'**********************\n'
55
'\n'
@@ -2561,8 +2561,10 @@
25612561
'usage\n'
25622562
'patterns to be encapsulated for convenient reuse.\n'
25632563
'\n'
2564-
' with_stmt ::= "with" with_item ("," with_item)* ":" suite\n'
2565-
' with_item ::= expression ["as" target]\n'
2564+
' with_stmt ::= "with" ( "(" with_stmt_contents ","? '
2565+
'")" | with_stmt_contents ) ":" suite\n'
2566+
' with_stmt_contents ::= with_item ("," with_item)*\n'
2567+
' with_item ::= expression ["as" target]\n'
25662568
'\n'
25672569
'The execution of the "with" statement with one “item” proceeds '
25682570
'as\n'
@@ -2654,9 +2656,23 @@
26542656
' with B() as b:\n'
26552657
' SUITE\n'
26562658
'\n'
2659+
'You can also write multi-item context managers in multiple lines '
2660+
'if\n'
2661+
'the items are surrounded by parentheses. For example:\n'
2662+
'\n'
2663+
' with (\n'
2664+
' A() as a,\n'
2665+
' B() as b,\n'
2666+
' ):\n'
2667+
' SUITE\n'
2668+
'\n'
26572669
'Changed in version 3.1: Support for multiple context '
26582670
'expressions.\n'
26592671
'\n'
2672+
'Changed in version 3.10: Support for using grouping parentheses '
2673+
'to\n'
2674+
'break the statement in multiple lines.\n'
2675+
'\n'
26602676
'See also:\n'
26612677
'\n'
26622678
' **PEP 343** - The “with” statement\n'
@@ -5268,9 +5284,9 @@
52685284
' | | in the form ‘+000000120’. This alignment '
52695285
'option is only |\n'
52705286
' | | valid for numeric types. It becomes the '
5271-
'default when ‘0’ |\n'
5272-
' | | immediately precedes the field '
5273-
'width. |\n'
5287+
'default for |\n'
5288+
' | | numbers when ‘0’ immediately precedes the '
5289+
'field width. |\n'
52745290
' '
52755291
'+-----------+------------------------------------------------------------+\n'
52765292
' | "\'^\'" | Forces the field to be centered within '
@@ -5378,6 +5394,10 @@
53785394
'with an\n'
53795395
'*alignment* type of "\'=\'".\n'
53805396
'\n'
5397+
'Changed in version 3.10: Preceding the *width* field by '
5398+
'"\'0\'" no\n'
5399+
'longer affects the default alignment for strings.\n'
5400+
'\n'
53815401
'The *precision* is a decimal number indicating how many '
53825402
'digits should\n'
53835403
'be displayed after the decimal point for a floating point '
@@ -13989,8 +14009,10 @@
1398914009
'usage\n'
1399014010
'patterns to be encapsulated for convenient reuse.\n'
1399114011
'\n'
13992-
' with_stmt ::= "with" with_item ("," with_item)* ":" suite\n'
13993-
' with_item ::= expression ["as" target]\n'
14012+
' with_stmt ::= "with" ( "(" with_stmt_contents ","? ")" | '
14013+
'with_stmt_contents ) ":" suite\n'
14014+
' with_stmt_contents ::= with_item ("," with_item)*\n'
14015+
' with_item ::= expression ["as" target]\n'
1399414016
'\n'
1399514017
'The execution of the "with" statement with one “item” proceeds as\n'
1399614018
'follows:\n'
@@ -14076,8 +14098,20 @@
1407614098
' with B() as b:\n'
1407714099
' SUITE\n'
1407814100
'\n'
14101+
'You can also write multi-item context managers in multiple lines if\n'
14102+
'the items are surrounded by parentheses. For example:\n'
14103+
'\n'
14104+
' with (\n'
14105+
' A() as a,\n'
14106+
' B() as b,\n'
14107+
' ):\n'
14108+
' SUITE\n'
14109+
'\n'
1407914110
'Changed in version 3.1: Support for multiple context expressions.\n'
1408014111
'\n'
14112+
'Changed in version 3.10: Support for using grouping parentheses to\n'
14113+
'break the statement in multiple lines.\n'
14114+
'\n'
1408114115
'See also:\n'
1408214116
'\n'
1408314117
' **PEP 343** - The “with” statement\n'

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
This is Python version 3.10.0 alpha 4
1+
This is Python version 3.10.0 alpha 5
22
=====================================
33

44
.. image:: https://travis-ci.com/python/cpython.svg?branch=master

0 commit comments

Comments
 (0)