Preventing execution of a method

Emanuele D'Arrigo manu3d at
Thu Dec 11 17:07:45 CET 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

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


More information about the Python-list mailing list