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

Better understand reparenting #727

Closed
wants to merge 18 commits into from

Conversation

tristanlatr
Copy link
Contributor

Fixes #184.

Builds on #725.

tristanlatr and others added 18 commits July 11, 2023 11:41
Introduces the Module.imports attribue holding a list of resolved imports, this is required by the re-exporting process since only imported names should be reparented.

Introduces the System.modules attribute that is a dict from the module full names to the Module instances. This dict is not changed during reparenting.

Switch from using of a actual dict to hold values of System.allobjects attribute; instead allobject is a proxy that lazily get the documentable having the requested fullname based on system's rootobjects and modules attributes. It simplifies drastically the reparenting code since the only thing left to handle is the new name of object and it's parent.contents links.

This commit should not introduce any changes in behavior.
(Wip, still a couple of problems)
Give priority to public modules in the re-export sorting.
@tristanlatr
Copy link
Contributor Author

Closing this PR because I have another one coming for this issue.

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.

__all__ re-exports don't work for CramMD5ClientAuthenticator
1 participant