Home
last modified time | relevance | path

Searched refs:_convert (Results 1 - 7 of 7) sorted by relevance

/third_party/python/Lib/
H A Daifc.py316 self._convert = None
445 if self._convert and data:
446 data = self._convert(data)
513 self._convert = self._adpcm2lin
515 self._convert = self._ulaw2lin
517 self._convert = self._alaw2lin
519 self._convert = self._sowt2lin
600 self._convert = None
749 if self._convert:
750 data = self._convert(dat
[all...]
H A Dwave.py246 self._convert = None
365 if self._convert and data:
366 data = self._convert(data)
436 self._convert = None
549 if self._convert:
550 data = self._convert(data)
H A Dstatistics.py333 def _convert(value, T): function
433 return _convert(total / n, T)
546 return _convert(sum_weights / total, T)
863 return _convert(ss / (n - 1), T)
904 return _convert(ss / n, T)
H A Dast.py84 def _convert(node): function
88 return tuple(map(_convert, node.elts))
90 return list(map(_convert, node.elts))
92 return set(map(_convert, node.elts))
99 return dict(zip(map(_convert, node.keys),
100 map(_convert, node.values)))
110 return _convert(node_or_string)
H A Dfunctools.py173 _convert = { variable
191 roots = {op for op in _convert if getattr(cls, op, None) is not getattr(object, op, None)}
195 for opname, opfunc in _convert[root]:
/third_party/python/Lib/test/
H A Dtest_statistics.py954 # Test private _convert function.
963 x = statistics._convert(Fraction(71), int)
966 x = statistics._convert(Fraction(17), MyInt)
971 x = statistics._convert(Fraction(95, 99), Fraction)
976 x = statistics._convert(Fraction(71, 13), MyFraction)
981 x = statistics._convert(Fraction(-1, 2), float)
986 x = statistics._convert(Fraction(9, 8), MyFloat)
991 x = statistics._convert(Fraction(1, 40), Decimal)
996 x = statistics._convert(Fraction(-15, 16), MyDecimal)
1002 x = statistics._convert(in
[all...]
H A Dtest_enum.py4715 enum.IntEnum._convert(

Completed in 39 milliseconds