WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
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

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions