On Mon, May 21, 2012 at 8:32 PM, Eric V. Smith <eric@trueblade.com> wrote:
Any reason to make this the string "sys" or "foo", and not the module
itself? Can the module be replaced in sys.modules? Mostly I'm just curious.

Probably not, but it occurred to me that storing references to modules introduces a reference cycle that wasn't there when we were pointing to parent path objects instead. It basically would make child packages point to their parents, as well as the other way around.