Skip to content

@coroutine_next not working in Listing 4-46 #19

Description

@heywiki

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions