Skip to content

It should reload dependants instead of dependencies. #14

Description

@Vanuan

Consider this example:

Module dependant depends on module dependency. (each module prints __name__)

If we reload dependant:

import dependency
reload(dependency)

the dependant module won't be reloaded. It will print:

dependency
dependant
dependant

but it should print:

dependency
dependant
dependency
dependant

In your blog post http://www.indelible.org/ink/python-reloading/:
dependency is A
dependant is B

Quoting:

The solution to this problem is to also reload module B. [dependant]

But your code clearly doesn't do that.

Is there something I misunderstood?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions