[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