Staging
v0.5.1
https://github.com/python/cpython
Revision a95a476b3ae93d890209e592d675ae64c82e05dc authored by Jason R. Coombs on 28 June 2015, 15:13:30 UTC, committed by Jason R. Coombs on 28 June 2015, 15:13:30 UTC
2 parent s b9b9e7b + 50373e6
Raw File
Tip revision: a95a476b3ae93d890209e592d675ae64c82e05dc authored by Jason R. Coombs on 28 June 2015, 15:13:30 UTC
Issue #20387: Merge test and patch from 3.4.4
Tip revision: a95a476
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