Why prefix with an underscore?
Oleg Broytmann
phd at phd.pp.ru
Tue Feb 12 08:45:26 EST 2002
On Tue, Feb 12, 2002 at 08:24:41AM -0500, MDK wrote:
> I am wondering why I see some people's code with function definitions
> prefixed with an underscore.
>
> def _myfunct(foo):
> Does this mean something to the code or is it for some other reason?
from amodule import * does not import names with the underscore.
Oleg.
--
Oleg Broytmann http://phd.pp.ru/ phd at phd.pp.ru
Programmers don't die, they just GOSUB without RETURN.
More information about the Python-list
mailing list