Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@coroutine_next not working in Listing 4-46 #19

Open
heywiki opened this issue Apr 16, 2020 · 0 comments
Open

@coroutine_next not working in Listing 4-46 #19

heywiki opened this issue Apr 16, 2020 · 0 comments

Comments

@heywiki
Copy link

heywiki commented Apr 16, 2020

https://github.com/jython/book/blob/master/DefiningFunctionsandUsingBuilt-Ins.rst

I've tried Listing 4-46 where Decorators in Coroutines are declared, but i get

$ jython co_example.py
Traceback (most recent call last):
  File "co_example.py", line 2, in <module>
    @coroutine_next
NameError: name 'coroutine_next' is not defined

Added my code here: https://github.com/heywiki/jython-book-examples/blob/master/chapter4/co_example.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant