Skip to content

Conversation

@sjkelly
Copy link

@sjkelly sjkelly commented Apr 19, 2024

These hooks are usually registered at module __init__,
partially to make the code easier to reason about. Though
this now has greater significance with improved static
compilation techniques, since the __init__ is the module
entry and anything outside will be discarded from what
I can tell.

These hooks are usually registered at module `_init_`,
partially to make the code easier to reason about. Though
this now has greater significance with improved static
compilation techniques, since the _init_ is the module
entry and anything outside will be discarded from what
I can tell.
@KristofferC
Copy link
Member

Yeah that makes sense. The previous behavior feels broken...

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