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 <[email protected]>
<http://bugs.python.org/issue29776>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com