[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyKDE] C++ conversion to python, using sip
From:       Frederick Polgardy Jr <polgardy () bodacion ! com>
Date:       2003-06-28 20:46:32
[Download RAW message or body]

On Saturday 28 June 2003 12:53, Jonathan Gardner wrote:
> Python has been going in the way of merging the int
> and float types closer together than in C/C++ (For instance, 1/2 may
> equal 0.5 in the future)

Yes, it's already under the "What's new in Python 2.2" section of the docs, 
in the section entitled "Changing the Division Operator."  (In my docs, 
it's .../whatsnew/node7.html.)  (1 / 2) will equal 0.5 in Python 3.0 by 
default, and with 'from __future__ import division' until then.  From 2.2 
on, the 'floor division' operator (1 // 2) gets you good old C-style 
integer division.

_______________________________________________
PyKDE mailing list    PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic