Staging
v0.5.1
https://github.com/python/cpython
Revision 85f1dedb8d05774e0d3739be0a11cd970b98097f authored by Pablo Galindo on 04 December 2020, 22:05:58 UTC, committed by GitHub on 04 December 2020, 22:05:58 UTC
1 parent 2e0760b
Raw File
Tip revision: 85f1dedb8d05774e0d3739be0a11cd970b98097f authored by Pablo Galindo on 04 December 2020, 22:05:58 UTC
bpo-42545: Check that all symbols in the limited ABI are exported (GH-23616)
Tip revision: 85f1ded
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