Eric Smith <e...@trueblade.com> added the comment: The precedence doesn't work the way you think it does. Your example with the intermediate variable is the same as:
>>> ((0+1j)*(0+1j)).imag 0.0 >>> ((0+1j)*(0+1j)).real -1.0 Note the extra level of parens so that .imag and .real are applied to the result of the multiplication. ---------- nosy: +eric.smith resolution: -> invalid stage: -> committed/rejected status: open -> closed _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue9855> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com