[Tutor] What is in future?

Kirby Urner urnerk@qwest.net
Sat, 20 Oct 2001 14:09:56 -0700

>However, I'm not sure if "from __future__ import division"
>can be set up as a default using sitecustomize.py.

Apparently this doesn't work.  I gave it a try.

Note that nested_scopes is the default in the latest
2.2 -- no need to import from __future__ to get that.


  Python 2.2a4 (#24, Sep 27 2001, 21:44:09) [MSC 32 bit (Intel)] on win32
  Type "copyright", "credits" or "license" for more information.
  IDLE 0.8 -- press F1 for help

  >>> def f(x):
         y = 4
         g = lambda x:  x+y
         return g(x)

  >>> f(3)