[Image-SIG] Will 1.1.7 be true-division safe ?

Christopher Barker Chris.Barker at noaa.gov
Sat May 30 00:50:07 CEST 2009


Fredrik Lundh wrote:
> On Fri, May 29, 2009 at 10:07 AM, Sebastian Haase <seb.haase at 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.Barker at noaa.gov


More information about the Image-SIG mailing list