Home
last modified time | relevance | path

Searched refs:ismethod (Results 1 – 25 of 30) sorted by relevance

12

/external/tensorflow/tensorflow/python/util/
Dfunction_utils.py32 return tf_inspect.ismethod(fn) and (fn.__self__ is not None)
36 return hasattr(obj, '__call__') and tf_inspect.ismethod(obj.__call__)
92 elif tf_inspect.ismethod(func):
105 if tf_inspect.isfunction(func) or tf_inspect.ismethod(func):
Dtf_inspect.py273 if ismethod(func) and this:
373 def ismethod(object): # pylint: disable=redefined-builtin function
375 return _inspect.ismethod(tf_decorator.unwrap(object)[1])
Dtf_decorator.py169 if inspect.ismethod(innermost_decorator):
Dtf_inspect_test.py564 self.assertTrue(tf_inspect.ismethod(TestDecoratedClass().two))
565 self.assertFalse(tf_inspect.ismethod(test_decorated_function))
/external/python/cpython2/Lib/
Dinspect.py67 def ismethod(object): function
94 and not ismethod(object) # mutual exclusion
160 return bool((isfunction(object) or ismethod(object)) and
239 or ismethod(object)
319 if (ismethod(obj_via_getattr) or
408 if ismethod(object):
565 if ismethod(object):
822 if ismethod(func):
939 if ismethod(func) and func.im_self is not None:
DDocXMLRPCServer.py77 if inspect.ismethod(object):
Dpydoc.py132 return inspect.ismethod(obj) or inspect.ismethoddescriptor(obj)
910 if inspect.ismethod(object):
1300 if inspect.ismethod(object):
1507 if inspect.ismethod(thing):
Ddoctest.py990 inspect.ismethod(val) or inspect.ismodule(val) or
1079 if inspect.ismethod(obj): obj = obj.im_func
/external/tensorflow/tensorflow/python/debug/wrappers/
Dframework_test.py421 tf_inspect.getmembers(session.Session, predicate=tf_inspect.ismethod)
426 framework.BaseDebugWrapperSession, predicate=tf_inspect.ismethod)
437 predicate=tf_inspect.ismethod)
442 framework.BaseDebugWrapperSession, predicate=tf_inspect.ismethod)
/external/python/cpython2/Lib/test/
Dtest_pyclbr.py69 def ismethod(oclass, obj, name): function
118 if ismethod(py_item, getattr(py_item, m), m):
Dtest_inspect.py51 inspect.isframe, inspect.isfunction, inspect.ismethod,
85 self.istest(inspect.ismethod, 'mod.StupidGit.abuse')
86 self.istest(inspect.ismethod, 'git.argue')
667 self.assertIn(('f', B.f), inspect.getmembers(B, inspect.ismethod))
670 self.assertIn(('f', b.f), inspect.getmembers(b, inspect.ismethod))
678 self.assertIn(('f', B.f), inspect.getmembers(B, inspect.ismethod))
681 self.assertIn(('f', b.f), inspect.getmembers(b, inspect.ismethod))
/external/libcxx/utils/libcxx/test/
Dtracing.py38 if inspect.ismethod(member):
/external/python/cpython3/Lib/
Dinspect.py80 def ismethod(object): function
104 if isclass(object) or ismethod(object) or isfunction(object):
118 if isclass(object) or ismethod(object) or isfunction(object):
176 return bool((isfunction(object) or ismethod(object)) and
184 return bool((isfunction(object) or ismethod(object)) and
193 return bool((isfunction(object) or ismethod(object)) and
289 or ismethod(object)
547 if ismethod(obj):
654 if ismethod(object):
814 if ismethod(object):
[all …]
Dpydoc.py142 inspect.ismethod(obj) or
151 if inspect.ismethod(fn):
1599 if inspect.ismethod(thing):
/external/python/cpython3/Lib/test/
Dtest_pyclbr.py69 def ismethod(oclass, obj, name): function
112 if ismethod(py_item, getattr(py_item, m), m):
/external/tensorflow/tensorflow/python/autograph/impl/
Dconversion.py114 if tf_inspect.ismethod(o):
192 elif tf_inspect.ismethod(o):
233 method_filter = lambda m: tf_inspect.isfunction(m) or tf_inspect.ismethod(m)
Dapi.py192 if tf_inspect.ismethod(f):
283 if tf_inspect.isfunction(f) or tf_inspect.ismethod(f):
/external/lua/src/
Dlparser.c782 static void body (LexState *ls, expdesc *e, int ismethod, int line) { in body() argument
790 if (ismethod) { in body()
1464 int ismethod = 0; in funcname() local
1469 ismethod = 1; in funcname()
1472 return ismethod; in funcname()
1478 int ismethod; in funcstat() local
1481 ismethod = funcname(ls, &v); in funcstat()
1482 body(ls, &b, ismethod, line); in funcstat()
/external/tensorflow/tensorflow/tools/docs/
Dparser.py139 if (tf_inspect.isclass(py_object) or tf_inspect.ismethod(py_object) or
1251 elif (tf_inspect.ismethod(child) or tf_inspect.isfunction(child) or
1527 if (tf_inspect.ismethod(py_object) or tf_inspect.isfunction(py_object) or
/external/chromium-trace/catapult/devil/devil/android/
Dforwarder.py31 if inspect.ismethod(p.create_time):
/external/python/cpython2/Doc/library/
Dinspect.rst274 .. function:: ismethod(object)
335 :func:`ismethod`, :func:`isclass`, :func:`isfunction` or :func:`isbuiltin`
348 :attr:`im_func` attribute (etc) when an object passes :func:`ismethod`.
/external/tensorflow/tensorflow/python/eager/
Dfunction.py959 is_method = tf_inspect.ismethod(python_function_to_inspect)
2050 if tf_inspect.ismethod(wrapped_fn):
2083 if tf_inspect.ismethod(wrapped_fn):
/external/libchrome/third_party/ply/
Dyacc.py2872 ismethod = 0
2874 ismethod = 1
2884 if (func_code(self.error_func).co_argcount != 1+ismethod):
/external/ply/ply/ply/
Dyacc.py3041 ismethod = 0
3043 ismethod = 1
3054 argcount = self.error_func.__code__.co_argcount - ismethod
/external/selinux/python/sepolgen/src/sepolgen/
Dyacc.py3041 ismethod = 0
3043 ismethod = 1
3054 argcount = self.error_func.__code__.co_argcount - ismethod

12