]> granicus.if.org Git - python/commit
Test the new semantics for setting and deleting a function's __dict__
authorBarry Warsaw <barry@python.org>
Tue, 14 Aug 2001 18:28:28 +0000 (18:28 +0000)
committerBarry Warsaw <barry@python.org>
Tue, 14 Aug 2001 18:28:28 +0000 (18:28 +0000)
commit033daa49eafae52f0b88085117e1bdf1cff2fe16
tree279b074252b613e8947fa88178b41913f7d419ae
parent142865cae1d68d1a597624af115abb60bd2bf11c
Test 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.
Lib/test/test_funcattrs.py