Skip to content

generators not working #1048

@majidaldo

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

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