Preventing execution of a method

Emanuele D'Arrigo manu3d at gmail.com
Thu Dec 11 11:07:45 EST 2008


Sorry if I'm a bit thick here...

can any of the esteemed participant in this noble newsgroup confirm
that is not possible to prevent a python module's code from executing
the methods of another module?

I.e. if I have a class with two methods, doSomethingSafe() and
doSomethingDangerous(), is there a way to prevent another module from
executing doSomethingDangerous() but allow the execution of
doSomethingSafe()?

My understanding is that in python this is not possible. Can you
confirm?

Manu



More information about the Python-list mailing list