Searched refs:__nonzero__ (Results 1 - 25 of 36) sorted by relevance

12

/external/autotest/client/site_tests/firmware_TouchMTB/geometry/
H A Delements.py69 # __bool__ is used in Python 3.x and __nonzero__ in Python 2.x
70 __nonzero__ = __bool__ variable in class:Point
117 # __bool__ is used in Python 3.x and __nonzero__ in Python 2.x
118 __nonzero__ = __bool__ variable in class:Circle
/external/tensorflow/tensorflow/python/training/
H A Dserver_lib.py301 def __nonzero__(self): member in class:ClusterSpec
305 __bool__ = __nonzero__
/external/python/cpython2/Lib/
H A Dnumbers.py52 def __nonzero__(self): member in class:Complex
H A Dfractions.py588 def __nonzero__(a): member in class:Fraction
H A Dcgi.py601 def __nonzero__(self): member in class:FieldStorage
/external/python/cpython2/Lib/test/
H A Dtest_bool.py345 # from __nonzero__(). This isn't really a bool test, but
349 def __nonzero__(self): member in class:BoolTest.test_convert_to_bool.Foo
354 def __nonzero__(self): member in class:BoolTest.test_convert_to_bool.Bar
359 def __nonzero__(self): member in class:BoolTest.test_convert_to_bool.Baz
H A Dtest_richcmp.py53 def __nonzero__(self): member in class:Vector
135 # calls __nonzero__, which should fail
210 # Check that exceptions in __nonzero__ are properly
216 def __nonzero__(self): member in class:MiscTest.test_not.Bad
H A Dtest_iter.py350 def __nonzero__(self): member in class:TestCase.test_builtin_filter.Boolean
H A Dtest_operator.py339 def __nonzero__(self): member in class:OperatorTestCase.test_truth.C
H A Dtest_struct.py518 def __nonzero__(self): member in class:StructTest.test_bool.ExplodingBool
H A Dtest_with.py518 def __nonzero__(self): member in class:ExceptionalTestCase.testErrorsInBool.cm.__init__.Bool
/external/libmojo/third_party/jinja2/
H A Druntime.py519 def __nonzero__(self): member in class:Undefined
574 __iter__ = __str__ = __len__ = __nonzero__ = __eq__ = \
H A Dlexer.py310 __nonzero__ = __bool__ # py2 variable in class:TokenStream
/external/python/cpython2/Demo/classes/
H A DComplex.py168 def __nonzero__(self): member in class:Complex
/external/tensorflow/tensorflow/contrib/graph_editor/
H A Dutil.py81 # Python 3 wants __bool__, Python 2.7 wants __nonzero__
82 __nonzero__ = __bool__ variable in class:ListView
H A Dsubgraph.py522 # Python 3 wants __bool__, Python 2.7 wants __nonzero__
523 __nonzero__ = __bool__ variable in class:SubGraphView
/external/scapy/scapy/
H A Dpacket.py364 def __nonzero__(self): member in class:Packet
366 __bool__ = __nonzero__
1265 def __nonzero__(self): member in class:NoPayload
1267 __bool__ = __nonzero__
H A Dfields.py1165 def __nonzero__(self): member in class:FlagValue
1167 __bool__ = __nonzero__
/external/tensorflow/tensorflow/python/framework/
H A Dtensor_shape.py494 # Python 3 wants __bool__, Python 2.7 wants __nonzero__
495 __nonzero__ = __bool__ variable in class:TensorShape
/external/mesa3d/src/gallium/drivers/swr/rasterizer/scripts/mako/
H A Druntime.py189 def __nonzero__(self): member in class:CallerStack
224 def __nonzero__(self): member in class:Undefined
/external/scapy/scapy/tools/
H A DUTscapy.py196 def __nonzero__(self): member in class:UnitTest
198 __bool__ = __nonzero__
/external/libnl/python/netlink/
H A Dcore.py709 def __nonzero__(self): member in class:AbstractAddress
/external/protobuf/python/
H A Dmox.py309 def __nonzero__(self): member in class:MockAnything
/external/python/cpython2/Lib/xml/etree/
H A DElementTree.py250 def __nonzero__(self): member in class:Element
/external/tensorflow/tensorflow/python/ops/
H A Dresource_variable_ops.py541 def __nonzero__(self): member in class:ResourceVariable

Completed in 588 milliseconds

12