Converts a sys.exc_info()-style tuple of values into a string.
Draw a divider, with label in the middle.
>>> ln('hello there')
'---------------------------- hello there -----------------------------'
Width and divider char may be specified. Defaults are 70 and ‘-‘ respectively.
Make class appear to reside in module.
Parameters: |
|
---|---|
Returns: | A subclass of cls that appears to have been defined in module. |
The returned class’s __name__ will be equal to cls.__name__, and its __module__ equal to module.