Hi,

With the following file "foo.py":

class Foo:
    def __init__(self):
        print "__init__"

    def __del__(self):
        print "__del__"

foo = Foo()
del foo
foo = Foo()

> python -c "import foo"
__init__
__del__
__init__
__del__

When foo.py is Cythonized (0.10.2):
> python -c "import foo"
__init__
__del__
__init__

__del__ is not called when the Python exits.

I tried using "--cleanup 1", but it hangs, trying to write at address 0...

Cheers,
Stephane
class Foo:
    def __init__(self):
        print "__init__"

    def __del__(self):
        print "__del__"

foo = Foo()
del foo
foo = Foo()
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to