Type hinting of Python is just a toy ?
Terry Reedy
tjreedy at udel.edu
Fri Jan 4 11:25:56 EST 2019
On 1/4/2019 4:04 AM, iamybj--- via Python-list wrote:
> In fact, there is only 3 types in all prigramming languages.
'Category' would be a better term. Better said might be: "One can
usefully group types/classes of values/objects into 3 categories."
> Primitive type: int, string, bool, char....
> Complex type: struct or class
> Array Type: int[10], string[100], struct[1000]
And tuples are an array class, in particular an immutable and and
therefore hashable array, and therefore possible members of sets and
dict keys.
--
Terry Jan Reedy
More information about the Python-list
mailing list