Skip to content

generators not working #1048

Description

@majidaldo

ALL software version info

Software Version Info
python 3.11.9
param 2.2.0

Description of expected behavior and the observed behavior

should print g

Complete, minimal, self-contained example code that reproduces the issue

def g():
    while True: yield 'g'

import param
class P(param.Parameterized):
    p = param.String(allow_refs=True)
p = P(p=g)
#print(next(g()))
print(p.p)  # nothing prints

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions