|
1 | 1 | # -*- 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 |
3 | 3 | topics = {'assert': 'The "assert" statement\n'
|
4 | 4 | '**********************\n'
|
5 | 5 | '\n'
|
|
5301 | 5301 | 'for the\n'
|
5302 | 5302 | 'conversion. The alternate form is defined differently for '
|
5303 | 5303 | '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' |
5322 | 5321 | '\n'
|
5323 | 5322 | 'The "\',\'" option signals the use of a comma for a '
|
5324 | 5323 | 'thousands separator.\n'
|
|
5456 | 5455 | 'the integer\n'
|
5457 | 5456 | 'to a floating point number before formatting.\n'
|
5458 | 5457 | '\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' |
5462 | 5460 | '\n'
|
5463 | 5461 | ' '
|
5464 | 5462 | '+-----------+------------------------------------------------------------+\n'
|
|
5467 | 5465 | '|\n'
|
5468 | 5466 | ' '
|
5469 | 5467 | '|===========|============================================================|\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' |
5476 | 5488 | ' '
|
5477 | 5489 | '+-----------+------------------------------------------------------------+\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' |
5480 | 5492 | ' | | case ‘E’ as the separator '
|
5481 | 5493 | 'character. |\n'
|
5482 | 5494 | ' '
|
5483 | 5495 | '+-----------+------------------------------------------------------------+\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' |
5488 | 5512 | ' '
|
5489 | 5513 | '+-----------+------------------------------------------------------------+\n'
|
5490 | 5514 | ' | "\'F\'" | Fixed-point notation. Same as "\'f\'", '
|
|
5530 | 5554 | ' | | regardless of the precision. A precision '
|
5531 | 5555 | 'of "0" is |\n'
|
5532 | 5556 | ' | | 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' |
5536 | 5565 | ' '
|
5537 | 5566 | '+-----------+------------------------------------------------------------+\n'
|
5538 | 5567 | ' | "\'G\'" | General format. Same as "\'g\'" except '
|
|
0 commit comments