[IronPython] private functions within a module

Michael Foord fuzzyman at voidspace.org.uk
Mon Jun 15 20:34:22 CEST 2009


Elise Langham (Elanit) wrote:
>
> How can i define some functions within a module as private ?
>
> Do i need to make them part of a static class ? or is this this not 
> possible?
>

The convention is to start their names with an underscore. That will 
tell other developers not to call them directly.

Michael

> Thanks,
>
>  
>
>    Elise
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>   


-- 
http://www.ironpythoninaction.com/
http://www.voidspace.org.uk/blog





More information about the Ironpython-users mailing list