Did I find the right examples for you? yes no

All Samples(4)  |  Call(0)  |  Derive(0)  |  Import(4)
str(object='') -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.

src/a/r/argh-0.24.1/argh/decorators.py   argh(Download)
"""
from argh.assembling import _fix_compat_issue29
from argh.constants import (ATTR_ALIASES, ATTR_ARGS, ATTR_NAME,
                            ATTR_WRAPPED_EXCEPTIONS,
                            ATTR_WRAPPED_EXCEPTIONS_PROCESSOR,
    def wrapper(func):
        errors_, processor_ = _fix_compat_issue36(func, errors, processor, args)
 
        if errors_:
            setattr(func, ATTR_WRAPPED_EXCEPTIONS, errors_)

src/a/r/argh-HEAD/argh/decorators.py   argh(Download)
"""
from argh.assembling import _fix_compat_issue29
from argh.constants import (ATTR_ALIASES, ATTR_ARGS, ATTR_NAME,
                            ATTR_WRAPPED_EXCEPTIONS,
                            ATTR_WRAPPED_EXCEPTIONS_PROCESSOR,
    def wrapper(func):
        errors_, processor_ = _fix_compat_issue36(func, errors, processor, args)
 
        if errors_:
            setattr(func, ATTR_WRAPPED_EXCEPTIONS, errors_)

src/a/r/argh-0.24.1/argh/dispatching.py   argh(Download)
 
from argh import compat, io
from argh.constants import (ATTR_WRAPPED_EXCEPTIONS,
                            ATTR_WRAPPED_EXCEPTIONS_PROCESSOR,
                            ATTR_EXPECTS_NAMESPACE_OBJECT,
 
    wrappable_exceptions = [CommandError]
    wrappable_exceptions += getattr(args.function, ATTR_WRAPPED_EXCEPTIONS, [])
 
    try:

src/a/r/argh-HEAD/argh/dispatching.py   argh(Download)
 
from argh import compat, io
from argh.constants import (ATTR_WRAPPED_EXCEPTIONS,
                            ATTR_WRAPPED_EXCEPTIONS_PROCESSOR,
                            ATTR_EXPECTS_NAMESPACE_OBJECT,
 
    wrappable_exceptions = [CommandError]
    wrappable_exceptions += getattr(args.function, ATTR_WRAPPED_EXCEPTIONS, [])
 
    try:

src/a/r/argh-HEAD/test/test_decorators.py   argh(Download)
        pass
 
    attr = getattr(func, argh.constants.ATTR_WRAPPED_EXCEPTIONS)
    assert attr == [KeyError, ValueError]
 
        pass
 
    attr = getattr(func, argh.constants.ATTR_WRAPPED_EXCEPTIONS)
    assert attr == [KeyError, ValueError, TypeError]
 

src/a/r/argh-0.24.1/test/test_decorators.py   argh(Download)
        pass
 
    attr = getattr(func, argh.constants.ATTR_WRAPPED_EXCEPTIONS)
    assert attr == [KeyError, ValueError]
 
        pass
 
    attr = getattr(func, argh.constants.ATTR_WRAPPED_EXCEPTIONS)
    assert attr == [KeyError, ValueError, TypeError]