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/2000-June/004435.html below:

[Python-Dev] Protecting __name__ &c.

[Python-Dev] Protecting __name__ &c. [Python-Dev] Protecting __name__ &c.Moshe Zadka Moshe Zadka <moshez@math.huji.ac.il>
Sat, 3 Jun 2000 11:11:45 +0300 (IDT)
On Fri, 2 Jun 2000, Ka-Ping Yee wrote:

> Would it be too much trouble to prevent replacing
> double-underscore attributes like __name__ and __file__?

Well, special casing seems like a bad idea on the face of it. Where does
it stop? The correct way to "solve" this, is to add declarations to
Python, including "constant" declaration, and then saying that __name__
and __file__ are "implicitly declared" constants.

please-scatter-IMHOs-generously-throughtout-the-mail-ly y'rs, Z.
--
Moshe Zadka <moshez@math.huji.ac.il>
http://www.oreilly.com/news/prescod_0300.html
http://www.linux.org.il -- we put the penguin in .com




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