[Python-Dev] Typing syntax and ecosystem, take 2

2021-04-13 Thread Stephen J. Turnbull
Hugh Fisher writes: > In any Python 3.6 or later, type > > >>> x : float = 1 > >>> isinstance(x, float) > >>> type(x) [snip] > As someone who has programmed in FORTRAN, Pascal, C/C++, > Java, and Go this is not at all what I consider reasonable. >From the point of view of

[Python-Dev] Typing syntax and ecosystem, take 2

2021-04-12 Thread Hugh Fisher
In any Python 3.6 or later, type >>> x : float = 1 >>> isinstance(x, float) or replace the second line with >>> type(x) As someone who has programmed in FORTRAN, Pascal, C/C++, Java, and Go this is not at all what I consider reasonable. I do not believe other programmers with