>>> a = np.zeros(5, 5) >>> TypeError: data type not understood # thanks numpy, that's very helpful. pretty sure if isinstance(dtype, int): print("did you mean to use a tuple for size?") would have saved the human race a gajillion hours.
-
Show this thread
-
(granted the existence of numpy saved the human race a gajillion times that many hours. my tweet was intended to rant about technically correct error messages that ignore very common use cases / errors in libraries, np.zeros being a common example)
16 replies 7 retweets 425 likesShow this thread
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.