Part of twisted.python View Source
twisted.python.util
which
has been ported to Python 3.Function | setIDFunction | Change the function used by unsignedID to
determine the integer id value of an object. This is largely useful for
testing to give unsignedID
deterministic, easily-controlled behavior. |
unsignedID
to
determine the integer id value of an object. This is largely useful for
testing to give unsignedID
deterministic, easily-controlled behavior.Parameters | idFunction | A function with the signature of id . |
Returns | The previous function being used by unsignedID . |