Skip to content

top level objects are not deleted before script finalized #4527

Open
@youknowone

Description

@youknowone

test code:

class X:
    def __del__(self):
        print('deleted!')

x = X()

CPython output:

deleted!

RustPython output:

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-vmArea: virtual machineC-compatA discrepancy between RustPython and CPython

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions