axw/pushy — Issue #34: pushy.client.AutoImporter can outlive Client
Author: axw
Created: 2012-02-07 15:01:20+00:00
State: open
Labels: Fix Committed, Low

AutoImporter objects do not hold reference to their owning Client, and so may outlive them. This is evident when you try to do something like:
pushy.connect("local:").modules.os.getpid()
Currently you will get an AttributeError, because the client will have been dereferenced and closed before the getattr on the modules object completes.