Sorry, I wasn't clear enough. In python one can write code like this:
def _setspam(self, value):
self._spam = value
geteggs = staticmethod(geteggs)
spam = property(_getspam, _setspam)
if __name__ == "__main__":
f = Food()
f.spam = "spam"
I was wondering if it is possible to get the same behavior under jython. But
then this is more of a python question than a jython one.
>From: Ype Kingma <ykingma@...>
>To: "Rodrigo B. de Oliveira" <rodrigobamboo@...>, "jython-users"
>Subject: Re: [Jython-users] staticmethod and property
>Date: Tue, 22 Oct 2002 20:01:56 +0200
>On Tuesday 22 October 2002 15:32, Rodrigo B. de Oliveira wrote:
> > Is there a way to emulate those with jython?
>Static method: function defined at module scope,
>call the java code for properties directly from jython.
MSN Hotmail, o maior webmail do Brasil. http://www.hotmail.com