Home
last modified time | relevance | path

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

1234

/external/autotest/server/cros/dynamic_suite/
Dboolparse_lib.py41 __nonzero__ = __bool__ variable in _BoolOperand
72 __nonzero__ = __bool__ variable in _BoolBinOp
98 __nonzero__ = __bool__ variable in _BoolNot
/external/libchrome/third_party/jinja2/
Druntime.py669 def __nonzero__(self): member in Undefined
671 __bool__ = __nonzero__
740 def __nonzero__(self): member in make_logging_undefined.LoggingUndefined
741 rv = base.__nonzero__(self)
806 __iter__ = __str__ = __len__ = __nonzero__ = __eq__ = \
/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/fonttools/Lib/fontTools/ttLib/tables/
D_f_p_g_m.py42 __nonzero__ = __bool__ variable in table__f_p_g_m
DttProgram.py515 __nonzero__ = __bool__ variable in Program
/external/python/apitools/apitools/base/py/
Dstream_slice.py38 def __nonzero__(self): member in StreamSlice
Dcompression.py106 def __nonzero__(self): member in StreamingBuffer
/external/python/cpython2/Lib/json/tests/
Dtest_speedups.py5 def __nonzero__(self): member in BadBool
/external/python/pyasn1/pyasn1/type/
Dbase.py312 def __nonzero__(self): member in SimpleAsn1Type
568 def __nonzero__(self): member in ConstructedAsn1Type
Dconstraint.py67 def __nonzero__(self): member in AbstractConstraint
Dnamedtype.py215 def __nonzero__(self): member in NamedTypes
/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
/external/tensorflow/tensorflow/python/ops/ragged/
Dragged_operators.py91 ragged_tensor.RaggedTensor.__nonzero__ = _dummy_bool
/external/fonttools/Lib/fontTools/misc/
Dvector.py94 __nonzero__ = __bool__ variable in Vector
/external/python/cffi/cffi/
Dbackend_ctypes.py209 def __nonzero__(self): member in CTypesGenericPtr
211 __bool__ = __nonzero__
464 def __nonzero__(self): member in CTypesBackend.new_primitive_type.CTypesPrimitive
467 def __nonzero__(self): member in CTypesBackend.new_primitive_type.CTypesPrimitive
469 __bool__ = __nonzero__
/external/python/cpython2/Lib/
Dnumbers.py52 def __nonzero__(self): member in Complex
Dfractions.py588 def __nonzero__(a): member in Fraction
/external/scapy/
DCONTRIBUTING.md124 - `__bool__ = __nonzero__` must be used when declaring `__nonzero__` methods
/external/python/cpython2/Demo/classes/
DComplex.py168 def __nonzero__(self): member in Complex
/external/tensorflow/tensorflow/python/training/
Dserver_lib.py322 __nonzero__ = __bool__ variable in ClusterSpec
/external/scapy/scapy/tools/
DUTscapy.py196 def __nonzero__(self): member in UnitTest
198 __bool__ = __nonzero__
/external/scapy/scapy/
Dpacket.py364 def __nonzero__(self): member in Packet
366 __bool__ = __nonzero__
1265 def __nonzero__(self): member in NoPayload
1267 __bool__ = __nonzero__
/external/python/pybind11/tests/
Dtest_builtin_casters.py459 def __nonzero__(self): member in test_bool_caster.A
/external/python/enum34/enum/
D__init__.py404 __nonzero__ = __bool__ variable in EnumMeta

1234