Fun with numbers - dammit, but I want a cast!
Erik Max Francis
max at alcyone.com
Mon Aug 11 14:12:32 EDT 2003
Graham Nicholls wrote:
> Thats what I wanted to do, but was sure I'd read that python didn't
> have
> casts, and that _looks_ like a cast to me!
It's a function call, not a conversion. Even in C++, conversion by
constructor is not considered a cast. A cast would be:
xframe/static_cast<float>(image_x)
and there is no analogous structure to this in Python.
--
Erik Max Francis && max at alcyone.com && http://www.alcyone.com/max/
__ San Jose, CA, USA && 37 20 N 121 53 W && &tSftDotIotE
/ \ Nobody can reach me, nobody can touch me; it's a wonderful feeling.
\__/ Aaliyah
More information about the Python-list
mailing list