Greg Ewing <greg@cosc.canterbury.ac.nz> writes: > Do we want to be able to define and/or override > get/set/del methods individually? As opposed to? The rationale for introducing the extended function syntax is that extended functions should be introduced by means of a definition, not of an assignment. For the same reason, I think properties should not be introduced by means of an assignment. I can't picture how *not* to define them individually, unless you are thinking of something like property foo: def get(self): ... def set(self, value): ... > Whatever the mechanism, here's my current thoughts > on a property syntax: > > def foo.get(self): > ... > > def foo.set(self, x): > ... > > def foo.del(self): > ... So would you also be in favour of defining static methods through def static foo(): ... ? Regards, Martin
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