pushy.client.AutoImporter can outlive Client

Bug #733647 reported by Andrew Wilkins
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Pushy
Fix Released
Low
Unassigned

Bug Description

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.

Related branches

Revision history for this message
Andrew Wilkins (axwalk) wrote :

This is a simple matter of adding the parent Client to the child object, to preserve its lifetime.

Andrew Wilkins (axwalk)
Changed in pushy:
status: Confirmed → In Progress
status: In Progress → Fix Committed
Andrew Wilkins (axwalk)
Changed in pushy:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.