[issue1416] @prop.setter decorators
Guido van Rossum
report at bugs.python.org
Sat Nov 10 22:16:57 CET 2007
Guido van Rossum added the comment:
propset3.diff removes the hack that makes the deleter equal to the
setter when no separate deleter has been specified. If you want a
single method to be used as setter and deleter, write this:
@foo.setter
@foo.deleter
def foo(self, value=None): ...
Added file: http://bugs.python.org/file8728/propset3.diff
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1416>
__________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: propset3.diff
Type: text/x-patch
Size: 3578 bytes
Desc: not available
Url : http://mail.python.org/pipermail/python-bugs-list/attachments/20071110/3d306ba9/attachment.bin
More information about the Python-bugs-list
mailing list