Python and generic programming
Christophe Cavalaria
chris.cavalaria at free.fr
Tue Oct 26 17:46:45 EDT 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