◐ Shell
clean mode source ↗

Message 173262 - Python tracker

Indeed, -1j is not a literal:

>>> dis.dis(lambda :-1j.real)
  1           0 LOAD_CONST               0 (1j)
              3 LOAD_ATTR                0 (real)
              6 UNARY_NEGATIVE      
              7 RETURN_VALUE