Skip to content

Commit 80f9d88

Browse files
committed
wording
1 parent 07b5e20 commit 80f9d88

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

bitarray/util.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,9 @@ def random_p(__n, p=0.5, endian=None):
5959
The bitarrays are reproducible when calling Python's `random.seed()` with a
6060
specific seed value.
6161
62-
This function is only implemented when using Python 3.12 or higher, as it
63-
requires the standard library function `random.binomialvariate()`.
62+
This function requires Python 3.12 or higher, as it depends on the standard
63+
library function `random.binomialvariate()`. Raises `NotImplementedError`
64+
when Python version is too low.
6465
"""
6566
if sys.version_info[:2] < (3, 12):
6667
raise NotImplementedError("bitarray.util.random_p() requires "

0 commit comments

Comments
 (0)