Skip to content

馃悰 fix switcher not destroyed with python wrapper

Nicolas Bouillot requested to merge fix/pyswitch_not_destroyed into develop

fix for #32 (closed)

Now this gives this

$ python3 -c "from pyquid import Switcher; sw = Switcher('test'); quid = sw.create('dummy', 'd1'); print(quid)"
{
  "id" : 1,
  "kind" : "dummy"
}
$ python3 -c "from pyquid import Switcher; sw = Switcher('test'); quid = sw.create('dummy', 'd1'); del sw; print(quid)"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
MemoryError: Quiddity or parent Switcher has been deleted
Edited by Nicolas Bouillot

Merge request reports