Home
last modified time | relevance | path

Searched refs:__bool__ (Results 1 – 25 of 56) sorted by relevance

123

/external/autotest/client/site_tests/firmware_TouchMTB/geometry/
Delements.py32 def __bool__(self): member in Point
70 __nonzero__ = __bool__
84 def __bool__(self): member in Circle
118 __nonzero__ = __bool__
/external/python/cpython3/Lib/test/
Dtest_bool.py299 def __bool__(self): member in BoolTest.test_convert_to_bool.Foo
304 def __bool__(self): member in BoolTest.test_convert_to_bool.Bar
309 def __bool__(self): member in BoolTest.test_convert_to_bool.Baz
315 def __bool__(self): member in BoolTest.test_convert_to_bool.Spam
345 __bool__ = None variable in BoolTest.test_blocked.A
351 __bool__ = None variable in BoolTest.test_blocked.B
Dtest_property.py142 def __bool__(self): member in PropertyTests.test_property___isabstractmethod__descriptor.NotBool
144 __len__ = __bool__
Dtest_dynamicclassattribute.py160 def __bool__(self): member in PropertyTests.test_property___isabstractmethod__descriptor.NotBool
162 __len__ = __bool__
Dtest_richcmp.py53 def __bool__(self): member in Vector
214 def __bool__(self): member in MiscTest.test_not.Bad
Dtest_abc.py197 def __bool__(self): member in TestABC.test_descriptors_with_abstractmethod.NotBool
199 __len__ = __bool__
Dtest_class.py470 __bool__ = __int__ variable in ClassTests.testBadTypeReturned.BadTypeClass
/external/python/cpython3/Doc/library/
Dtimeit.rst307 $ python -m timeit 'try:' ' str.__bool__' 'except AttributeError:' ' pass'
309 $ python -m timeit 'if hasattr(str, "__bool__"): pass'
312 $ python -m timeit 'try:' ' int.__bool__' 'except AttributeError:' ' pass'
314 $ python -m timeit 'if hasattr(int, "__bool__"): pass'
323 ... str.__bool__
329 >>> s = "if hasattr(str, '__bool__'): pass"
336 ... int.__bool__
342 >>> s = "if hasattr(int, '__bool__'): pass"
/external/mesa3d/src/gallium/drivers/swr/rasterizer/scripts/mako/
Druntime.py190 return self.__bool__()
192 def __bool__(self): member in CallerStack
225 return self.__bool__()
227 def __bool__(self): member in Undefined
/external/tensorflow/tensorflow/contrib/graph_editor/
Dutil.py78 def __bool__(self): member in ListView
82 __nonzero__ = __bool__
Dsubgraph.py518 def __bool__(self): member in SubGraphView
523 __nonzero__ = __bool__
/external/tensorflow/tensorflow/python/framework/
Dtensor_shape.py490 def __bool__(self): member in TensorShape
495 __nonzero__ = __bool__
Dops.py593 def __bool__(self): member in Tensor
817 def __bool__(self): member in _EagerTensorBase
827 return self.__bool__()
2018 def __bool__(self): member in Operation._InputList
2022 __nonzero__ = __bool__
/external/python/cpython3/Lib/
Dnumbers.py49 def __bool__(self): member in Complex
Denum.py259 def __bool__(self): member in EnumMeta
727 def __bool__(self): member in Flag
Dfractions.py626 def __bool__(a): member in Fraction
Dcgi.py659 def __bool__(self): member in FieldStorage
/external/libmojo/third_party/jinja2/
Dlexer.py308 def __bool__(self): member in TokenStream
310 __nonzero__ = __bool__ # py2
Druntime.py575 __ne__ = __bool__ = __hash__ = \
/external/tensorflow/tensorflow/python/training/
Dserver_lib.py305 __bool__ = __nonzero__ variable in ClusterSpec
/external/tensorflow/tensorflow/python/ops/
Dresource_variable_ops.py542 return self.__bool__()
544 def __bool__(self): member in ResourceVariable
/external/python/cpython2/Doc/library/
Dtimeit.rst300 >>> s = "if hasattr(str, '__bool__'): pass"
313 >>> s = "if hasattr(int, '__bool__'): pass"
/external/python/cpython3/Lib/test/test_importlib/
Dtest_util.py208 def __bool__(self): return False member in ModuleForLoaderTests.test_false_module.FalseModule
608 def __bool__(self): raise RuntimeError member in PEP3147Tests.test_cache_from_source_override.Bearish
/external/scapy/
DCONTRIBUTING.md124 - `__bool__ = __nonzero__` must be used when declaring `__nonzero__` methods
/external/python/cpython3/Lib/unittest/test/testmock/
Dtestmagicmethods.py169 m.__bool__ = lambda s: False

123