Staging
v0.5.1
https://github.com/python/cpython
Revision b2b3803081f07600710273b4f902b5be6e5596e7 authored by Miss Skeleton (bot) on 22 October 2020, 00:07:59 UTC, committed by GitHub on 22 October 2020, 00:07:59 UTC
See Objects/typeobject.c:object_richcompare() for the implementation of this in CPython.

Co-authored-by: Brett Cannon <brett@python.org>
1 parent 916ac95
Raw File
Tip revision: b2b3803081f07600710273b4f902b5be6e5596e7 authored by Miss Skeleton (bot) on 22 October 2020, 00:07:59 UTC
bpo-41910: specify the default implementations of object.__eq__ and object.__ne__ (GH-22874) (#22877)
Tip revision: b2b3803
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