Skip to content

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants