8000 Python 3.10.0a3 · python/cpython@8bae2a9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8bae2a9

Browse files
committed
Python 3.10.0a3
1 parent c0afb7f commit 8bae2a9

File tree

148 files changed

+1573
-372
lines changed

Some content is hidden

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

148 files changed

+1573
-372
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 10
2121
#define PY_MICRO_VERSION 0
2222
#define PY_RELEASE_LEVEL PY_RELEASE_LEVEL_ALPHA
23-
#define PY_RELEASE_SERIAL 2
23+
#define PY_RELEASE_SERIAL 3
2424

2525
/* Version as a string */
26-
#define PY_VERSION "3.10.0a2+"
26+
#define PY_VERSION "3.10.0a3"
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: 66 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
# Autogenerated by Sphinx on Tue Nov 3 00:01:01 2020
2+
# Autogenerated by Sphinx on Mon Dec 7 19:34:00 2020
33
topics = {'assert': 'The "assert" statement\n'
44
'**********************\n'
55
'\n'
@@ -5301,24 +5301,23 @@
53015301
'for the\n'
53025302
'conversion. The alternate form is defined differently for '
53035303
'different\n'
5304-
'types. This option is only valid for integer, float, '
5305-
'complex and\n'
5306-
'Decimal types. For integers, when binary, octal, or '
5307-
'hexadecimal output\n'
5308-
'is used, this option adds the prefix respective "\'0b\'", '
5309-
'"\'0o\'", or\n'
5310-
'"\'0x\'" to the output value. For floats, complex and '
5311-
'Decimal the\n'
5312-
'alternate form causes the result of the conversion to '
5313-
'always contain a\n'
5314-
'decimal-point character, even if no digits follow it. '
5315-
'Normally, a\n'
5316-
'decimal-point character appears in the result of these '
5317-
'conversions\n'
5318-
'only if a digit follows it. In addition, for "\'g\'" and '
5319-
'"\'G\'"\n'
5320-
'conversions, trailing zeros are not removed from the '
5321-
'result.\n'
5304+
'types. This option is only valid for integer, float and '
5305+
'complex\n'
5306+
'types. For integers, when binary, octal, or hexadecimal '
5307+
'output is\n'
5308+
'used, this option adds the prefix respective "\'0b\'", '
5309+
'"\'0o\'", or "\'0x\'"\n'
5310+
'to the output value. For float and complex the alternate '
5311+
'form causes\n'
5312+
'the result of the conversion to always contain a '
5313+
'decimal-point\n'
5314+
'character, even if no digits follow it. Normally, a '
5315+
'decimal-point\n'
5316+
'character appears in the result of these conversions only '
5317+
'if a digit\n'
5318+
'follows it. In addition, for "\'g\'" and "\'G\'" '
5319+
'conversions, trailing\n'
5320+
'zeros are not removed from the result.\n'
53225321
'\n'
53235322
'The "\',\'" option signals the use of a comma for a '
53245323
'thousands separator.\n'
@@ -5456,9 +5455,8 @@
54565455
'the integer\n'
54575456
'to a floating point number before formatting.\n'
54585457
'\n'
5459-
'The available presentation types for floating point and '
5460-
'decimal values\n'
5461-
'are:\n'
5458+
'The available presentation types for "float" and "Decimal" '
5459+
'values are:\n'
54625460
'\n'
54635461
' '
54645462
'+-----------+------------------------------------------------------------+\n'
@@ -5467,24 +5465,50 @@
54675465
'|\n'
54685466
' '
54695467
'|===========|============================================================|\n'
5470-
' | "\'e\'" | Exponent notation. Prints the number in '
5471-
'scientific |\n'
5472-
' | | notation using the letter ‘e’ to indicate '
5473-
'the exponent. |\n'
5474-
' | | The default precision is '
5475-
'"6". |\n'
5468+
' | "\'e\'" | Scientific notation. For a given '
5469+
'precision "p", formats |\n'
5470+
' | | the number in scientific notation with the '
5471+
'letter ‘e’ |\n'
5472+
' | | separating the coefficient from the '
5473+
'exponent. The |\n'
5474+
' | | coefficient has one digit before and "p" '
5475+
'digits after the |\n'
5476+
' | | decimal point, for a total of "p + 1" '
5477+
'significant digits. |\n'
5478+
' | | With no precision given, uses a precision '
5479+
'of "6" digits |\n'
5480+
' | | after the decimal point for "float", and '
5481+
'shows all |\n'
5482+
' | | coefficient digits for "Decimal". If no '
5483+
'digits follow the |\n'
5484+
' | | decimal point, the decimal point is also '
5485+
'removed unless |\n'
5486+
' | | the "#" option is '
5487+
'used. |\n'
54765488
' '
54775489
'+-----------+------------------------------------------------------------+\n'
5478-
' | "\'E\'" | Exponent notation. Same as "\'e\'" '
5479-
'except it uses an upper |\n'
5490+
' | "\'E\'" | Scientific notation. Same as "\'e\'" '
5491+
'except it uses an upper |\n'
54805492
' | | case ‘E’ as the separator '
54815493
'character. |\n'
54825494
' '
54835495
'+-----------+------------------------------------------------------------+\n'
5484-
' | "\'f\'" | Fixed-point notation. Displays the '
5485-
'number as a fixed-point |\n'
5486-
' | | number. The default precision is '
5487-
'"6". |\n'
5496+
' | "\'f\'" | Fixed-point notation. For a given '
5497+
'precision "p", formats |\n'
5498+
' | | the number as a decimal number with '
5499+
'exactly "p" digits |\n'
5500+
' | | following the decimal point. With no '
5501+
'precision given, uses |\n'
5502+
' | | a precision of "6" digits after the '
5503+
'decimal point for |\n'
5504+
' | | "float", and uses a precision large enough '
5505+
'to show all |\n'
5506+
' | | coefficient digits for "Decimal". If no '
5507+
'digits follow the |\n'
5508+
' | | decimal point, the decimal point is also '
5509+
'removed unless |\n'
5510+
' | | the "#" option is '
5511+
'used. |\n'
54885512
' '
54895513
'+-----------+------------------------------------------------------------+\n'
54905514
' | "\'F\'" | Fixed-point notation. Same as "\'f\'", '
@@ -5530,9 +5554,14 @@
55305554
' | | regardless of the precision. A precision '
55315555
'of "0" is |\n'
55325556
' | | treated as equivalent to a precision of '
5533-
'"1". The default |\n'
5534-
' | | precision is '
5535-
'"6". |\n'
5557+
'"1". With no |\n'
5558+
' | | precision given, uses a precision of "6" '
5559+
'significant |\n'
5560+
' | | digits for "float", and shows all '
5561+
'coefficient digits for |\n'
5562+
' | | '
5563+
'"Decimal". '
5564+
'|\n'
55365565
' '
55375566
'+-----------+------------------------------------------------------------+\n'
55385567
' | "\'G\'" | General format. Same as "\'g\'" except '

0 commit comments

Comments
 (0)
0