|
From: BBands <bb...@ya...> - 2005-09-27 15:05:57
|
--- Petr Mikulik <mi...@ph...> wrote:
> Python works like gnuplot:
>
> Python 2.3.4 (#1, Feb 7 2005, 15:50:45)
> [GCC 3.3.4 (pre 3.3.5 20040809)] on linux2
> Type "help", "copyright", "credits" or "license" for
> more information.
> >>> print 5/2
> 2
> >>> print 5//2
> 2
It does now, but look at this:
C:\Python24>python
Python 2.4 (#60, Nov 30 2004, 11:49:19) [MSC v.1310 32
bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for
more information.
>>> 5/2
2
>>> 5//2
2
>>> from __future__ import division
>>> 5/2
2.5
>>> 5//2
2
>>>
This behavior will become the default with 3.0.
jab
John Bollinger, CFA, CMT
www.BollingerBands.com
If you advance far enough, you arrive at the beginning.
__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com
|