a.util : module documentation
Miscellaneous useful stuff.
is a cool little function that looks for a
Deferred as an
attribute of some namespace (i.e., object) and does a call after it fires.
lets you to track and wait for deferreds without actually having received a
reference to them.
you shut things down when you get the lock.
You probably won't need to use it yourself, unless perhaps you come up with
an entirely new kind of
|Function||o2p||Converts an object into a pickle string or a blank string if an empty container.|
|Function||p2o||Converts a pickle string into its represented object, or into the default object you specify if it's a blank string.|
|Function||callAfterDeferred||Looks for a
|Function||testFunction||For testing only.|
|Class||TestStuff||For testing only.|
|Class||ProcessProtocol||I am a simple protocol for spawning a subordinate process.|
|Class||DeferredTracker||I allow you to track and wait for Deferreds without actually having received a reference to them, or interfering with their callback chains.|
|Class||DeferredLock||I am a modified form of
|Class||CallRunner||I'm used by
Converts a pickle string into its represented object, or into the default object you specify if it's a blank string.
Note that a reference to the default object itself will be returned, not
a copy of it. So make sure you only supply an empty Python primitive, e.g.,
Looks for a
Deferred dName as an attribute of
namespace and does the f-args-kw call, chaining its call to the
Deferred if necessary.
Note that the original deferred's value is swallowed when it calls the new deferred's callback; the original deferred must be for signalling readiness only and its return value not relied upon.
Kills the process with the supplied PID, returning a deferred that fires
when it's no longer running. The return value is
True if the
process was alive and had to be killed,
False if it was