def _FormatArg( self, value ):
		"""
		Format an arbitrary argument for trace output.

		@param value: an arbitrary object to format for output.
		"""
		if isinstance(value, BaseClass):
			return u'<%s>' % inspect.getmodule(value).__name__
		elif inspect.ismethod(value):
			return u'{%s::%s}' % (inspect.getmodule(value).__name__, value.__name__)
		elif inspect.isfunction(value):
			return u'{%s}' % value.__name__
		else:
			return value
dataset/ETHPy150Open Pathoschild/stewbot/stewbot/components/BaseClass.py/BaseClass._FormatArg/original