mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Python 3.13.0rc1
This commit is contained in:
parent
9c1c9188df
commit
e4a3e786a5
31 changed files with 307 additions and 100 deletions
|
@ -1,5 +1,5 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Autogenerated by Sphinx on Thu Jul 18 11:36:18 2024
|
||||
# Autogenerated by Sphinx on Wed Jul 31 20:10:37 2024
|
||||
# as part of the release process.
|
||||
topics = {'assert': 'The "assert" statement\n'
|
||||
'**********************\n'
|
||||
|
@ -633,10 +633,10 @@ topics = {'assert': 'The "assert" statement\n'
|
|||
'\n'
|
||||
'Evaluation of a literal yields an object of the given type '
|
||||
'(string,\n'
|
||||
'bytes, integer, floating point number, complex number) with '
|
||||
'bytes, integer, floating-point number, complex number) with '
|
||||
'the given\n'
|
||||
'value. The value may be approximated in the case of '
|
||||
'floating point\n'
|
||||
'floating-point\n'
|
||||
'and imaginary (complex) literals. See section Literals for '
|
||||
'details.\n'
|
||||
'\n'
|
||||
|
@ -1307,8 +1307,8 @@ topics = {'assert': 'The "assert" statement\n'
|
|||
'the first argument by the second. The numeric arguments are '
|
||||
'first\n'
|
||||
'converted to a common type. A zero right argument raises the\n'
|
||||
'"ZeroDivisionError" exception. The arguments may be floating '
|
||||
'point\n'
|
||||
'"ZeroDivisionError" exception. The arguments may be '
|
||||
'floating-point\n'
|
||||
'numbers, e.g., "3.14%0.7" equals "0.34" (since "3.14" equals '
|
||||
'"4*0.7 +\n'
|
||||
'0.34".) The modulo operator always yields a result with the same '
|
||||
|
@ -1341,7 +1341,7 @@ topics = {'assert': 'The "assert" statement\n'
|
|||
'"divmod()"\n'
|
||||
'function are not defined for complex numbers. Instead, convert to '
|
||||
'a\n'
|
||||
'floating point number using the "abs()" function if appropriate.\n'
|
||||
'floating-point number using the "abs()" function if appropriate.\n'
|
||||
'\n'
|
||||
'The "+" (addition) operator yields the sum of its arguments. The\n'
|
||||
'arguments must either both be numbers or both be sequences of the '
|
||||
|
@ -4474,7 +4474,7 @@ topics = {'assert': 'The "assert" statement\n'
|
|||
'converted to\n'
|
||||
' complex;\n'
|
||||
'\n'
|
||||
'* otherwise, if either argument is a floating point number, '
|
||||
'* otherwise, if either argument is a floating-point number, '
|
||||
'the other\n'
|
||||
' is converted to floating point;\n'
|
||||
'\n'
|
||||
|
@ -6587,10 +6587,10 @@ topics = {'assert': 'The "assert" statement\n'
|
|||
'that expression. (To create an empty tuple, use an empty pair '
|
||||
'of\n'
|
||||
'parentheses: "()".)\n',
|
||||
'floating': 'Floating point literals\n'
|
||||
'floating': 'Floating-point literals\n'
|
||||
'***********************\n'
|
||||
'\n'
|
||||
'Floating point literals are described by the following lexical\n'
|
||||
'Floating-point literals are described by the following lexical\n'
|
||||
'definitions:\n'
|
||||
'\n'
|
||||
' floatnumber ::= pointfloat | exponentfloat\n'
|
||||
|
@ -6604,12 +6604,12 @@ topics = {'assert': 'The "assert" statement\n'
|
|||
'using\n'
|
||||
'radix 10. For example, "077e010" is legal, and denotes the same '
|
||||
'number\n'
|
||||
'as "77e10". The allowed range of floating point literals is\n'
|
||||
'as "77e10". The allowed range of floating-point literals is\n'
|
||||
'implementation-dependent. As in integer literals, underscores '
|
||||
'are\n'
|
||||
'supported for digit grouping.\n'
|
||||
'\n'
|
||||
'Some examples of floating point literals:\n'
|
||||
'Some examples of floating-point literals:\n'
|
||||
'\n'
|
||||
' 3.14 10. .001 1e100 3.14e-10 0e0 '
|
||||
'3.14_15_93\n'
|
||||
|
@ -6992,7 +6992,7 @@ topics = {'assert': 'The "assert" statement\n'
|
|||
'\n'
|
||||
'The "\'_\'" option signals the use of an underscore for a '
|
||||
'thousands\n'
|
||||
'separator for floating point presentation types and for '
|
||||
'separator for floating-point presentation types and for '
|
||||
'integer\n'
|
||||
'presentation type "\'d\'". For integer presentation types '
|
||||
'"\'b\'", "\'o\'",\n'
|
||||
|
@ -7119,11 +7119,11 @@ topics = {'assert': 'The "assert" statement\n'
|
|||
'\n'
|
||||
'In addition to the above presentation types, integers can '
|
||||
'be formatted\n'
|
||||
'with the floating point presentation types listed below '
|
||||
'with the floating-point presentation types listed below '
|
||||
'(except "\'n\'"\n'
|
||||
'and "None"). When doing so, "float()" is used to convert '
|
||||
'the integer\n'
|
||||
'to a floating point number before formatting.\n'
|
||||
'to a floating-point number before formatting.\n'
|
||||
'\n'
|
||||
'The available presentation types for "float" and "Decimal" '
|
||||
'values are:\n'
|
||||
|
@ -7981,11 +7981,11 @@ topics = {'assert': 'The "assert" statement\n'
|
|||
'\n'
|
||||
'An imaginary literal yields a complex number with a real part '
|
||||
'of 0.0.\n'
|
||||
'Complex numbers are represented as a pair of floating point '
|
||||
'Complex numbers are represented as a pair of floating-point '
|
||||
'numbers\n'
|
||||
'and have the same restrictions on their range. To create a '
|
||||
'complex\n'
|
||||
'number with a nonzero real part, add a floating point number to '
|
||||
'number with a nonzero real part, add a floating-point number to '
|
||||
'it,\n'
|
||||
'e.g., "(3+4j)". Some examples of imaginary literals:\n'
|
||||
'\n'
|
||||
|
@ -8782,8 +8782,8 @@ topics = {'assert': 'The "assert" statement\n'
|
|||
'numbers': 'Numeric literals\n'
|
||||
'****************\n'
|
||||
'\n'
|
||||
'There are three types of numeric literals: integers, floating '
|
||||
'point\n'
|
||||
'There are three types of numeric literals: integers, '
|
||||
'floating-point\n'
|
||||
'numbers, and imaginary numbers. There are no complex literals\n'
|
||||
'(complex numbers can be formed by adding a real number and an\n'
|
||||
'imaginary number).\n'
|
||||
|
@ -13855,7 +13855,7 @@ topics = {'assert': 'The "assert" statement\n'
|
|||
'\n'
|
||||
'* A sign is shown only when the number is negative.\n'
|
||||
'\n'
|
||||
'Python distinguishes between integers, floating point numbers, and\n'
|
||||
'Python distinguishes between integers, floating-point numbers, and\n'
|
||||
'complex numbers:\n'
|
||||
'\n'
|
||||
'\n'
|
||||
|
@ -13900,28 +13900,28 @@ topics = {'assert': 'The "assert" statement\n'
|
|||
'"numbers.Real" ("float")\n'
|
||||
'------------------------\n'
|
||||
'\n'
|
||||
'These represent machine-level double precision floating point '
|
||||
'These represent machine-level double precision floating-point '
|
||||
'numbers.\n'
|
||||
'You are at the mercy of the underlying machine architecture (and C '
|
||||
'or\n'
|
||||
'Java implementation) for the accepted range and handling of '
|
||||
'overflow.\n'
|
||||
'Python does not support single-precision floating point numbers; '
|
||||
'Python does not support single-precision floating-point numbers; '
|
||||
'the\n'
|
||||
'savings in processor and memory usage that are usually the reason '
|
||||
'for\n'
|
||||
'using these are dwarfed by the overhead of using objects in Python, '
|
||||
'so\n'
|
||||
'there is no reason to complicate the language with two kinds of\n'
|
||||
'floating point numbers.\n'
|
||||
'floating-point numbers.\n'
|
||||
'\n'
|
||||
'\n'
|
||||
'"numbers.Complex" ("complex")\n'
|
||||
'-----------------------------\n'
|
||||
'\n'
|
||||
'These represent complex numbers as a pair of machine-level double\n'
|
||||
'precision floating point numbers. The same caveats apply as for\n'
|
||||
'floating point numbers. The real and imaginary parts of a complex\n'
|
||||
'precision floating-point numbers. The same caveats apply as for\n'
|
||||
'floating-point numbers. The real and imaginary parts of a complex\n'
|
||||
'number "z" can be retrieved through the read-only attributes '
|
||||
'"z.real"\n'
|
||||
'and "z.imag".\n'
|
||||
|
@ -14336,21 +14336,10 @@ topics = {'assert': 'The "assert" statement\n'
|
|||
'to\n'
|
||||
'calling "f(C,1)" where "f" is the underlying function.\n'
|
||||
'\n'
|
||||
'Note that the transformation from function object to instance '
|
||||
'method\n'
|
||||
'object happens each time the attribute is retrieved from the '
|
||||
'instance.\n'
|
||||
'In some cases, a fruitful optimization is to assign the attribute '
|
||||
'to a\n'
|
||||
'local variable and call that local variable. Also notice that this\n'
|
||||
'transformation only happens for user-defined functions; other '
|
||||
'callable\n'
|
||||
'objects (and all non-callable objects) are retrieved without\n'
|
||||
'transformation. It is also important to note that user-defined\n'
|
||||
'functions which are attributes of a class instance are not '
|
||||
'converted\n'
|
||||
'to bound methods; this *only* happens when the function is an\n'
|
||||
'attribute of the class.\n'
|
||||
'It is important to note that user-defined functions which are\n'
|
||||
'attributes of a class instance are not converted to bound methods;\n'
|
||||
'this *only* happens when the function is an attribute of the '
|
||||
'class.\n'
|
||||
'\n'
|
||||
'\n'
|
||||
'Generator functions\n'
|
||||
|
@ -16508,7 +16497,7 @@ topics = {'assert': 'The "assert" statement\n'
|
|||
'\n'
|
||||
' * The linspace recipe shows how to implement a lazy version of '
|
||||
'range\n'
|
||||
' suitable for floating point applications.\n',
|
||||
' suitable for floating-point applications.\n',
|
||||
'typesseq-mutable': 'Mutable Sequence Types\n'
|
||||
'**********************\n'
|
||||
'\n'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue