On Thu, Jul 4, 2013 at 5:31 AM, Haoyi Li <haoyi.sg at gmail.com> wrote: > Random thought: this kind of "different implementations for different > types" seems exactly what PEP443 (http://www.python.org/dev/peps/pep-0443/) > is about; it would save you having the nasty big chunk of if-elses within > sum() itself, and would let other people incrementally implement special > sums for their own special data types without having to muck with the std > lib code. > Exactly. Though 443 allows dispatching only on simple type names. Python doesn't have the concept of list<int>, or list<list>. -- Juancarlo *Añez* -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-ideas/attachments/20130704/a0fbb4a5/attachment.html>