diff options
| author | Laurie <lastephey@lbl.gov> | 2020-07-12 15:50:15 -0700 |
|---|---|---|
| committer | Laurie <lastephey@lbl.gov> | 2020-07-12 15:50:15 -0700 |
| commit | 746b0fcc3eb18d7c6f724d4553536b6fdab38c6e (patch) | |
| tree | 5ea400b2cb4efec9e6e404770373c42421b4b4bd /numpy/random/_generator.pyx | |
| parent | d88f217b26bf300dc0e5ecaf8e59b81f6a1d6e9d (diff) | |
| download | numpy-746b0fcc3eb18d7c6f724d4553536b6fdab38c6e.tar.gz | |
DOC: use print() instead of str() for generator object to pass circleci tests
Diffstat (limited to 'numpy/random/_generator.pyx')
| -rw-r--r-- | numpy/random/_generator.pyx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/numpy/random/_generator.pyx b/numpy/random/_generator.pyx index 550b93174..cc2852da7 100644 --- a/numpy/random/_generator.pyx +++ b/numpy/random/_generator.pyx @@ -4360,8 +4360,8 @@ def default_rng(seed=None): >>> import numpy as np >>> rng = np.random.default_rng(12345) - >>> str(rng) - 'Generator(PCG64)' + >>> print(rng) + Generator(PCG64) >>> rfloat = rng.random() >>> rfloat 0.22733602246716966 @@ -4383,8 +4383,8 @@ def default_rng(seed=None): >>> import numpy as np >>> rng = np.random.default_rng(seed=42) - >>> str(rng) - 'Generator(PCG64)' + >>> print(rng) + Generator(PCG64) >>> arr1 = rng.random((3, 3)) >>> arr1 array([[0.77395605, 0.43887844, 0.85859792], |
