[New-bugs-announce] [issue29776] Modernize properties
Serhiy Storchaka
report at bugs.python.org
Thu Mar 9 12:10:02 EST 2017
New submission from Serhiy Storchaka:
Following PR updates Python sources to use new shiny syntax for properties. It replaces the old code
def _foo(self):
...
def _set_foo(self, value):
...
foo = property(_foo, _set_foo)
with the new code
@property
def foo(self):
...
@foo.setter
def foo(self, value):
...
New syntax was added in Python 2.4.
----------
components: Library (Lib)
messages: 289309
nosy: serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: Modernize properties
type: enhancement
versions: Python 3.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29776>
_______________________________________
More information about the New-bugs-announce
mailing list