What's with the underscore(_) ????

Adam Hupp hupp at upl.cs.wisc.edu
Fri Dec 6 03:25:02 EST 2002


On Thu, 05 Dec 2002 21:23:33 +0800, Alfredo P. Ricafort wrote:

> Please explain to me why the 2nd print would fail with an error
> 'NameError: name '_' is not defined'.

Names beginning with an underscore are not considered public and are not
imported automatically.  Try 

from s1 import  _

-Adam



More information about the Python-list mailing list