3 ms·
I have a favorite NumPy wat: >>> import numpy as np >>> 'x'*np.float64(3.5) 'xxx' (on recent NumPy releases this raises a deprecation warning) Clear
by ngoldbaum 11y ago
I have a favorite NumPy wat:
>>> import numpy as np
>>> 'x'*np.float64(3.5)
'xxx'
(on recent NumPy releases this raises a deprecation warning)
Clearly the correct answer is 'xxx>' ;)
- aldanor 11y agoHow about >>> type(np.uint64(1) + 1) numpy.float64