[Python-3000] PEP 3100 Comments
Giovanni Bajo
rasky at develer.com
Mon May 8 09:57:03 CEST 2006
Paul Moore <p.f.moore at gmail.com> 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
More information about the Python-3000
mailing list