Paul Moore <[EMAIL PROTECTED]> wrote:

>> Lets say we outlaw the use of isSequence - how do you propose to
>> implement this type of pattern? Or are you saying that this pattern
>> is bad style?
>
> Generic (overloadable) functions. See the archives - it's possible the
> discussion was before you subscribed to the list, I don't recall
> seeing your postings here until after then.
>
> Generic functions are a perfect fit for this type of API.


Uh? This is immaterial. Generic functions still have to do some sort of
dispatching, behind the hood. How do they do that? With isinstance only? So,
how do you propose to implement a genericized function which receivies an
argument of sequence "duck-type"?

Giovanni Bajo

_______________________________________________
Python-3000 mailing list
Python-3000@python.org
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to