You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 9, 2020. It is now read-only.
Traceback (most recent call last):
File ".../line_profiler.py", line 102 in wrapper
item = g.send(input)
StopIteration
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File ".../kernprof", line 11, in <module>
load_entry_point('line-profiler==2.1.1', 'console_scripts', 'kernprof')()
File ".../kernprof.py", line 222, in main
execfile(script_file, ns, ns)
File ".../kernprof.py", line 35, in execfile
exec_(compile(f.read(), filename, 'exec'), globals, locals)
File ".../tmp.py", line 6, in <module>
for i in iter_foo(5):
RuntimeError: generator raised StopIteration
The text was updated successfully, but these errors were encountered:
PEP479 changed generator StopIteration behavior, so now putting
@profile
on a generator looks like this:The text was updated successfully, but these errors were encountered: