On 10/21/2011 8:39 PM, Nick Coghlan wrote:
str(module) ==> module.__name__
str(func) ==> func.__name__
str(cls) ==> "{}.{}".format(cls.__module__, cls.__name__) # See note below
If you do this, then also do
str(generator) ==> generator.__name__
--
Terry Jan Reedy