A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2001-February/013243.html below:

[Python-Dev] one more restriction for from __future__ import ...

[Python-Dev] one more restriction for from __future__ import ... [Python-Dev] one more restriction for from __future__ import ...Guido van Rossum guido@digicool.com
Tue, 27 Feb 2001 05:06:18 -0500
> I would like to add another restriction:
> 
>     A future_statement must appear on a line by itself.  It is not
>     legal to combine a future_statement without any other statement
>     using a semicolon.
> 
> It would be a bear to implement error handling for cases like this:
> 
> from __future__ import a; import b; from __future__ import c

Really?!?  Why?  Isn't it straightforward to check that everything you
encounter in a left-to-right leaf scan of the parse tree is either a
future statement or a docstring until you encounter a non-future?

--Guido van Rossum (home page: http://www.python.org/~guido/)



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4