[Baypiggies] tip for moving to Python 3

Aahz aahz at pythoncraft.com
Sat Aug 28 00:51:42 CEST 2010

On Fri, Aug 27, 2010, Keith Dart wrote:
> FYI, I started putting the following in my new Python 2.x code:
> from __future__ import absolute_import
> from __future__ import print_function
> from __future__ import unicode_literals

as long as you're doing that, you should probably go whole-hog:

from __future__ import division
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"...if I were on life-support, I'd rather have it run by a Gameboy than a
Windows box."  --Cliff Wells

More information about the Baypiggies mailing list