Greg Ewing wrote: > Oren Tirosh <oren-py-d@hishome.net>: > > >>If the attributes of a property object are made assignable the following >>code will work: >> >> prop = property() >> >> def prop.fget(self): >> ... >> >> def prop.fset(self, value): >> ... > > > I'm not sure I like the need for the prop = property() part. > It exposes too much of the implementation for my taste. What happened to Guido's proposal? class Foo(object): property myprop: """A computed property on Foo objects.""" def __get__(self): return ... def __set__(self): ... def __delete__(self): ... (see http://mail.python.org/pipermail/python-dev/2002-February/020081.html) Bye, Walter Dörwald
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4