MCPcopy Index your code
hub / github.com/RustPython/RustPython / _fill_logical

Method _fill_logical

Lib/_pydecimal.py:3329–3340  ·  view source on GitHub ↗
(self, context, opa, opb)

Source from the content-addressed store, hash-verified

3327 return True
3328
3329 def _fill_logical(self, context, opa, opb):
3330 dif = context.prec - len(opa)
3331 if dif > 0:
3332 opa = '0'*dif + opa
3333 elif dif < 0:
3334 opa = opa[-context.prec:]
3335 dif = context.prec - len(opb)
3336 if dif > 0:
3337 opb = '0'*dif + opb
3338 elif dif < 0:
3339 opb = opb[-context.prec:]
3340 return opa, opb
3341
3342 def logical_and(self, other, context=None):
3343 """Applies an 'and' operation between self and other&#x27;s digits.

Callers 3

logical_andMethod · 0.95
logical_orMethod · 0.95
logical_xorMethod · 0.95

Calls 1

lenFunction · 0.85

Tested by

no test coverage detected