[Python-Dev] RE: Nested scopes resolution -- you can breathe
Mikael Olofsson
mikael at isy.liu.se
Fri Feb 23 05:21:06 EST 2001
On 23-Feb-05 Fredrik Lundh wrote:
> Mikael Olofsson wrote:
> > from __future__ import *
>
> I wouldn't do that: it imports both "warnings_are_errors" and
> "from_import_star_is_evil", and we've found that it's impossible
> to catch ParadoxErrors in a platform independent way.
Naturally. More seriously though, I like
from __future__ import something
as an idiom. It gives us a clear reusable syntax to incorporate new
features before they are included in the standard distribution. It is
not obvious to me that the proposed alternative
import __something__
is a way to incorporate something new.
Perhaps Py3k should allow
from __past__ import something
to give us a way to keep some functionality from 2.* that has been
(will be) changed in Py3k.
explicit-is-better-than-implicit-ly y'rs
/Mikael
-----------------------------------------------------------------------
E-Mail: Mikael Olofsson <mikael at isy.liu.se>
WWW: http://www.dtr.isy.liu.se/dtr/staff/mikael
Phone: +46 - (0)13 - 28 1343
Telefax: +46 - (0)13 - 28 1339
Date: 23-Feb-01
Time: 11:07:11
/"\
\ / ASCII Ribbon Campaign
X Against HTML Mail
/ \
This message was sent by XF-Mail.
-----------------------------------------------------------------------
More information about the Python-list
mailing list