[EMAIL PROTECTED] wrote:
> Andy> This a mm.py module:
> Andy> _all__=('getsize1',)
>
> Andy> size=85
>
> Andy> def getsize1():
> Andy> return size
>
> Andy> def getsize2():
> Andy> return 2*size
>
>
> Andy> I do not know why but getsize2 is not kept pr
Andy> This a mm.py module:
Andy> _all__=('getsize1',)
Andy> size=85
Andy> def getsize1():
Andy> return size
Andy> def getsize2():
Andy> return 2*size
Andy> I do not know why but getsize2 is not kept priviate?
That's not what __all__ is used for. Try
This a mm.py module:
_all__=('getsize1',)
size=85
def getsize1():
return size
def getsize2():
return 2*size
I do not know why but getsize2 is not kept priviate?
$ python
Python 2.4.2 (#67, Sep 28 2005, 12:41:11) [MSC v.1310 32 bit (Intel)] on
win32
Type "help", "copyright", "credi