Skip to content

objects container shared when check_on_set is False #1072

@maximlt

Description

@maximlt

Should the objects container of a Selector be shared when check_on_set is False?

import param

class P(param.Parameterized):
    s = param.Selector(default=1, objects=[1, 2], check_on_set=False)

pa = P(s=3)
pb = P(s=4)
p = P()

print(p.param.s.objects)
# [1, 2, 3, 4]

Metadata

Metadata

Assignees

No one assigned

    Labels

    TRIAGEUser-submitted issue that hasn't been triaged yet.type-bugBug report

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions