]> granicus.if.org Git - python/commitdiff
Add a NEWS item about function attributes.
authorBarry Warsaw <barry@python.org>
Mon, 15 Jan 2001 20:43:18 +0000 (20:43 +0000)
committerBarry Warsaw <barry@python.org>
Mon, 15 Jan 2001 20:43:18 +0000 (20:43 +0000)
Misc/NEWS

index eb16282ddc231f3b675aac2227db6cc855adbb4f..40e22ebb233e67eb57da2468e0315a465e0d0588 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -3,6 +3,12 @@ What's New in Python 2.1 alpha 1?
 
 Core language, builtins, and interpreter
 
+- Functions and methods now support getting and setting arbitrarily
+  named attributes (PEP 232).  Functions have a new __dict__
+  (a.k.a. func_dict) which hold the function attributes.  Methods get
+  and set attributes on their underlying im_func.  It is a TypeError
+  to set an attribute on a bound method.
+
 - The xrange() object implementation has been improved so that
   xrange(sys.maxint) can be used on 64-bit platforms.  There's still a
   limitation that in this case len(xrange(sys.maxint)) can't be