| Server IP : 121.121.20.254 / Your IP : 216.73.216.202 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Python315/Lib/__pycache__/ |
Upload File : |
R
>lqj�/ c � � Q s ] QHGsGs , Q
Ns Q Q\Q5 s Q Q\2 s\O \2 Q
Q\2 s \ O \
2 Q Q\ 2 s Q Q\2 s\O \
2 P! )z~Abstract Base Classes (ABCs) for numbers, according to PEP 3141.
TODO: Fill out more detailed documentation on the operators.)�ABCMeta�abstractmethod�Number�Complex�Real�Rational�Integralc �$ � \ sQ s]%sQsQsPsQsP! )r z�All numbers inherit from this class.
If you just want to check if an argument x is a number, without
caring what kind, use isinstance(x, Number).
� )�__name__�
__module__�__qualname__�__firstlineno__�__doc__� __slots__�__hash__�__static_attributes__r � �C:\Python315\\Lib\numbers.pyr r % s � ��
�I� �Hr )� metaclassc �P ` � \ sQ s]9s n QsQs\Q 2 sQ s\ \Q 2 2 s
\ \Q 2 2 s\Q 2 s\Q 2 s
\Q 2 s\Q 2 sQ
sQ s\Q 2 s\Q
2 s\Q 2 s\Q 2 s\Q 2 s\Q 2 s\Q 2 s\Q 2 s\Q 2 sQsU sP! )r aN Complex defines the operations that work on the builtin complex type.
In short, those are: a conversion to complex, .real, .imag, +, -,
*, /, **, abs(), .conjugate, ==, and !=.
If it is given heterogeneous arguments, and doesn't have special
knowledge about them, it should fall back to the builtin complex
type as described below.
c � � P! )z<Return a builtin complex instance. Called for complex(self).r ��selfs &r �__complex__�Complex.__complex__F s � r c � � U ] 6g ! )z)True if self != 0. Called for bool(self).r r s &r �__bool__�Complex.__bool__J s � ��q�y�r c � � [ g)zHRetrieve the real component of this number.
This should subclass Real.
��NotImplementedErrorr s &r �real�Complex.realN �
� � "�!r c � � [ g)zMRetrieve the imaginary component of this number.
This should subclass Real.
r r s &r �imag�Complex.imagW r# r c � � [ g)zself + otherr �r �others &&r �__add__�Complex.__add__` �
� � "�!r c � � [ g)zother + selfr r( s &&r �__radd__�Complex.__radd__e r, r c � � [ g)z-selfr r s &r �__neg__�Complex.__neg__j r, r c � � [ g)z+selfr r s &r �__pos__�Complex.__pos__o r, r c � � V'