mirror of https://github.com/python/cpython
Rename 'getset' to 'property'.
This commit is contained in:
parent
e56ed9ba15
commit
8d7234d1dc
10
Misc/NEWS
10
Misc/NEWS
|
@ -64,11 +64,11 @@ Core
|
||||||
"cooperative super calls" in a multiple inheritance setting. For an
|
"cooperative super calls" in a multiple inheritance setting. For an
|
||||||
explanation, see http://www.python.org/2.2/descrintro.html#cooperation
|
explanation, see http://www.python.org/2.2/descrintro.html#cooperation
|
||||||
|
|
||||||
- A new built-in type, getset, has been added. This enables the
|
- A new built-in type, property, has been added. This enables the
|
||||||
creation of "computed attributes". Such attributes are implemented
|
creation of "properties". These are attributes implemented by
|
||||||
by getter and setter functions (or only one of these for read-only
|
getter and setter functions (or only one of these for read-only or
|
||||||
or write-only attributes), without the need to override
|
write-only attributes), without the need to override __getattr__.
|
||||||
__getattr__. See http://www.python.org/2.2/descrintro.html#getset
|
See http://www.python.org/2.2/descrintro.html#property
|
||||||
|
|
||||||
- The syntax of floating-point and imaginary literals has been
|
- The syntax of floating-point and imaginary literals has been
|
||||||
liberalized, to allow leading zeroes. Examples of literals now
|
liberalized, to allow leading zeroes. Examples of literals now
|
||||||
|
|
Loading…
Reference in New Issue