Skip to content
Snippets Groups Projects
Commit 364ac48d authored by Enric Tejedor Saavedra's avatar Enric Tejedor Saavedra
Browse files

[Exp PyROOT] Exploit the fact that TIter instances are iterable

parent 3d2d969f
No related branches found
No related tags found
No related merge requests found
......@@ -88,10 +88,9 @@ def _iter_pyz(self):
# Parameters:
# - self: collection to be iterated
it = cppyy.gbl.TIter(self)
o = it.Next()
while o:
# TIter instances are iterable
for o in it:
yield o
o = it.Next()
@pythonization()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment