Skip to content

@coroutine_next not working in Listing 4-46 #19

@heywiki

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions