changing to function what works like a function

Jean-Michel Pichavant jeanmichel at sequans.com
Mon Mar 7 13:57:50 EST 2011


Victor Paraschiv wrote:
>
> 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.
>
>
Python decided to change into objects what works like an object. In that 
regard, the img and real part are 2 attributes of the complex object.
If you're not familiar with object oriented programming it's expected 
you get confused.

Remember that abs() does not define a complex, img and real do.


JM





More information about the Python-list mailing list