Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enh: Add param.AutoName #976

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

enh: Add param.AutoName #976

wants to merge 1 commit into from

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant