mirror of
https://github.com/python/cpython.git
synced 2025-07-08 03:45:36 +00:00
Python 3.10.0a3
This commit is contained in:
parent
c0afb7fa0e
commit
8bae2a958e
148 changed files with 1573 additions and 372 deletions
|
@ -1,5 +1,5 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Autogenerated by Sphinx on Tue Nov 3 00:01:01 2020
|
||||
# Autogenerated by Sphinx on Mon Dec 7 19:34:00 2020
|
||||
topics = {'assert': 'The "assert" statement\n'
|
||||
'**********************\n'
|
||||
'\n'
|
||||
|
@ -5301,24 +5301,23 @@ topics = {'assert': 'The "assert" statement\n'
|
|||
'for the\n'
|
||||
'conversion. The alternate form is defined differently for '
|
||||
'different\n'
|
||||
'types. This option is only valid for integer, float, '
|
||||
'complex and\n'
|
||||
'Decimal types. For integers, when binary, octal, or '
|
||||
'hexadecimal output\n'
|
||||
'is used, this option adds the prefix respective "\'0b\'", '
|
||||
'"\'0o\'", or\n'
|
||||
'"\'0x\'" to the output value. For floats, complex and '
|
||||
'Decimal the\n'
|
||||
'alternate form causes the result of the conversion to '
|
||||
'always contain a\n'
|
||||
'decimal-point character, even if no digits follow it. '
|
||||
'Normally, a\n'
|
||||
'decimal-point character appears in the result of these '
|
||||
'conversions\n'
|
||||
'only if a digit follows it. In addition, for "\'g\'" and '
|
||||
'"\'G\'"\n'
|
||||
'conversions, trailing zeros are not removed from the '
|
||||
'result.\n'
|
||||
'types. This option is only valid for integer, float and '
|
||||
'complex\n'
|
||||
'types. For integers, when binary, octal, or hexadecimal '
|
||||
'output is\n'
|
||||
'used, this option adds the prefix respective "\'0b\'", '
|
||||
'"\'0o\'", or "\'0x\'"\n'
|
||||
'to the output value. For float and complex the alternate '
|
||||
'form causes\n'
|
||||
'the result of the conversion to always contain a '
|
||||
'decimal-point\n'
|
||||
'character, even if no digits follow it. Normally, a '
|
||||
'decimal-point\n'
|
||||
'character appears in the result of these conversions only '
|
||||
'if a digit\n'
|
||||
'follows it. In addition, for "\'g\'" and "\'G\'" '
|
||||
'conversions, trailing\n'
|
||||
'zeros are not removed from the result.\n'
|
||||
'\n'
|
||||
'The "\',\'" option signals the use of a comma for a '
|
||||
'thousands separator.\n'
|
||||
|
@ -5456,9 +5455,8 @@ topics = {'assert': 'The "assert" statement\n'
|
|||
'the integer\n'
|
||||
'to a floating point number before formatting.\n'
|
||||
'\n'
|
||||
'The available presentation types for floating point and '
|
||||
'decimal values\n'
|
||||
'are:\n'
|
||||
'The available presentation types for "float" and "Decimal" '
|
||||
'values are:\n'
|
||||
'\n'
|
||||
' '
|
||||
'+-----------+------------------------------------------------------------+\n'
|
||||
|
@ -5467,24 +5465,50 @@ topics = {'assert': 'The "assert" statement\n'
|
|||
'|\n'
|
||||
' '
|
||||
'|===========|============================================================|\n'
|
||||
' | "\'e\'" | Exponent notation. Prints the number in '
|
||||
'scientific |\n'
|
||||
' | | notation using the letter ‘e’ to indicate '
|
||||
'the exponent. |\n'
|
||||
' | | The default precision is '
|
||||
'"6". |\n'
|
||||
' | "\'e\'" | Scientific notation. For a given '
|
||||
'precision "p", formats |\n'
|
||||
' | | the number in scientific notation with the '
|
||||
'letter ‘e’ |\n'
|
||||
' | | separating the coefficient from the '
|
||||
'exponent. The |\n'
|
||||
' | | coefficient has one digit before and "p" '
|
||||
'digits after the |\n'
|
||||
' | | decimal point, for a total of "p + 1" '
|
||||
'significant digits. |\n'
|
||||
' | | With no precision given, uses a precision '
|
||||
'of "6" digits |\n'
|
||||
' | | after the decimal point for "float", and '
|
||||
'shows all |\n'
|
||||
' | | coefficient digits for "Decimal". If no '
|
||||
'digits follow the |\n'
|
||||
' | | decimal point, the decimal point is also '
|
||||
'removed unless |\n'
|
||||
' | | the "#" option is '
|
||||
'used. |\n'
|
||||
' '
|
||||
'+-----------+------------------------------------------------------------+\n'
|
||||
' | "\'E\'" | Exponent notation. Same as "\'e\'" '
|
||||
'except it uses an upper |\n'
|
||||
' | "\'E\'" | Scientific notation. Same as "\'e\'" '
|
||||
'except it uses an upper |\n'
|
||||
' | | case ‘E’ as the separator '
|
||||
'character. |\n'
|
||||
' '
|
||||
'+-----------+------------------------------------------------------------+\n'
|
||||
' | "\'f\'" | Fixed-point notation. Displays the '
|
||||
'number as a fixed-point |\n'
|
||||
' | | number. The default precision is '
|
||||
'"6". |\n'
|
||||
' | "\'f\'" | Fixed-point notation. For a given '
|
||||
'precision "p", formats |\n'
|
||||
' | | the number as a decimal number with '
|
||||
'exactly "p" digits |\n'
|
||||
' | | following the decimal point. With no '
|
||||
'precision given, uses |\n'
|
||||
' | | a precision of "6" digits after the '
|
||||
'decimal point for |\n'
|
||||
' | | "float", and uses a precision large enough '
|
||||
'to show all |\n'
|
||||
' | | coefficient digits for "Decimal". If no '
|
||||
'digits follow the |\n'
|
||||
' | | decimal point, the decimal point is also '
|
||||
'removed unless |\n'
|
||||
' | | the "#" option is '
|
||||
'used. |\n'
|
||||
' '
|
||||
'+-----------+------------------------------------------------------------+\n'
|
||||
' | "\'F\'" | Fixed-point notation. Same as "\'f\'", '
|
||||
|
@ -5530,9 +5554,14 @@ topics = {'assert': 'The "assert" statement\n'
|
|||
' | | regardless of the precision. A precision '
|
||||
'of "0" is |\n'
|
||||
' | | treated as equivalent to a precision of '
|
||||
'"1". The default |\n'
|
||||
' | | precision is '
|
||||
'"6". |\n'
|
||||
'"1". With no |\n'
|
||||
' | | precision given, uses a precision of "6" '
|
||||
'significant |\n'
|
||||
' | | digits for "float", and shows all '
|
||||
'coefficient digits for |\n'
|
||||
' | | '
|
||||
'"Decimal". '
|
||||
'|\n'
|
||||
' '
|
||||
'+-----------+------------------------------------------------------------+\n'
|
||||
' | "\'G\'" | General format. Same as "\'g\'" except '
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue