Skip to content
Prev Previous commit
Next Next commit
reformulate comment
  • Loading branch information
picnixz committed Nov 9, 2025
commit 49d5b0d98da7c033842db01ce4c233cd5455282d
5 changes: 2 additions & 3 deletions Lib/_pydecimal.py
Original file line number Diff line number Diff line change
Expand Up @@ -465,9 +465,8 @@ def _tento(n):
def _is_less_than_pow10a_use_str(q, a):
"""Try to efficiently check len(str(q)) <= a, or equivalently q < 10**a.

If it is not possible to efficiently compute the comparison, str(q) is
explicitly computed. str(q) may also be computed for cases that cannot
be optimized.
If the comparison cannot be obtained from q.bit_length(),
then str(q) is explicitly computed and may raise ValueError.

Return (len(str(q)) <= a, None) or (len(str(q)) <= a, str(q)).
"""
Expand Down
Loading