[Python-ideas] Structural type checking for PEP 484

Sven R. Kunze srkunze at mail.de
Thu Sep 17 23:45:59 CEST 2015


On 17.09.2015 23:19, Ryan Gonzalez wrote:
> def process_integer_coordinate_tuples(integer_tuple_1, integer_tuple_2, is_fast): ...
>
> vs
>
> def process_coords(t1: Tuple[int, int], t2: Tuple[int, int], fast: bool): ...
>
> Java's fatal mistake.

Care to elaborate?


More information about the Python-ideas mailing list