Amaury Forgeot d'Arc added the comment:
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
----------
nosy: +amaury.forgeotdarc
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue9011>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com