|
1 | 1 | # -*- coding: utf-8 -*-
|
2 |
| -# Autogenerated by Sphinx on Thu Jul 18 11:36:18 2024 |
| 2 | +# Autogenerated by Sphinx on Wed Jul 31 20:10:37 2024 |
3 | 3 | # as part of the release process.
|
4 | 4 | topics = {'assert': 'The "assert" statement\n'
|
5 | 5 | '**********************\n'
|
|
633 | 633 | '\n'
|
634 | 634 | 'Evaluation of a literal yields an object of the given type '
|
635 | 635 | '(string,\n'
|
636 |
| - 'bytes, integer, floating point number, complex number) with ' |
| 636 | + 'bytes, integer, floating-point number, complex number) with ' |
637 | 637 | 'the given\n'
|
638 | 638 | 'value. The value may be approximated in the case of '
|
639 |
| - 'floating point\n' |
| 639 | + 'floating-point\n' |
640 | 640 | 'and imaginary (complex) literals. See section Literals for '
|
641 | 641 | 'details.\n'
|
642 | 642 | '\n'
|
|
1307 | 1307 | 'the first argument by the second. The numeric arguments are '
|
1308 | 1308 | 'first\n'
|
1309 | 1309 | 'converted to a common type. A zero right argument raises the\n'
|
1310 |
| - '"ZeroDivisionError" exception. The arguments may be floating ' |
1311 |
| - 'point\n' |
| 1310 | + '"ZeroDivisionError" exception. The arguments may be ' |
| 1311 | + 'floating-point\n' |
1312 | 1312 | 'numbers, e.g., "3.14%0.7" equals "0.34" (since "3.14" equals '
|
1313 | 1313 | '"4*0.7 +\n'
|
1314 | 1314 | '0.34".) The modulo operator always yields a result with the same '
|
|
1341 | 1341 | '"divmod()"\n'
|
1342 | 1342 | 'function are not defined for complex numbers. Instead, convert to '
|
1343 | 1343 | 'a\n'
|
1344 |
| - 'floating point number using the "abs()" function if appropriate.\n' |
| 1344 | + 'floating-point number using the "abs()" function if appropriate.\n' |
1345 | 1345 | '\n'
|
1346 | 1346 | 'The "+" (addition) operator yields the sum of its arguments. The\n'
|
1347 | 1347 | 'arguments must either both be numbers or both be sequences of the '
|
|
4474 | 4474 | 'converted to\n'
|
4475 | 4475 | ' complex;\n'
|
4476 | 4476 | '\n'
|
4477 |
| - '* otherwise, if either argument is a floating point number, ' |
| 4477 | + '* otherwise, if either argument is a floating-point number, ' |
4478 | 4478 | 'the other\n'
|
4479 | 4479 | ' is converted to floating point;\n'
|
4480 | 4480 | '\n'
|
|
6587 | 6587 | 'that expression. (To create an empty tuple, use an empty pair '
|
6588 | 6588 | 'of\n'
|
6589 | 6589 | 'parentheses: "()".)\n',
|
6590 |
| - 'floating': 'Floating point literals\n' |
| 6590 | + 'floating': 'Floating-point literals\n' |
6591 | 6591 | '***********************\n'
|
6592 | 6592 | '\n'
|
6593 |
| - 'Floating point literals are described by the following lexical\n' |
| 6593 | + 'Floating-point literals are described by the following lexical\n' |
6594 | 6594 | 'definitions:\n'
|
6595 | 6595 | '\n'
|
6596 | 6596 | ' floatnumber ::= pointfloat | exponentfloat\n'
|
|
6604 | 6604 | 'using\n'
|
6605 | 6605 | 'radix 10. For example, "077e010" is legal, and denotes the same '
|
6606 | 6606 | 'number\n'
|
6607 |
| - 'as "77e10". The allowed range of floating point literals is\n' |
| 6607 | + 'as "77e10". The allowed range of floating-point literals is\n' |
6608 | 6608 | 'implementation-dependent. As in integer literals, underscores '
|
6609 | 6609 | 'are\n'
|
6610 | 6610 | 'supported for digit grouping.\n'
|
6611 | 6611 | '\n'
|
6612 |
| - 'Some examples of floating point literals:\n' |
| 6612 | + 'Some examples of floating-point literals:\n' |
6613 | 6613 | '\n'
|
6614 | 6614 | ' 3.14 10. .001 1e100 3.14e-10 0e0 '
|
6615 | 6615 | '3.14_15_93\n'
|
|
6992 | 6992 | '\n'
|
6993 | 6993 | 'The "\'_\'" option signals the use of an underscore for a '
|
6994 | 6994 | 'thousands\n'
|
6995 |
| - 'separator for floating point presentation types and for ' |
| 6995 | + 'separator for floating-point presentation types and for ' |
6996 | 6996 | 'integer\n'
|
6997 | 6997 | 'presentation type "\'d\'". For integer presentation types '
|
6998 | 6998 | '"\'b\'", "\'o\'",\n'
|
|
7119 | 7119 | '\n'
|
7120 | 7120 | 'In addition to the above presentation types, integers can '
|
7121 | 7121 | 'be formatted\n'
|
7122 |
| - 'with the floating point presentation types listed below ' |
| 7122 | + 'with the floating-point presentation types listed below ' |
7123 | 7123 | '(except "\'n\'"\n'
|
7124 | 7124 | 'and "None"). When doing so, "float()" is used to convert '
|
7125 | 7125 | 'the integer\n'
|
7126 |
| - 'to a floating point number before formatting.\n' |
| 7126 | + 'to a floating-point number before formatting.\n' |
7127 | 7127 | '\n'
|
7128 | 7128 | 'The available presentation types for "float" and "Decimal" '
|
7129 | 7129 | 'values are:\n'
|
|
7981 | 7981 | '\n'
|
7982 | 7982 | 'An imaginary literal yields a complex number with a real part '
|
7983 | 7983 | 'of 0.0.\n'
|
7984 |
| - 'Complex numbers are represented as a pair of floating point ' |
| 7984 | + 'Complex numbers are represented as a pair of floating-point ' |
7985 | 7985 | 'numbers\n'
|
7986 | 7986 | 'and have the same restrictions on their range. To create a '
|
7987 | 7987 | 'complex\n'
|
7988 |
| - 'number with a nonzero real part, add a floating point number to ' |
| 7988 | + 'number with a nonzero real part, add a floating-point number to ' |
7989 | 7989 | 'it,\n'
|
7990 | 7990 | 'e.g., "(3+4j)". Some examples of imaginary literals:\n'
|
7991 | 7991 | '\n'
|
|
8782 | 8782 | 'numbers': 'Numeric literals\n'
|
8783 | 8783 | '****************\n'
|
8784 | 8784 | '\n'
|
8785 |
| - 'There are three types of numeric literals: integers, floating ' |
8786 |
| - 'point\n' |
| 8785 | + 'There are three types of numeric literals: integers, ' |
| 8786 | + 'floating-point\n' |
8787 | 8787 | 'numbers, and imaginary numbers. There are no complex literals\n'
|
8788 | 8788 | '(complex numbers can be formed by adding a real number and an\n'
|
8789 | 8789 | 'imaginary number).\n'
|
|
13855 | 13855 | '\n'
|
13856 | 13856 | '* A sign is shown only when the number is negative.\n'
|
13857 | 13857 | '\n'
|
13858 |
| - 'Python distinguishes between integers, floating point numbers, and\n' |
| 13858 | + 'Python distinguishes between integers, floating-point numbers, and\n' |
13859 | 13859 | 'complex numbers:\n'
|
13860 | 13860 | '\n'
|
13861 | 13861 | '\n'
|
@@ -13900,28 +13900,28 @@
|
13900 | 13900 | '"numbers.Real" ("float")\n'
|
13901 | 13901 | '------------------------\n'
|
13902 | 13902 | '\n'
|
13903 |
| - 'These represent machine-level double precision floating point ' |
| 13903 | + 'These represent machine-level double precision floating-point ' |
13904 | 13904 | 'numbers.\n'
|
13905 | 13905 | 'You are at the mercy of the underlying machine architecture (and C '
|
13906 | 13906 | 'or\n'
|
13907 | 13907 | 'Java implementation) for the accepted range and handling of '
|
13908 | 13908 | 'overflow.\n'
|
13909 |
| - 'Python does not support single-precision floating point numbers; ' |
| 13909 | + 'Python does not support single-precision floating-point numbers; ' |
13910 | 13910 | 'the\n'
|
13911 | 13911 | 'savings in processor and memory usage that are usually the reason '
|
13912 | 13912 | 'for\n'
|
13913 | 13913 | 'using these are dwarfed by the overhead of using objects in Python, '
|
13914 | 13914 | 'so\n'
|
13915 | 13915 | 'there is no reason to complicate the language with two kinds of\n'
|
13916 |
| - 'floating point numbers.\n' |
| 13916 | + 'floating-point numbers.\n' |
13917 | 13917 | '\n'
|
13918 | 13918 | '\n'
|
13919 | 13919 | '"numbers.Complex" ("complex")\n'
|
13920 | 13920 | '-----------------------------\n'
|
13921 | 13921 | '\n'
|
13922 | 13922 | 'These represent complex numbers as a pair of machine-level double\n'
|
13923 |
| - 'precision floating point numbers. The same caveats apply as for\n' |
13924 |
| - 'floating point numbers. The real and imaginary parts of a complex\n' |
| 13923 | + 'precision floating-point numbers. The same caveats apply as for\n' |
| 13924 | + 'floating-point numbers. The real and imaginary parts of a complex\n' |
13925 | 13925 | 'number "z" can be retrieved through the read-only attributes '
|
13926 | 13926 | '"z.real"\n'
|
13927 | 13927 | 'and "z.imag".\n'
|
@@ -14336,21 +14336,10 @@
|
14336 | 14336 | 'to\n'
|
14337 | 14337 | 'calling "f(C,1)" where "f" is the underlying function.\n'
|
14338 | 14338 | '\n'
|
14339 |
| - 'Note that the transformation from function object to instance ' |
14340 |
| - 'method\n' |
14341 |
| - 'object happens each time the attribute is retrieved from the ' |
14342 |
| - 'instance.\n' |
14343 |
| - 'In some cases, a fruitful optimization is to assign the attribute ' |
14344 |
| - 'to a\n' |
14345 |
| - 'local variable and call that local variable. Also notice that this\n' |
14346 |
| - 'transformation only happens for user-defined functions; other ' |
14347 |
| - 'callable\n' |
14348 |
| - 'objects (and all non-callable objects) are retrieved without\n' |
14349 |
| - 'transformation. It is also important to note that user-defined\n' |
14350 |
| - 'functions which are attributes of a class instance are not ' |
14351 |
| - 'converted\n' |
14352 |
| - 'to bound methods; this *only* happens when the function is an\n' |
14353 |
| - 'attribute of the class.\n' |
| 14339 | + 'It is important to note that user-defined functions which are\n' |
| 14340 | + 'attributes of a class instance are not converted to bound methods;\n' |
| 14341 | + 'this *only* happens when the function is an attribute of the ' |
| 14342 | + 'class.\n' |
14354 | 14343 | '\n'
|
14355 | 14344 | '\n'
|
14356 | 14345 | 'Generator functions\n'
|
|
16508 | 16497 | '\n'
|
16509 | 16498 | ' * The linspace recipe shows how to implement a lazy version of '
|
16510 | 16499 | 'range\n'
|
16511 |
| - ' suitable for floating point applications.\n', |
| 16500 | + ' suitable for floating-point applications.\n', |
16512 | 16501 | 'typesseq-mutable': 'Mutable Sequence Types\n'
|
16513 | 16502 | '**********************\n'
|
16514 | 16503 | '\n'
|
|
0 commit comments