diff options
| author | Barry Warsaw <barry@python.org> | 2001-08-14 18:28:28 (GMT) |
|---|---|---|
| committer | Barry Warsaw <barry@python.org> | 2001-08-14 18:28:28 (GMT) |
| commit | 033daa49eafae52f0b88085117e1bdf1cff2fe16 (patch) | |
| tree | 279b074252b613e8947fa88178b41913f7d419ae /Tools/compiler/doc/astdocgen.py | |
| parent | 142865cae1d68d1a597624af115abb60bd2bf11c (diff) | |
| download | cpython-033daa49eafae52f0b88085117e1bdf1cff2fe16.zip cpython-033daa49eafae52f0b88085117e1bdf1cff2fe16.tar.gz cpython-033daa49eafae52f0b88085117e1bdf1cff2fe16.tar.bz2 | |
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.
Diffstat (limited to 'Tools/compiler/doc/astdocgen.py')
0 files changed, 0 insertions, 0 deletions
