Fredrik Lundh wrote:
On Fri, May 29, 2009 at 10:07 AM, Sebastian Haase <seb.ha...@gmail.com> wrote:
I was only asking for the use of the '//' operator, which is "at
least" backwards compatible to Python 2.2
"True division" can also be spelled "float(x) / y", and that spelling
works in all Python versions (and is used in plenty of places in PIL).
yes, but he asking for the // operator, which I think is spelled:
math.floor(x / y)
except that that does a float conversion for integer operators.
But if want to support 1.5, then you want to support 1.5.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
chris.bar...@noaa.gov
_______________________________________________
Image-SIG maillist - Image-SIG@python.org
http://mail.python.org/mailman/listinfo/image-sig