Staging
v0.8.1
Revision 7f554c536cfe2e66a1ff0a36c8896040be1e5aee authored by Miss Islington (bot) on 28 March 2018, 06:43:51 UTC, committed by Ned Deily on 28 March 2018, 07:33:49 UTC
(cherry picked from commit e52ac045972a4f75d7f52e4ee0d6de128259134d)

Co-authored-by: Ned Deily <nad@python.org>
1 parent 3647f85
Raw File
final_a.py
"""
Fodder for module finalization tests in test_module.
"""

import shutil
import test.final_b

x = 'a'

class C:
    def __del__(self):
        # Inspect module globals and builtins
        print("x =", x)
        print("final_b.x =", test.final_b.x)
        print("shutil.rmtree =", getattr(shutil.rmtree, '__name__', None))
        print("len =", getattr(len, '__name__', None))

c = C()
_underscored = C()
back to top