On Mon, 2011-03-07 at 03:33 -0800, Victor Paraschiv wrote: > Hi everyone > i understood that the goal of Python is to make programing easy (of > course, powerful at the same time). > I think one way to do it is to eliminate unnecessary syntax > exceptions. One is the following: > for a complex number "z", to get the real and imaginary part, you > type: "z.real" and "z.imag". > At the same time, the most obvious way would be to call it like a > function, say: "real(z)", and, respectively, "imag(z)". Just like it > was changed from " print 'something' " , to " print('something') " . > > What do you think? There are more examples like this. > > > No. The real and imaginary parts of a number represented as attributes makes a lot of sense.
-- http://mail.python.org/mailman/listinfo/python-list