New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@prop.setter decorators #45757
Comments
Here's an implementation of the idea I floated recently on python-dev @property
def foo(self): ...
@foo.setter
def foo(self, value=None): ... There are also .getter and .deleter descriptors. This includes the hack I intend to check this into 2.6 and 3.0 unless there is a huge cry of |
Looks great (regardless of how this is implemented). I always hated this |
propset2.diff is a new version that improves upon the heuristic for This diff is relative to the 2.6 trunk; it applies to 3.0 too. |
propset3.diff removes the hack that makes the deleter equal to the @foo.setter
@foo.deleter
def foo(self, value=None): ... |
Fixed a typo: +PyDoc_STRVAR(getter_doc, |
Checked into trunk as revision 58929. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: