Skip to content

Fix Lazy Package Loads#14

Open
matthewphsmith wants to merge 7 commits into
mnmelo:masterfrom
matthewphsmith:master
Open

Fix Lazy Package Loads#14
matthewphsmith wants to merge 7 commits into
mnmelo:masterfrom
matthewphsmith:master

Conversation

@matthewphsmith

@matthewphsmith matthewphsmith commented Jul 29, 2019

Copy link
Copy Markdown

Proposed fix to issue: #15

  • Ensure that when a package of a lazy-loaded module is loaded, the
    lazy-loaded module remains an attribute of the newly loaded package.
  • Ensure that when two lazy-loaded modules exist in the same lazy package,
    the second (and all subsequent) lazy-modules are also added to the lazy
    package's list of lazy sub-modules.

reload does not have the desired behavior. Since when the import is triggered it is actually the first import, it is preferable to use the importlib.
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.

1 participant