Skip to content

support 'yield' statements #19

Description

@thenewguy

Yield support would be a nice addition.

Pyjamas and Skulpt support yield statements, so it is definitely possible. Skulpt is released under MIT and Pyjamas uses ASL, so there is no harm in looking at the solution they use.

http://pyjs.org/
http://www.skulpt.org/

def test():
    for i in range(1,100):
        yield i

print list(test())

Use the above in the interactive input box on the skulpt.org homepage to see yield support.

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