recommended __future__ imports for 2.5?
Nick Craig-Wood
nick at craig-wood.com
Tue Nov 25 04:30:40 EST 2008
Dennis Lee Bieber <wlfraed at ix.netcom.com> wrote:
> On Mon, 24 Nov 2008 13:36:32 -0700, Joe Strout <joe at strout.net>
> declaimed the following in comp.lang.python:
>
> > older versions of Python with "from __future__ import division". Once
> > I stumbled across that, I was able to find the relevant PEP (#238) and
> > read more about it. So now that import has become part of our
> > standard boilerplate at the top of each file, along with the path to
> > Python and the UTF-8 encoding declaration.
> >
> I'm still waiting to hear that
>
> from __past__ import division
>
> will become a reality...
;-)
I think that is called using // instead of / which works without any
from __future__ import from python 2.2 onwards.
--
Nick Craig-Wood <nick at craig-wood.com> -- http://www.craig-wood.com/nick
More information about the Python-list
mailing list