Skip to content

Register imported CLI sub-namespaces in sys.modules#1991

Open
BCSharp wants to merge 2 commits intoIronLanguages:mainfrom
BCSharp:import_subnamespace
Open

Register imported CLI sub-namespaces in sys.modules#1991
BCSharp wants to merge 2 commits intoIronLanguages:mainfrom
BCSharp:import_subnamespace

Conversation

@BCSharp
Copy link
Member

@BCSharp BCSharp commented Feb 13, 2026

Resolves #1989 as discussed (short term solution).

Copy link
Contributor

@slozier slozier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

I did play around a bit with a meta path loader idea and it seems like we'd need to make the Python type of NamespaceTracker a bit more module-like to work with importlib.__import__, but it looks promising.

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.

Enum types are not picklable if defined in nested namespaces

2 participants