mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
Fix Sphynx syntax in the memory.rst document
This commit is contained in:
parent
22dbd9e8c0
commit
b0478d738a
4 changed files with 46 additions and 12 deletions
|
@ -96,7 +96,7 @@ Allocator Domains
|
||||||
=================
|
=================
|
||||||
|
|
||||||
All allocating functions belong to one of three different "domains" (see also
|
All allocating functions belong to one of three different "domains" (see also
|
||||||
:c:type`PyMemAllocatorDomain`). These domains represent different allocation
|
:c:type:`PyMemAllocatorDomain`). These domains represent different allocation
|
||||||
strategies and are optimized for different purposes. The specific details on
|
strategies and are optimized for different purposes. The specific details on
|
||||||
how every domain allocates memory or what internal functions each domain calls
|
how every domain allocates memory or what internal functions each domain calls
|
||||||
is considered an implementation detail, but for debugging purposes a simplified
|
is considered an implementation detail, but for debugging purposes a simplified
|
||||||
|
|
|
@ -20,10 +20,10 @@
|
||||||
#define PY_MINOR_VERSION 10
|
#define PY_MINOR_VERSION 10
|
||||||
#define PY_MICRO_VERSION 0
|
#define PY_MICRO_VERSION 0
|
||||||
#define PY_RELEASE_LEVEL PY_RELEASE_LEVEL_ALPHA
|
#define PY_RELEASE_LEVEL PY_RELEASE_LEVEL_ALPHA
|
||||||
#define PY_RELEASE_SERIAL 4
|
#define PY_RELEASE_SERIAL 5
|
||||||
|
|
||||||
/* Version as a string */
|
/* Version as a string */
|
||||||
#define PY_VERSION "3.10.0a4+"
|
#define PY_VERSION "3.10.0a5"
|
||||||
/*--end constants--*/
|
/*--end constants--*/
|
||||||
|
|
||||||
/* Version as a single 4-byte hex number, e.g. 0x010502B2 == 1.5.2b2.
|
/* Version as a single 4-byte hex number, e.g. 0x010502B2 == 1.5.2b2.
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
# Autogenerated by Sphinx on Mon Jan 4 17:25:50 2021
|
# Autogenerated by Sphinx on Tue Feb 2 20:44:10 2021
|
||||||
topics = {'assert': 'The "assert" statement\n'
|
topics = {'assert': 'The "assert" statement\n'
|
||||||
'**********************\n'
|
'**********************\n'
|
||||||
'\n'
|
'\n'
|
||||||
|
@ -2561,7 +2561,9 @@ topics = {'assert': 'The "assert" statement\n'
|
||||||
'usage\n'
|
'usage\n'
|
||||||
'patterns to be encapsulated for convenient reuse.\n'
|
'patterns to be encapsulated for convenient reuse.\n'
|
||||||
'\n'
|
'\n'
|
||||||
' with_stmt ::= "with" with_item ("," with_item)* ":" suite\n'
|
' with_stmt ::= "with" ( "(" with_stmt_contents ","? '
|
||||||
|
'")" | with_stmt_contents ) ":" suite\n'
|
||||||
|
' with_stmt_contents ::= with_item ("," with_item)*\n'
|
||||||
' with_item ::= expression ["as" target]\n'
|
' with_item ::= expression ["as" target]\n'
|
||||||
'\n'
|
'\n'
|
||||||
'The execution of the "with" statement with one “item” proceeds '
|
'The execution of the "with" statement with one “item” proceeds '
|
||||||
|
@ -2654,9 +2656,23 @@ topics = {'assert': 'The "assert" statement\n'
|
||||||
' with B() as b:\n'
|
' with B() as b:\n'
|
||||||
' SUITE\n'
|
' SUITE\n'
|
||||||
'\n'
|
'\n'
|
||||||
|
'You can also write multi-item context managers in multiple lines '
|
||||||
|
'if\n'
|
||||||
|
'the items are surrounded by parentheses. For example:\n'
|
||||||
|
'\n'
|
||||||
|
' with (\n'
|
||||||
|
' A() as a,\n'
|
||||||
|
' B() as b,\n'
|
||||||
|
' ):\n'
|
||||||
|
' SUITE\n'
|
||||||
|
'\n'
|
||||||
'Changed in version 3.1: Support for multiple context '
|
'Changed in version 3.1: Support for multiple context '
|
||||||
'expressions.\n'
|
'expressions.\n'
|
||||||
'\n'
|
'\n'
|
||||||
|
'Changed in version 3.10: Support for using grouping parentheses '
|
||||||
|
'to\n'
|
||||||
|
'break the statement in multiple lines.\n'
|
||||||
|
'\n'
|
||||||
'See also:\n'
|
'See also:\n'
|
||||||
'\n'
|
'\n'
|
||||||
' **PEP 343** - The “with” statement\n'
|
' **PEP 343** - The “with” statement\n'
|
||||||
|
@ -5268,9 +5284,9 @@ topics = {'assert': 'The "assert" statement\n'
|
||||||
' | | in the form ‘+000000120’. This alignment '
|
' | | in the form ‘+000000120’. This alignment '
|
||||||
'option is only |\n'
|
'option is only |\n'
|
||||||
' | | valid for numeric types. It becomes the '
|
' | | valid for numeric types. It becomes the '
|
||||||
'default when ‘0’ |\n'
|
'default for |\n'
|
||||||
' | | immediately precedes the field '
|
' | | numbers when ‘0’ immediately precedes the '
|
||||||
'width. |\n'
|
'field width. |\n'
|
||||||
' '
|
' '
|
||||||
'+-----------+------------------------------------------------------------+\n'
|
'+-----------+------------------------------------------------------------+\n'
|
||||||
' | "\'^\'" | Forces the field to be centered within '
|
' | "\'^\'" | Forces the field to be centered within '
|
||||||
|
@ -5378,6 +5394,10 @@ topics = {'assert': 'The "assert" statement\n'
|
||||||
'with an\n'
|
'with an\n'
|
||||||
'*alignment* type of "\'=\'".\n'
|
'*alignment* type of "\'=\'".\n'
|
||||||
'\n'
|
'\n'
|
||||||
|
'Changed in version 3.10: Preceding the *width* field by '
|
||||||
|
'"\'0\'" no\n'
|
||||||
|
'longer affects the default alignment for strings.\n'
|
||||||
|
'\n'
|
||||||
'The *precision* is a decimal number indicating how many '
|
'The *precision* is a decimal number indicating how many '
|
||||||
'digits should\n'
|
'digits should\n'
|
||||||
'be displayed after the decimal point for a floating point '
|
'be displayed after the decimal point for a floating point '
|
||||||
|
@ -13989,7 +14009,9 @@ topics = {'assert': 'The "assert" statement\n'
|
||||||
'usage\n'
|
'usage\n'
|
||||||
'patterns to be encapsulated for convenient reuse.\n'
|
'patterns to be encapsulated for convenient reuse.\n'
|
||||||
'\n'
|
'\n'
|
||||||
' with_stmt ::= "with" with_item ("," with_item)* ":" suite\n'
|
' with_stmt ::= "with" ( "(" with_stmt_contents ","? ")" | '
|
||||||
|
'with_stmt_contents ) ":" suite\n'
|
||||||
|
' with_stmt_contents ::= with_item ("," with_item)*\n'
|
||||||
' with_item ::= expression ["as" target]\n'
|
' with_item ::= expression ["as" target]\n'
|
||||||
'\n'
|
'\n'
|
||||||
'The execution of the "with" statement with one “item” proceeds as\n'
|
'The execution of the "with" statement with one “item” proceeds as\n'
|
||||||
|
@ -14076,8 +14098,20 @@ topics = {'assert': 'The "assert" statement\n'
|
||||||
' with B() as b:\n'
|
' with B() as b:\n'
|
||||||
' SUITE\n'
|
' SUITE\n'
|
||||||
'\n'
|
'\n'
|
||||||
|
'You can also write multi-item context managers in multiple lines if\n'
|
||||||
|
'the items are surrounded by parentheses. For example:\n'
|
||||||
|
'\n'
|
||||||
|
' with (\n'
|
||||||
|
' A() as a,\n'
|
||||||
|
' B() as b,\n'
|
||||||
|
' ):\n'
|
||||||
|
' SUITE\n'
|
||||||
|
'\n'
|
||||||
'Changed in version 3.1: Support for multiple context expressions.\n'
|
'Changed in version 3.1: Support for multiple context expressions.\n'
|
||||||
'\n'
|
'\n'
|
||||||
|
'Changed in version 3.10: Support for using grouping parentheses to\n'
|
||||||
|
'break the statement in multiple lines.\n'
|
||||||
|
'\n'
|
||||||
'See also:\n'
|
'See also:\n'
|
||||||
'\n'
|
'\n'
|
||||||
' **PEP 343** - The “with” statement\n'
|
' **PEP 343** - The “with” statement\n'
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
This is Python version 3.10.0 alpha 4
|
This is Python version 3.10.0 alpha 5
|
||||||
=====================================
|
=====================================
|
||||||
|
|
||||||
.. image:: https://travis-ci.com/python/cpython.svg?branch=master
|
.. image:: https://travis-ci.com/python/cpython.svg?branch=master
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue