Skip to content

enh: Add param.AutoName#976

Draft
hoxbro wants to merge 1 commit intomainfrom
param_autoname
Draft

enh: Add param.AutoName#976
hoxbro wants to merge 1 commit intomainfrom
param_autoname

Conversation

@hoxbro
Copy link
Member

@hoxbro hoxbro commented Nov 11, 2024

Currently, it is just a proof of concept to see if it is possible to add an autoincrement variable name based on the created class.

import param class T(param.Parameterized): ... class S(param.Parameterized): ... print(T().name) print(T().name) print(S().name) print(S.name)
❯ python example.py T00000 T00001 S00002 S
@maximlt maximlt mentioned this pull request Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant