Staging
v0.5.1
https://github.com/python/cpython
Revision 8e2aa88a40c0c7611a04696d1789da159e40d7f7 authored by Serhiy Storchaka on 24 March 2015, 16:45:23 UTC, committed by Serhiy Storchaka on 24 March 2015, 16:45:23 UTC
1 parent 72bd327
Raw File
Tip revision: 8e2aa88a40c0c7611a04696d1789da159e40d7f7 authored by Serhiy Storchaka on 24 March 2015, 16:45:23 UTC
Issue #23741: Slightly refactor the pprint module to make it a little more
Tip revision: 8e2aa88
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