Staging
v0.5.1
https://github.com/python/cpython
Revision 446e168202b4912a670187ada0ee80eecdf37b37 authored by Guido van Rossum on 11 September 2016, 01:54:14 UTC, committed by Guido van Rossum on 11 September 2016, 01:54:14 UTC
1 parent f7f8299
Raw File
Tip revision: 446e168202b4912a670187ada0ee80eecdf37b37 authored by Guido van Rossum on 11 September 2016, 01:54:14 UTC
Issue #26141: Update docs for typing.py. Ivan Levkivskyi.
Tip revision: 446e168
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