New module for method level access modifiers
J. Clifford Dyer
jcd at sdf.lonestar.org
Tue Oct 23 15:27:19 EDT 2007
On Tue, Oct 23, 2007 at 08:54:52PM +0200, Bruno Desthuilliers wrote regarding Re: New module for method level access modifiers:
>
> TimeHorse a ?crit :
> > I have started work on a new module that would allow the decoration of
> > class methods to restrict access based on calling context.
> > Specifically, I have created 3 decorators named public, private and
> > protected.
>
> Lord have mercy.
>
I invented a new decorator too. It gets rid of many of the limitations of python, including duck typing and hideously flat namespaces. It's used kind of like this:
@java
def public_com.sun.lord.have.mercy():
pass
Implementation forthcoming...
More information about the Python-list
mailing list