A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2008-June/080414.html below:

[Python-Dev] Python FAQ: Why doesn't Python have a "with" statement?

[Python-Dev] Python FAQ: Why doesn't Python have a "with" statement? [Python-Dev] Python FAQ: Why doesn't Python have a "with" statement?Cesare Di Mauro cesare at pronto.it
Sun Jun 15 08:16:38 CEST 2008
In data 15 giugno 2008 alle ore 02:24:43, Greg Ewing <greg.ewing at canterbury.ac.nz> ha scritto:

> ...and which should *not* be used in most cases, for
> the same reason.
>
> All those tutorials that start out with 'from something
> import *' are doing a lot of harm to the impressionable
> minds of new programmers, IMO.

OK, but nobody have questioned about removing 'from something import *' just to help noobs...
That's because the instruction *can* be useful in *some* (hopely limited, but existent) contexts.
It's a matter of programmer choises.

Anyway (and dropping my proposal), I think that the FAQ needs to be changed to advice that the
'with' keyword in Python makes a completely different kind of work.

Cesare
More information about the Python-Dev mailing list

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