Not for single objects, no---but think of data structures. Is it going to check that every element in a list is an int? What if the list has a million elements?
? The person I'm responding to is suggesting type checking during runtime in pure Python. Numpy is a different discussion since the types are enforced in C.
It still has a type (e.g., int32, int64, float64, complex128, U8, S8, etc.). The PSF has stated that they're not going to implement type checking at runtime, so it's kinda irrelevant.
2
u/alkasm github.com/alkasm May 30 '19
Not for single objects, no---but think of data structures. Is it going to check that every element in a list is an int? What if the list has a million elements?