Skip to content

Commit 49d5b0d

Browse files
committed
reformulate comment
1 parent 6b55711 commit 49d5b0d

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎Lib/_pydecimal.py‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -465,9 +465,8 @@ def _tento(n):
465465
def _is_less_than_pow10a_use_str(q, a):
466466
"""Try to efficiently check len(str(q)) <= a, or equivalently q < 10**a.
467467
468-
If it is not possible to efficiently compute the comparison, str(q) is
469-
explicitly computed. str(q) may also be computed for cases that cannot
470-
be optimized.
468+
If the comparison cannot be obtained from q.bit_length(),
469+
then str(q) is explicitly computed and may raise ValueError.
471470
472471
Return (len(str(q)) <= a, None) or (len(str(q)) <= a, str(q)).
473472
"""

0 commit comments

Comments
 (0)