diff options
author | Barry Warsaw <barry@python.org> | 2001-08-14 18:23:58 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2001-08-14 18:23:58 (GMT) |
commit | 142865cae1d68d1a597624af115abb60bd2bf11c (patch) | |
tree | a3443cd47a8b8132bd150aaecb7fcff6e0365bd3 /Lib | |
parent | 5ef99a0bc56a3abfa6fdbbd47c10aef523833352 (diff) | |
download | cpython-142865cae1d68d1a597624af115abb60bd2bf11c.zip cpython-142865cae1d68d1a597624af115abb60bd2bf11c.tar.gz cpython-142865cae1d68d1a597624af115abb60bd2bf11c.tar.bz2 |
func_getattro(), func_setattro(): Implement the new semantics for
setting and deleting a function's __dict__ attribute. Deleting
it, or setting it to a non-dictionary result in a TypeError. Note
that getting it the first time magically initializes it to an
empty dict so that func.__dict__ will always appear to be a
dictionary (never None).
Closes SF bug #446645.
Diffstat (limited to 'Lib')
0 files changed, 0 insertions, 0 deletions