Skip to content

Error message not shown in very specific cases

For example in this case:

Input > use randint from numpy.random
Input > randint()
Type error: None:1:37 --> randint() <--
randint() takes at least 1 positional argument (0 given)
Output >
Input > randint(10)
Output > 7
Input > randint(0, 10, 5)
Output >
Input > a = randint(0, 10, 5)
Input > a
Output > n.c.
Input > %start
Input > a
Evaluation error: None:1:31 --> a = randint(0, 10, 5) <--
AttributeError: Neither Quantity object nor its magnitude (5) has attribute 'size'
Input > print(randint(0, 10, 5))
Input >

It is expected to print the error message when randint(0, 10, 5) is simply printed.

The specific case is assumingly the run-time error type.