This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| print type(ch) | |
| <class 'pika.adapters.blocking_connection.BlockingChannel'> | |
| print dir(ch) | |
| ['__class__', '__delattr__', '__dict__', '__doc__', '__format__', '__getattribute__', '__hash__', '__init__', '__module__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_close', '_consumers', '_on_basic_deliver', '_on_basic_get', '_on_basic_get_empty', '_on_basic_get_ok', '_on_cancel_ok', '_on_channel_flow_ok', '_on_confirm_select_ok', '_on_flow_ok_callback', '_on_get_ok_callback', '_on_open_callback', '_on_remote_close', '_open', '_pending', 'add_callback', 'add_on_close_callback', 'add_on_return_callback', 'basic_ack', 'basic_cancel', 'basic_consume', 'basic_get', 'basic_get_', 'basic_publish', 'basic_qos', 'basic_recover', 'basic_recover_async', 'basic_reject', 'callbacks', 'channel_number', 'close', 'closing', 'confirm_delivery', 'consumer_tags', 'exchange_declare', 'exchange_delete', 'flow', 'queue_bind', 'queue_declare', 'queue_del |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def set_trace(): | |
| """ | |
| Wrapper for ``pdb.set_trace``. | |
| """ | |
| from config import app | |
| if not app.debug: return | |
| import pdb | |
| pdb.set_trace() |
OlderNewer