deleting it or getting an attribute before any have been set.
Previously, __dict__ could be None or {}, but now it must be a
dictionary (can never be None), and del'ing it is illegal.
Code changes to be made soon.
- func.__dict__ starts out as None until the first attribute is
assigned, at which time, it turns into a dictionary.
- del func.__dict__ sets it back to None
- It is legal to assign None to func.__dict__; this is equivalent to
del func.__dict__
Slight rewording to clarify the BDFL's position on special syntax.
more problems with method attributes as previously proposed.
Now, setting attributes on either bound or unbound methods will be
disabled for Python 2.1, but potentially re-enabled for Python 2.2
using a different mechanism. Getting method attributes is unchanged
for Python 2.1 (but may be elaborated in Python 2.2).