On Thu, Jan 22, 2015 at 9:46 PM, Nicholas Cole <nicholas.c...@gmail.com> wrote:
> Hang on! The particular example may not make a lot of sense but there are
> plenty of places in ordinary Python where functions can accept different
> objects in arguments and return different things. The point here is that
> that will become rapidly messy and hard to read.

Yes; but with proper use of TypeVar can simplify things a lot - have a
read of the PEP.

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to