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):
        setattr(func, ATTR_ALIASES, names)
        return func
    return wrapper
 

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):
        setattr(func, ATTR_ALIASES, names)
        return func
    return wrapper
 

src/a/r/argh-0.24.1/argh/assembling.py   argh(Download)
from argh.completion import COMPLETION_ENABLED
from argh.compat import OrderedDict
from argh.constants import (ATTR_ALIASES, ATTR_ARGS, ATTR_NAME,
                            ATTR_INFER_ARGS_FROM_SIGNATURE,
                            ATTR_EXPECTS_NAMESPACE_OBJECT,
        # try adding aliases for command name
        if SUPPORTS_ALIASES:
            parser_kwargs['aliases'] = getattr(func, ATTR_ALIASES, [])
 
        # create and set up the parser for this command

src/a/r/argh-HEAD/argh/assembling.py   argh(Download)
from argh.completion import COMPLETION_ENABLED
from argh.compat import OrderedDict
from argh.constants import (ATTR_ALIASES, ATTR_ARGS, ATTR_NAME,
                            ATTR_INFER_ARGS_FROM_SIGNATURE,
                            ATTR_EXPECTS_NAMESPACE_OBJECT,
        # try adding aliases for command name
        if SUPPORTS_ALIASES:
            parser_kwargs['aliases'] = getattr(func, ATTR_ALIASES, [])
 
        # create and set up the parser for this command

src/a/r/argh-HEAD/test/test_decorators.py   argh(Download)
        pass
 
    attr = getattr(func, argh.constants.ATTR_ALIASES)
    assert attr == ('one', 'two')
 

src/a/r/argh-0.24.1/test/test_decorators.py   argh(Download)
        pass
 
    attr = getattr(func, argh.constants.ATTR_ALIASES)
    assert attr == ('one', 'two')