You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For complex floating-point operands, special cases must be handled as if the operation is implemented as the logical AND of ``bool(real(self))`` and ``bool(imag(self))``.
243
243
244
+
**Lazy implementations**
245
+
246
+
The Python language requires the return value to be of type ``bool``. Lazy implementations are therefore not able to return any kind of lazy/delayed object here and should raise a ``ValueError`` instead.
- If ``self`` is ``-infinity``, the result is ``-infinity + 0j``.
277
281
- If ``self`` is a finite number, the result is ``self + 0j``.
278
282
283
+
**Lazy implementations**
284
+
285
+
The Python language requires the return value to be of type ``complex``. Lazy implementations are therefore not able to return any kind of lazy/delayed object here and should raise a ``ValueError`` instead.
The Python language requires the return value to be of type ``float``. Lazy implementations are therefore not able to return any kind of lazy/delayed object here and should raise a ``ValueError`` instead.
a Python ``int`` object representing the single element of the array instance.
559
+
560
+
Notes
561
+
-----
562
+
563
+
**Lazy implementations**
564
+
565
+
The Python language requires the return value to be of type ``int``. Lazy implementations are therefore not able to return any kind of lazy/delayed object here and should raise a ``ValueError`` instead.
- If ``self`` is either ``+infinity`` or ``-infinity``, raise ``OverflowError``.
583
602
- If ``self`` is ``NaN``, raise ``ValueError``.
584
603
604
+
Notes
605
+
-----
606
+
607
+
**Lazy implementations**
608
+
609
+
The Python language requires the return value to be of type ``int``. Lazy implementations are therefore not able to return any kind of lazy/delayed object here and should raise a ``ValueError`` instead.
0 commit comments