Skip to content

store_attr no longer records __stored_args__; add init_args - #929

Merged
jph00 merged 1 commit into
mainfrom
pr/store-attr-no-longer-records-stored-args-add-init
Sep 3, 2026
Merged

store_attr no longer records __stored_args__; add init_args#929
jph00 merged 1 commit into
mainfrom
pr/store-attr-no-longer-records-stored-args-add-init

Conversation

@jph00

@jph00 jph00 commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

store_attr only sets the attributes now. The store_args parameter and the __stored_args__ record it kept are gone. init_args(o) replaces the record for its readers: it returns the __init__ parameters of o that it holds as attributes, with their current values, which is what a store_attr class holds. Display and logging code that read the record reads init_args instead. See "store_attr" in the basics notebook.

@jph00 jph00 added the enhancement New feature or request label Sep 3, 2026
@jph00
jph00 merged commit e682ff6 into main Sep 3, 2026
8 checks passed
@jph00
jph00 deleted the pr/store-attr-no-longer-records-stored-args-add-init branch September 3, 2026 00:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant