Did I find the right examples for you? yes no

All Samples(48)  |  Call(36)  |  Derive(0)  |  Import(12)
ArgSpec(args, varargs, keywords, defaults)

src/s/y/syndicate-HEAD/RG/closure.py   syndicate(Download)
 
#-------------------------
CLOSURE_READ_SIGNATURE = inspect.ArgSpec( args=['context', 'request_info', 'filename', 'outfile'], varargs=None, defaults=None, keywords=None )
CLOSURE_WRITE_SIGNATURE = inspect.ArgSpec( args=['context', 'request_info', 'filename', 'infile'], varargs=None, defaults=None, keywords=None )
CLOSURE_DELETE_SIGNATURE = inspect.ArgSpec( args=['context', 'request_info', 'filename'], varargs=None, defaults=None, keywords=None )
 
DRIVER_READ_SIGNATURE = inspect.ArgSpec( args=['filename', 'outfile'], varargs=None, defaults=None, keywords='kw' )
DRIVER_WRITE_SIGNATURE = inspect.ArgSpec( args=['filename', 'infile'], varargs=None, defaults=None, keywords='kw' )

src/p/y/PyContracts-1.6.0/src/contracts/backported.py   PyContracts(Download)
import sys
from inspect import ArgSpec
 
if sys.version_info[0] == 3:  # pragma: no cover
    from inspect import getfullargspec  # @UnresolvedImport
            x = _getargspec(function.im_func)
            new_args = x.args[1:]
            spec = ArgSpec(args=new_args, varargs=x.varargs,
                           keywords=x.keywords, defaults=x.defaults)
            return spec

src/c/o/contracts-HEAD/src/contracts/backported.py   contracts(Download)
import sys
from inspect import ArgSpec
 
if sys.version_info[0] == 3:  # pragma: no cover
    from inspect import getfullargspec  # @UnresolvedImport
            x = _getargspec(function.im_func)
            new_args = x.args[1:]
            spec = ArgSpec(args=new_args, varargs=x.varargs,
                           keywords=x.keywords, defaults=x.defaults)
            return spec

src/p/o/powerline-HEAD/powerline/lint/inspect.py   powerline(Download)
# vim:fileencoding=utf-8:noet
from __future__ import absolute_import
from inspect import ArgSpec, getargspec
from powerline.lib.threaded import ThreadedSegment, KwThreadedSegment
from itertools import count
					else:
						args.insert(0, arg)
		argspec = ArgSpec(args=args, varargs=None, keywords=None, defaults=tuple(defaults))
	else:
		if hasattr(obj, 'powerline_origin'):
			else:
				args.insert(0, arg)
		argspec = ArgSpec(args=args, varargs=argspec.varargs, keywords=argspec.keywords, defaults=tuple(defaults))
 
	return argspec

src/p/o/powerline-status-0.0.1/powerline/lint/inspect.py   powerline-status(Download)
# vim:fileencoding=utf-8:noet
from __future__ import absolute_import
from inspect import ArgSpec, getargspec
from powerline.lib.threaded import ThreadedSegment, KwThreadedSegment
from itertools import count
					else:
						args.insert(0, arg)
		argspec = ArgSpec(args=args, varargs=None, keywords=None, defaults=tuple(defaults))
	else:
		if hasattr(obj, 'powerline_origin'):
			else:
				args.insert(0, arg)
		argspec = ArgSpec(args=args, varargs=argspec.varargs, keywords=argspec.keywords, defaults=tuple(defaults))
 
	return argspec

src/p/a/patterns-0.1.2/patterns/__init__.py   patterns(Download)
def patterns(func):
    empty_argspec = inspect.ArgSpec(args=[], varargs=None, keywords=None, defaults=None)
    assert inspect.getargspec(func) == empty_argspec, 'Pattern function should not have arguments'
 
    # TODO: make it not as weird and dirty

src/p/a/patterns-HEAD/patterns/__init__.py   patterns(Download)
def patterns(func):
    empty_argspec = inspect.ArgSpec(args=[], varargs=None, keywords=None, defaults=None)
    assert inspect.getargspec(func) == empty_argspec, 'Pattern function should not have arguments'
 
    # TODO: make it not as weird and dirty

src/p/l/plexnet-HEAD/source/plexnet/util/secure26.py   plexnet(Download)
        raise TypeError('arg is not a Python function')
    args, varargs, varkw = inspect.getargs(sys.get_func_code(func))
    return inspect.ArgSpec(args, varargs, varkw, func.func_defaults)
 
def getfile(object):

src/s/a/sage-HEAD/src/sage/misc/sageinspect.py   sage(Download)
    defaults = [visitor.visit(d) for d in ast_args.defaults]
 
    return inspect.ArgSpec(args, ast_args.vararg, ast_args.kwarg,
                           tuple(defaults) if defaults else None)
 
    if isinstance(obj, (lazy_attribute, AbstractMethod)):
        source = sage_getsource(obj)
        return inspect.ArgSpec(*_sage_getargspec_cython(source))
    if not callable(obj):
        raise TypeError("obj is not a code object")
    try:
        return inspect.ArgSpec(*obj._sage_argspec_())
        source = sage_getsource(obj, is_binary=True)
        if source:
            return inspect.ArgSpec(*_sage_getargspec_cython(source))
        else:
            func_obj = obj
        except TypeError: # arg is not a code object
        # The above "hopefully" was wishful thinking:
            return inspect.ArgSpec(*_sage_getargspec_cython(sage_getsource(obj)))
            #return _sage_getargspec_from_ast(sage_getsource(obj))
    try:

src/r/e/reg-0.6/reg/mapply.py   reg(Download)
    func, cache_key, remove_self = get_callable_info(callable)
    if func is None:
        return inspect.ArgSpec([], None, None, None)
    result = inspect.getargspec(func)
    if remove_self:
        args = result.args[1:]
        result = inspect.ArgSpec(args, result.varargs, result.keywords,

  1 | 2 | 3  Next