polymorphism w/out signatures?

Donn Cave donn at drizzle.com
Fri May 7 02:07:20 EDT 2004


Quoth rook_5150 at yahoo.com (Bryan Castillo):
| Donn Cave <donn at u.washington.edu> wrote in message news:<donn-0FC5DB.15041506052004 at nntp6.u.washington.edu>...
...
|> On the other hand, if you want to support a string as an single
|> value instead of a list or tuple of values, then you're not
|> really talking about polymorphism here anyway.  When a function
|> decides to support various unrelated types for a particular
|> parameter, I don't know what you call that, but it isn't
|> polymorphism in any useful sense.
|
| The original poster is talking about function/method overloading as
| you have in C++ or Java.

I don't think we can reasonably call anything function overloading
in Python, but at any rate, whatever you call it, it isn't polymorphism.

	Donn Cave, donn at drizzle.com



More information about the Python-list mailing list