Overloading methods in C API

Grzegorz Adam Hankiewicz gradha at terra.es
Sun Jan 19 01:02:23 CET 2003

> >> For whatever historical reasons, operator overloading and
> >> function/method overloading are usually considered as two
> >> separate language features.  C and python have the former but
> >> not the latter.
> > 
> > *cough* C has neither.
> Nonsense.  The operators + - * / do different things depending on
> the types of their operands.  That's operator overloading.

Maybe you are refering to C's usually warningless type coercion in
mathematical operations? Or you know of a way to add two strings
and have them concatenated? Please ellaborate.

More information about the Python-list mailing list