gymwipe.utility module

Domain-independent utility functions

ownerPrefix(ownerObject)[source]

Calls __repr__() on the ownerObject (if it is not None) and returns the result concatenated with ‘.’. If the object is None, an empty string will be returned.

Return type:str
strAndRepr(obj)[source]

Returns “str (repr)” where str and repr are the result of str(obj) and repr(obj).

Return type:str