When I execute test.py I obtain the following error:
Traceback (most recent call last):
File "test.py", line 7, in <module>
print(list(tt.iterate()))
AttributeError: 'TestType' object has no attribute 'iterate'
This code works if I call the iterate function as mymodule.iterate(tt). I think it could be useful to also have iterators exported for PyNimObjectExperimental types. I'm pretty new to Nim, but I can have a look to that if it is ok :)
Hi friends!
I was playing around with
PyNimObjectExperimental
and I found that iterators are not exported. For example:When I execute test.py I obtain the following error:
This code works if I call the
iterate
function asmymodule.iterate(tt)
. I think it could be useful to also have iterators exported forPyNimObjectExperimental
types. I'm pretty new to Nim, but I can have a look to that if it is ok :)