diff options
author | Barry Warsaw <barry@python.org> | 2001-01-15 20:43:18 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2001-01-15 20:43:18 (GMT) |
commit | 573b54125d8bc2e78b161ac45ef223a475f9f073 (patch) | |
tree | 4122bfe09344421b15ae6f9685190f98bc4304b2 | |
parent | d6a9e84c8193076e776a1b419148f3043e2f6330 (diff) | |
download | cpython-573b54125d8bc2e78b161ac45ef223a475f9f073.zip cpython-573b54125d8bc2e78b161ac45ef223a475f9f073.tar.gz cpython-573b54125d8bc2e78b161ac45ef223a475f9f073.tar.bz2 |
Add a NEWS item about function attributes.
-rw-r--r-- | Misc/NEWS | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 |