Passing data between classes in Tweepy and Tornado WebSocket
问题 I have two main modules, Tornado WebSocket and Tweepy Streaming, and I'm trying to get them to talk to each other. Under on_status in the StdOutListener Tweepy class below (marked with <-- ), I'd like to call the WSHandler.on_message Tornado class higher up, with data passed from on_status . I'm not able to do so however, as I get error-messages related to undefined instances etc. with the code below. Any help greatly appreciated! (Also, the only non-blocking way I've managed to run both