Home
last modified time | relevance | path

Searched refs:__nonzero__ (Results 1 – 25 of 49) sorted by relevance

12

/external/autotest/client/site_tests/firmware_TouchMTB/geometry/
Delements.py70 __nonzero__ = __bool__ variable in Point
118 __nonzero__ = __bool__ variable in Circle
/external/python/cpython2/Doc/library/
Dtimeit.rst278 $ python -m timeit 'try:' ' str.__nonzero__' 'except AttributeError:' ' pass'
280 $ python -m timeit 'if hasattr(str, "__nonzero__"): pass'
283 $ python -m timeit 'try:' ' int.__nonzero__' 'except AttributeError:' ' pass'
285 $ python -m timeit 'if hasattr(int, "__nonzero__"): pass'
294 ... str.__nonzero__
307 ... int.__nonzero__
/external/tensorflow/tensorflow/python/training/
Dserver_lib.py301 def __nonzero__(self): member in ClusterSpec
305 __bool__ = __nonzero__
/external/python/cpython2/Lib/test/
Dtest_bool.py349 def __nonzero__(self): member in BoolTest.test_convert_to_bool.Foo
354 def __nonzero__(self): member in BoolTest.test_convert_to_bool.Bar
359 def __nonzero__(self): member in BoolTest.test_convert_to_bool.Baz
Dtest_richcmp.py53 def __nonzero__(self): member in Vector
216 def __nonzero__(self): member in MiscTest.test_not.Bad
Dtest_struct.py518 def __nonzero__(self): member in StructTest.test_bool.ExplodingBool
Dtest_with.py518 def __nonzero__(self): member in ExceptionalTestCase.testErrorsInBool.cm.__init__.Bool
/external/python/cpython2/Lib/
Dnumbers.py52 def __nonzero__(self): member in Complex
Dfractions.py588 def __nonzero__(a): member in Fraction
Dcgi.py601 def __nonzero__(self): member in FieldStorage
/external/scapy/
DCONTRIBUTING.md124 - `__bool__ = __nonzero__` must be used when declaring `__nonzero__` methods
/external/libmojo/third_party/jinja2/
Druntime.py519 def __nonzero__(self): member in Undefined
574 __iter__ = __str__ = __len__ = __nonzero__ = __eq__ = \
Dlexer.py310 __nonzero__ = __bool__ # py2 variable in TokenStream
/external/mesa3d/src/gallium/drivers/swr/rasterizer/scripts/mako/
Druntime.py189 def __nonzero__(self): member in CallerStack
224 def __nonzero__(self): member in Undefined
/external/python/cpython2/Demo/classes/
DComplex.py168 def __nonzero__(self): member in Complex
/external/scapy/scapy/tools/
DUTscapy.py196 def __nonzero__(self): member in UnitTest
198 __bool__ = __nonzero__
/external/tensorflow/tensorflow/contrib/graph_editor/
Dutil.py82 __nonzero__ = __bool__ variable in ListView
Dsubgraph.py523 __nonzero__ = __bool__ variable in SubGraphView
/external/scapy/scapy/
Dpacket.py364 def __nonzero__(self): member in Packet
366 __bool__ = __nonzero__
1265 def __nonzero__(self): member in NoPayload
1267 __bool__ = __nonzero__
Dfields.py1165 def __nonzero__(self): member in FlagValue
1167 __bool__ = __nonzero__
/external/tensorflow/tensorflow/python/framework/
Dtensor_shape.py495 __nonzero__ = __bool__ variable in TensorShape
Dops.py620 def __nonzero__(self): member in Tensor
826 def __nonzero__(self): member in _EagerTensorBase
2022 __nonzero__ = __bool__ variable in Operation._InputList
/external/protobuf/python/
Dmox.py309 def __nonzero__(self): member in MockAnything
/external/libnl/python/netlink/
Dcore.py709 def __nonzero__(self): member in AbstractAddress
/external/tensorflow/tensorflow/python/ops/
Dresource_variable_ops.py541 def __nonzero__(self): member in ResourceVariable

12