[Image-SIG] Will 1.1.7 be true-division safe ?
fredrik at pythonware.com
Fri May 29 11:45:58 CEST 2009
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 -- I don't know the exact
> version when it was introduced....
> Are you saying that 1.5.2 did not know about it and you "need" to
> support those ?
Yeah, but what I'm saying is that there's no point changing existing
code that's targeting the 2.x series -- the existing code already
works, a change would break compatibility with versions supported
today, and division is just one of a *huge* list of things that needs
to be changed to get a library like PIL running under 3.X. And this
is already fixed in the 3.X branch, of course.
> (I'm asking because in the mathematical community using true-division
> behavior is quite beneficial, even for Python 2.x )
"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).
More information about the Image-SIG