Specifically, are they in order of first imported to last? Or some other order? Undefined order?
Sys.modules is a dict; dicts, being hash-tables, have undefined ordering.
See this question: How to determine if one module has been loaded before or after another
EDIT: As of 3.7, dictionaries are ordered. From my experiments, the order in which you import stuff does seem to match the order in which they appear in sys.modules.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With