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-March/013324.html below:

an alternative to the __future__ syntax

[Python-Dev] PEP 236: an alternative to the __future__ syntax [Python-Dev] PEP 236: an alternative to the __future__ syntaxFredrik Lundh fredrik@pythonware.com
Thu, 1 Mar 2001 12:57:08 +0100
Guido wrote:
> There's one downside to the "directive" syntax: other tools that parse
> Python will have to be adapted.  The __future__ hack doesn't need
> that.

also:

- "from __future__" gives a clear indication that you're using
  a non-standard feature.  "directive" is too generic.

- everyone knows how to mentally parse from-import state-
  ments, and that they may have side effects.  nobody knows
  what "directive" does.

- pragmas suck.  we need much more discussion (and calender
  time) before adding a pragma-like directive to Python.

- "from __future__" makes me smile.  "directive" doesn't.

-1, for now.

Cheers /F




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