can someone tell me about...

Moshe Zadka moshez at math.huji.ac.il
Wed Apr 19 06:48:24 CEST 2000


On Tue, 18 Apr 2000, Kia Arab wrote:

> variable names that start an underscore "_".
> 
> Interactively, python will recognize a variable name that begins with
> one underscore (_myVar). The variable naming rules even say that is
> acceptable.
> 
> However, when I try to use it in a module, it bombs. 

Please give an example of the "bombinh". I suspect you do 
"from module import *". 

Solutions:

a) don't do it
b) read the language ref. about from module import *, and names that begin
with underscore.
--
Moshe Zadka <mzadka at geocities.com>. 
http://www.oreilly.com/news/prescod_0300.html
http://www.linux.org.il -- we put the penguin in .com





More information about the Python-list mailing list