How to make a module function visible only inside the module?

beginner zyzhu2000 at gmail.com
Sun Aug 19 12:35:42 EDT 2007


On Aug 19, 7:45 am, Bjoern Schliessmann <usenet-
mail-0306.20.chr0n... at spamgourmet.com> wrote:
> beginner wrote:
> > Thanks a lot. I was using two underscores, __module_method() as my
> > static method convention, and then I had some problems calling
> > them from inside class methods.
>
> *Please* do yourself and other people that sometime may have to read
> your code a favor and write code at least loosely oriented to
> PEP 8.
>
> BTW, Python has no "static methods" at module level. And I suppose
> what you call "class methods" actually aren't.
>
> Regards,
>
> Björn
>
> --
> BOFH excuse #183:
>
> filesystem not big enough for Jumbo Kernel Patch

I just started learning the language. I wasn't aware of the PEP.




More information about the Python-list mailing list