[Python-checkins] CVS: python/dist/src/Misc NEWS,1.253,1.254
Tim Peters
tim_one@users.sourceforge.net
Mon, 24 Sep 2001 14:17:52 -0700
Update of /cvsroot/python/python/dist/src/Misc
In directory usw-pr-cvs1:/tmp/cvs-serv32355/python/Misc
Modified Files:
NEWS
Log Message:
Make properties discoverable from Python:
- property() now takes 4 keyword arguments: fget, fset, fdel, doc.
Note that the real purpose of the 'f' prefix is to make fdel fit in
('del' is a keyword, so can't used as a keyword argument name).
- These map to visible readonly attributes 'fget', 'fset', 'fdel',
and '__doc__' in the property object.
- fget/fset/fdel weren't discoverable from Python before.
- __doc__ is new, and allows to associate a docstring with a property.
Index: NEWS
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v
retrieving revision 1.253
retrieving revision 1.254
diff -C2 -d -r1.253 -r1.254
*** NEWS 2001/09/24 04:28:10 1.253
--- NEWS 2001/09/24 21:17:50 1.254
***************
*** 4,7 ****
--- 4,13 ----
Core
+ - property() now takes 4 keyword arguments: fget, fset, fdel and doc.
+ These map to readonly attributes 'fget', 'fset', 'fdel', and '__doc__'
+ in the constructed property object. fget, fset and fdel weren't
+ discoverable from Python in 2.2a3. __doc__ is new, and allows to
+ associate a docstring with a property.
+
- file.writelines() now accepts any iterable object producing strings.