Interesting syntax point, however the:
(5).imag
does work as does
int(5).imag
I thought it is because the constant could be floating point number, and it makes sense that:
5.4.imag
is not valid syntax, but actually it is accepted by interpreter.
pyTony
pyMod
5,359 posts since Apr 2010
Reputation Points: 782
Solved Threads: 852