import from future

Marc 'BlackJack' Rintsch bj_666 at gmx.net
Mon Jan 29 07:55:18 CET 2007


In <1170049392.204148.54430 at a34g2000cwb.googlegroups.com>, Dan Bishop
wrote:

> Now that nested_scopes and generators are no longer optional, the only 
> thing left is "from __future__ import division", which makes the "/" 
> operator on integers give the same result as for floats.

>From 2.5 on we have `with_statement`::

  >>> __future__.with_statement
  _Feature((2, 5, 0, 'alpha', 1), (2, 6, 0, 'alpha', 0), 32768)

Ciao,
	Marc 'BlackJack' Rintsch



More information about the Python-list mailing list