Python and generic programming

Christophe Cavalaria chris.cavalaria at
Tue Oct 26 23:46:45 CEST 2004

Oliver Fromme wrote:

> The appropriate type checking is done at compile time.  That
> is, if your program calls sort with two lists of different
> type (e.g. a list of strings and a list of ints), then the
> compiler will detect that and report an error.

This must be a bad example because I expect to be able to sort a list of
integers and a list of strings with the same sort function.

More information about the Python-list mailing list