
July 17th, 2001, 05:00 PM
|
 |
Big Endian
|
|
Join Date: May 2001
Location: Fly-over country
|
|
I was reading my Core Python Programming book today and came across the following section. Again, I'm uncertain of it's relevance but thought it might help:
Quote:
Preventing Attribute Import
If you do not want module attributes imported when a module is imported with "from module import *", prepend the underscore (_) to their names. Names in the imported module that begin with an underscore (_) are not imported. This minimal level of data hiding does not apply if the entire module is imported.
.
.
.
CORE STYLE: Avoid underscores as leading identifier character
Because of the underscore usage in Python system, interpreter, and built-in identifiers, we recommend that the programmer avoid the use of beginning variable names with the underscore |
|