diff options
author | Jakob <jakobjakobson13@posteo.de> | 2020-10-24 13:12:06 +0200 |
---|---|---|
committer | Jakob <jakobjakobson13@posteo.de> | 2020-10-24 13:12:06 +0200 |
commit | b6e5711fd50969fb87d784e835d9ccc62dde716d (patch) | |
tree | 17eda608e28585f1733cbd20bb381c79755cca60 /numpy/random/_examples/numba | |
parent | c0043831c46ec07fdc34999d664af654ada0825f (diff) | |
download | numpy-b6e5711fd50969fb87d784e835d9ccc62dde716d.tar.gz |
conversion of strings to fstrings
Diffstat (limited to 'numpy/random/_examples/numba')
-rw-r--r-- | numpy/random/_examples/numba/extending.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/random/_examples/numba/extending.py b/numpy/random/_examples/numba/extending.py index 0d240596b..da4d93944 100644 --- a/numpy/random/_examples/numba/extending.py +++ b/numpy/random/_examples/numba/extending.py @@ -44,9 +44,9 @@ assert r1.shape == (n,) assert r1.shape == r2.shape t1 = timeit(numbacall, number=1000) -print('{:.2f} secs for {} PCG64 (Numba/PCG64) gaussian randoms'.format(t1, n)) ++print(f'{t1:.2f} secs for {n} PCG64 (Numba/PCG64) gaussian randoms') t2 = timeit(numpycall, number=1000) -print('{:.2f} secs for {} PCG64 (NumPy/PCG64) gaussian randoms'.format(t2, n)) +print(f'{t2:.2f} secs for {n} PCG64 (NumPy/PCG64) gaussian randoms') # example 2 |