馃悰 fix switcher not destroyed with python wrapper
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