Skip to content

Commit 274e9ce

Browse files
committed
Merge tag 'v3.9.0rc2' into 3.9
Python 3.9.0rc2
2 parents f76a388 + 2bd31b5 commit 274e9ce

File tree

40 files changed

+409
-95
lines changed

40 files changed

+409
-95
lines changed

Include/patchlevel.h

+2-2
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_GAMMA
23-
#define PY_RELEASE_SERIAL 1
23+
#define PY_RELEASE_SERIAL 2
2424

2525
/* Version as a string */
26-
#define PY_VERSION "3.9.0rc1+"
26+
#define PY_VERSION "3.9.0rc2"
2727
/*--end constants--*/
2828

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

Lib/pydoc_data/topics.py

+46-30
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
# Autogenerated by Sphinx on Tue Aug 11 19:08:56 2020
2+
# Autogenerated by Sphinx on Wed Sep 16 23:08:58 2020
33
topics = {'assert': 'The "assert" statement\n'
44
'**********************\n'
55
'\n'
@@ -6946,6 +6946,14 @@
69466946
'the data\n'
69476947
' model.\n'
69486948
'\n'
6949+
' Note: Due to a bug in the dispatching mechanism for '
6950+
'"**=", a\n'
6951+
' class that defines "__ipow__()" but returns '
6952+
'"NotImplemented"\n'
6953+
' would fail to fall back to "x.__pow__(y)" and '
6954+
'"y.__rpow__(x)".\n'
6955+
' This bug is fixed in Python 3.10.\n'
6956+
'\n'
69496957
'object.__neg__(self)\n'
69506958
'object.__pos__(self)\n'
69516959
'object.__abs__(self)\n'
@@ -9627,6 +9635,14 @@
96279635
'the data\n'
96289636
' model.\n'
96299637
'\n'
9638+
' Note: Due to a bug in the dispatching mechanism for '
9639+
'"**=", a\n'
9640+
' class that defines "__ipow__()" but returns '
9641+
'"NotImplemented"\n'
9642+
' would fail to fall back to "x.__pow__(y)" and '
9643+
'"y.__rpow__(x)".\n'
9644+
' This bug is fixed in Python 3.10.\n'
9645+
'\n'
96309646
'object.__neg__(self)\n'
96319647
'object.__pos__(self)\n'
96329648
'object.__abs__(self)\n'
@@ -9915,35 +9931,6 @@
99159931
'*start* and\n'
99169932
' *end* are interpreted as in slice notation.\n'
99179933
'\n'
9918-
'str.removeprefix(prefix, /)\n'
9919-
'\n'
9920-
' If the string starts with the *prefix* string, return\n'
9921-
' "string[len(prefix):]". Otherwise, return a copy of the '
9922-
'original\n'
9923-
' string:\n'
9924-
'\n'
9925-
" >>> 'TestHook'.removeprefix('Test')\n"
9926-
" 'Hook'\n"
9927-
" >>> 'BaseTestCase'.removeprefix('Test')\n"
9928-
" 'BaseTestCase'\n"
9929-
'\n'
9930-
' New in version 3.9.\n'
9931-
'\n'
9932-
'str.removesuffix(suffix, /)\n'
9933-
'\n'
9934-
' If the string ends with the *suffix* string and that '
9935-
'*suffix* is\n'
9936-
' not empty, return "string[:-len(suffix)]". Otherwise, '
9937-
'return a copy\n'
9938-
' of the original string:\n'
9939-
'\n'
9940-
" >>> 'MiscTests'.removesuffix('Tests')\n"
9941-
" 'Misc'\n"
9942-
" >>> 'TmpDirMixin'.removesuffix('Tests')\n"
9943-
" 'TmpDirMixin'\n"
9944-
'\n'
9945-
' New in version 3.9.\n'
9946-
'\n'
99479934
'str.encode(encoding="utf-8", errors="strict")\n'
99489935
'\n'
99499936
' Return an encoded version of the string as a bytes '
@@ -10372,6 +10359,35 @@
1037210359
'followed by\n'
1037310360
' two empty strings.\n'
1037410361
'\n'
10362+
'str.removeprefix(prefix, /)\n'
10363+
'\n'
10364+
' If the string starts with the *prefix* string, return\n'
10365+
' "string[len(prefix):]". Otherwise, return a copy of the '
10366+
'original\n'
10367+
' string:\n'
10368+
'\n'
10369+
" >>> 'TestHook'.removeprefix('Test')\n"
10370+
" 'Hook'\n"
10371+
" >>> 'BaseTestCase'.removeprefix('Test')\n"
10372+
" 'BaseTestCase'\n"
10373+
'\n'
10374+
' New in version 3.9.\n'
10375+
'\n'
10376+
'str.removesuffix(suffix, /)\n'
10377+
'\n'
10378+
' If the string ends with the *suffix* string and that '
10379+
'*suffix* is\n'
10380+
' not empty, return "string[:-len(suffix)]". Otherwise, '
10381+
'return a copy\n'
10382+
' of the original string:\n'
10383+
'\n'
10384+
" >>> 'MiscTests'.removesuffix('Tests')\n"
10385+
" 'Misc'\n"
10386+
" >>> 'TmpDirMixin'.removesuffix('Tests')\n"
10387+
" 'TmpDirMixin'\n"
10388+
'\n'
10389+
' New in version 3.9.\n'
10390+
'\n'
1037510391
'str.replace(old, new[, count])\n'
1037610392
'\n'
1037710393
' Return a copy of the string with all occurrences of '

0 commit comments

Comments
 (0)