Note
This documentation is for a development version of IPython. There may be significant differences from the latest stable release (1.2.1).
Some generic utilities for dealing with classes, urls, and serialization.
Authors:
decorator to log unhandled exceptions raised in a method.
For use wrapping on_recv callbacks, so that exceptions do not cause the stream to be closed.
boolean check for whether a string is a zmq url
validate a url for zeromq
validate a potentially nested collection of urls.
split a zmq url (tcp://ip:port) into (‘tcp’,’ip’,’port’).
turn multi-ip interfaces ‘0.0.0.0’ and ‘*’ into connectable ones, based on the location (default interpretation of location is localhost).
turn multi-ip interfaces ‘0.0.0.0’ and ‘*’ into connectable ones, based on the location (default interpretation is localhost).
This is for zeromq urls, such as tcp://*:10101.
decorator for making functions appear as interactively defined. This results in the function being linked to the user_ns as globals() instead of the module globals().
Selects and return n random ports that are available.
Relay interupt/term signals to children, for more solid process cleanup.
set zmq High Water Mark on a socket
in a way that always works for various pyzmq / libzmq versions.