Skip to content

Commit d66685a

Browse files
committed
Merge tag 'v3.9.0a6'
2 parents 5b9f498 + bc1c8af commit d66685a

File tree

122 files changed

+1313
-291
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

122 files changed

+1313
-291
lines changed

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 9
2121
#define PY_MICRO_VERSION 0
2222
#define PY_RELEASE_LEVEL PY_RELEASE_LEVEL_ALPHA
23-
#define PY_RELEASE_SERIAL 5
23+
#define PY_RELEASE_SERIAL 6
2424

2525
/* Version as a string */
26-
#define PY_VERSION "3.9.0a5+"
26+
#define PY_VERSION "3.9.0a6"
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: 99 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
# Autogenerated by Sphinx on Mon Mar 23 17:18:04 2020
2+
# Autogenerated by Sphinx on Mon Apr 27 22:35:16 2020
33
topics = {'assert': 'The "assert" statement\n'
44
'**********************\n'
55
'\n'
@@ -1877,9 +1877,9 @@
18771877
' value is false. A counter-intuitive implication is that '
18781878
'not-a-number\n'
18791879
' values are not equal to themselves. For example, if "x =\n'
1880-
' float(\'NaN\')", "3 < x", "x < 3", "x == x", "x != x" are '
1881-
'all false.\n'
1882-
' This behavior is compliant with IEEE 754.\n'
1880+
' float(\'NaN\')", "3 < x", "x < 3" and "x == x" are all '
1881+
'false, while "x\n'
1882+
' != x" is true. This behavior is compliant with IEEE 754.\n'
18831883
'\n'
18841884
'* "None" and "NotImplemented" are singletons. **PEP 8** '
18851885
'advises\n'
@@ -3150,7 +3150,7 @@
31503150
'\n'
31513151
'When a description of an arithmetic operator below uses the '
31523152
'phrase\n'
3153-
'“the numeric arguments are converted to a common type,” this '
3153+
'“the numeric arguments are converted to a common type”, this '
31543154
'means\n'
31553155
'that the operator implementation for built-in types works as '
31563156
'follows:\n'
@@ -3414,7 +3414,7 @@
34143414
'\n'
34153415
' Changed in version 3.7: "object.__format__(x, \'\')" is '
34163416
'now\n'
3417-
' equivalent to "str(x)" rather than "format(str(self), '
3417+
' equivalent to "str(x)" rather than "format(str(x), '
34183418
'\'\')".\n'
34193419
'\n'
34203420
'object.__lt__(self, other)\n'
@@ -5962,19 +5962,18 @@
59625962
'convention.\n'
59635963
'\n'
59645964
'"__*__"\n'
5965-
' System-defined names. These names are defined by the '
5966-
'interpreter\n'
5967-
' and its implementation (including the standard library). '
5968-
'Current\n'
5969-
' system names are discussed in the Special method names '
5970-
'section and\n'
5971-
' elsewhere. More will likely be defined in future versions '
5972-
'of\n'
5973-
' Python. *Any* use of "__*__" names, in any context, that '
5974-
'does not\n'
5975-
' follow explicitly documented use, is subject to breakage '
5976-
'without\n'
5977-
' warning.\n'
5965+
' System-defined names, informally known as “dunder” names. '
5966+
'These\n'
5967+
' names are defined by the interpreter and its '
5968+
'implementation\n'
5969+
' (including the standard library). Current system names are\n'
5970+
' discussed in the Special method names section and '
5971+
'elsewhere. More\n'
5972+
' will likely be defined in future versions of Python. *Any* '
5973+
'use of\n'
5974+
' "__*__" names, in any context, that does not follow '
5975+
'explicitly\n'
5976+
' documented use, is subject to breakage without warning.\n'
59785977
'\n'
59795978
'"__*"\n'
59805979
' Class-private names. Names in this category, when used '
@@ -6110,19 +6109,19 @@
61106109
'convention.\n'
61116110
'\n'
61126111
'"__*__"\n'
6113-
' System-defined names. These names are defined by the '
6114-
'interpreter\n'
6115-
' and its implementation (including the standard library). '
6116-
'Current\n'
6117-
' system names are discussed in the Special method names '
6118-
'section and\n'
6119-
' elsewhere. More will likely be defined in future versions '
6120-
'of\n'
6121-
' Python. *Any* use of "__*__" names, in any context, that '
6122-
'does not\n'
6123-
' follow explicitly documented use, is subject to breakage '
6124-
'without\n'
6125-
' warning.\n'
6112+
' System-defined names, informally known as “dunder” names. '
6113+
'These\n'
6114+
' names are defined by the interpreter and its '
6115+
'implementation\n'
6116+
' (including the standard library). Current system names '
6117+
'are\n'
6118+
' discussed in the Special method names section and '
6119+
'elsewhere. More\n'
6120+
' will likely be defined in future versions of Python. '
6121+
'*Any* use of\n'
6122+
' "__*__" names, in any context, that does not follow '
6123+
'explicitly\n'
6124+
' documented use, is subject to breakage without warning.\n'
61266125
'\n'
61276126
'"__*"\n'
61286127
' Class-private names. Names in this category, when used '
@@ -7007,7 +7006,7 @@
70077006
'program is represented by objects or by relations between '
70087007
'objects. (In\n'
70097008
'a sense, and in conformance to Von Neumann’s model of a “stored\n'
7010-
'program computer,” code is also represented by objects.)\n'
7009+
'program computer”, code is also represented by objects.)\n'
70117010
'\n'
70127011
'Every object has an identity, a type and a value. An object’s\n'
70137012
'*identity* never changes once it has been created; you may think '
@@ -8168,7 +8167,7 @@
81688167
'\n'
81698168
' Changed in version 3.7: "object.__format__(x, \'\')" is '
81708169
'now\n'
8171-
' equivalent to "str(x)" rather than "format(str(self), '
8170+
' equivalent to "str(x)" rather than "format(str(x), '
81728171
'\'\')".\n'
81738172
'\n'
81748173
'object.__lt__(self, other)\n'
@@ -9915,6 +9914,35 @@
99159914
'*start* and\n'
99169915
' *end* are interpreted as in slice notation.\n'
99179916
'\n'
9917+
'str.removeprefix(prefix, /)\n'
9918+
'\n'
9919+
' If the string starts with the *prefix* string, return\n'
9920+
' "string[len(prefix):]". Otherwise, return a copy of the '
9921+
'original\n'
9922+
' string:\n'
9923+
'\n'
9924+
" >>> 'TestHook'.removeprefix('Test')\n"
9925+
" 'Hook'\n"
9926+
" >>> 'BaseTestCase'.removeprefix('Test')\n"
9927+
" 'BaseTestCase'\n"
9928+
'\n'
9929+
' New in version 3.9.\n'
9930+
'\n'
9931+
'str.removesuffix(suffix, /)\n'
9932+
'\n'
9933+
' If the string ends with the *suffix* string and that '
9934+
'*suffix* is\n'
9935+
' not empty, return "string[:-len(suffix)]". Otherwise, '
9936+
'return a copy\n'
9937+
' of the original string:\n'
9938+
'\n'
9939+
" >>> 'MiscTests'.removesuffix('Tests')\n"
9940+
" 'Misc'\n"
9941+
" >>> 'TmpDirMixin'.removesuffix('Tests')\n"
9942+
" 'TmpDirMixin'\n"
9943+
'\n'
9944+
' New in version 3.9.\n'
9945+
'\n'
99189946
'str.encode(encoding="utf-8", errors="strict")\n'
99199947
'\n'
99209948
' Return an encoded version of the string as a bytes '
@@ -10297,6 +10325,16 @@
1029710325
" >>> 'www.example.com'.lstrip('cmowz.')\n"
1029810326
" 'example.com'\n"
1029910327
'\n'
10328+
' See "str.removeprefix()" for a method that will remove '
10329+
'a single\n'
10330+
' prefix string rather than all of a set of characters. '
10331+
'For example:\n'
10332+
'\n'
10333+
" >>> 'Arthur: three!'.lstrip('Arthur: ')\n"
10334+
" 'ee!'\n"
10335+
" >>> 'Arthur: three!'.removeprefix('Arthur: ')\n"
10336+
" 'three!'\n"
10337+
'\n'
1030010338
'static str.maketrans(x[, y[, z]])\n'
1030110339
'\n'
1030210340
' This static method returns a translation table usable '
@@ -10410,6 +10448,16 @@
1041010448
" >>> 'mississippi'.rstrip('ipz')\n"
1041110449
" 'mississ'\n"
1041210450
'\n'
10451+
' See "str.removesuffix()" for a method that will remove '
10452+
'a single\n'
10453+
' suffix string rather than all of a set of characters. '
10454+
'For example:\n'
10455+
'\n'
10456+
" >>> 'Monty Python'.rstrip(' Python')\n"
10457+
" 'M'\n"
10458+
" >>> 'Monty Python'.removesuffix(' Python')\n"
10459+
" 'Monty'\n"
10460+
'\n'
1041310461
'str.split(sep=None, maxsplit=-1)\n'
1041410462
'\n'
1041510463
' Return a list of the words in the string, using *sep* '
@@ -11483,6 +11531,16 @@
1148311531
' then they can be used interchangeably to index the same\n'
1148411532
' dictionary entry.\n'
1148511533
'\n'
11534+
' Dictionaries preserve insertion order, meaning that keys will '
11535+
'be\n'
11536+
' produced in the same order they were added sequentially over '
11537+
'the\n'
11538+
' dictionary. Replacing an existing key does not change the '
11539+
'order,\n'
11540+
' however removing a key and re-inserting it will add it to '
11541+
'the\n'
11542+
' end instead of keeping its old place.\n'
11543+
'\n'
1148611544
' Dictionaries are mutable; they can be created by the "{...}"\n'
1148711545
' notation (see section Dictionary displays).\n'
1148811546
'\n'
@@ -11491,6 +11549,13 @@
1149111549
'"collections"\n'
1149211550
' module.\n'
1149311551
'\n'
11552+
' Changed in version 3.7: Dictionaries did not preserve '
11553+
'insertion\n'
11554+
' order in versions of Python before 3.6. In CPython 3.6,\n'
11555+
' insertion order was preserved, but it was considered an\n'
11556+
' implementation detail at that time rather than a language\n'
11557+
' guarantee.\n'
11558+
'\n'
1149411559
'Callable types\n'
1149511560
' These are the types to which the function call operation (see\n'
1149611561
' section Calls) can be applied:\n'

0 commit comments

Comments
 (0)