These are chat archives for spyder-ide/public

May 2016
Makarov Andrey
May 10 2016 05:37
Hello. I like to ctrl+click defs, but often cursor jumps into decorator, instead of function definition. Here's an example with pandas' to_datetime function:
def deprecate_kwarg(old_arg_name, new_arg_name, mapping=None, stacklevel=2):
    def _deprecate_kwarg(func):
        @wraps(func)  # <--CURSOR JUMPS HERE
        def wrapper(*args, **kwargs):
@deprecate_kwarg(old_arg_name='coerce', new_arg_name='errors',
                 mapping={True: 'coerce', False: 'raise'})
def to_datetime(arg, errors='raise', dayfirst=False, yearfirst=False,