[Bf-committers] Re: [Bf-blender-cvs] CVS commit: blender/source/blender/src interface.c

Tom M letterrip at gmail.com
Mon Dec 4 09:09:23 CET 2006


does 3.0/2.0 or 3.0/2 give the float result with current code (as
expected with python) if so i don't really see a big deal, especially
if the result is displayed somewhere...

LetterRip

> could we make the new/future style python division mode default there?
> it makes the / operator a float op, and if you want int division you do //
>
> In [1]: from __future__ import division
>
> In [2]: 3 / 2
> Out[2]: 1.5
>
> In [3]: 3 // 2
> Out[3]: 1
>
> i think that is what makes sense for people and especially little
> scripting in buttons - i guess is kept the old way in Py 2 only for bw
> compat reasons and that Py 3000 will default to that. i dont know how to
> initialize that context in c for the numbuts but probably it is
> straightforward enough..
>
> ~Toni
>
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at projects.blender.org
> http://projects.blender.org/mailman/listinfo/bf-committers
>


More information about the Bf-committers mailing list