Re: changing to function what works like a function

2011-03-07 Thread Victor Paraschiv
Well, thank you all for being honest ☺   What I conclude is that you, the programmers, don’t really care about those who are new to programming: for most people out of the programming world, I think it is simpler to be able to write: real(z), just as you write: sin(z), abs(z), (z)^2 etc.

strange behaviour with while-else statement

2011-03-07 Thread Victor Paraschiv
Hi and please help me understand if it is a bug, or..,as someone said, there's a 'bug' in my understanding: (Python 3.2 (r32:88445, Feb 20 2011, 21:29:02) [MSC v.1500 32 bit (Intel)] on win32) (windows vista, the regular windows python installer) It's about the following code: while True: s

changing to function what works like a function

2011-03-07 Thread Victor Paraschiv
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