Searched refs:__hex__ (Results 1 – 13 of 13) sorted by relevance
45 Works like the built-in :func:`hex`, but instead of :meth:`__hex__` it will
621 define a __hex__() method that returns a string.
112 def __hex__(self, *args): member in AllTests503 __hex__ = __int__ variable in ClassTests.testBadTypeReturned.BadTypeClass
327 def __hex__(self): member in FormatTest.test_invalid_special_methods.X
135 def __hex__(self): member in Constant
28 __oct__ and __hex__.
776 * The :meth:`__oct__` and :meth:`__hex__` special methods are removed
2767 :meth:`__hex__` or :meth:`__oct__` methods, these versions will
1202 oct(s) = __oct__(s) hex(s) = __hex__(s)
2779 __oct__, and __hex__ are now checked. Returning an invalid type
2228 object.__hex__(self)
2763 :meth:`__hex__` or :meth:`__oct__` methods, these versions will
17167 - Removed the __oct__ and __hex__ special methods and added a bin()20163 __oct__, and __hex__ are now checked. Returning an invalid type