Staging
v0.5.1
swh:1:snp:635f4099902912592851108bcac178ff574f7c5f
Raw File
Tip revision: 88db37442238079a2eff4d142e8e94cfddb58e22 authored by Ɓukasz Langa on 24 November 2020, 16:48:47 UTC
Python 3.9.1rc1
Tip revision: 88db374
final_b.py
"""
Fodder for module finalization tests in test_module.
"""

import shutil
import test.final_a

x = 'b'

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

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