Python is DOOMED! Again!

Chris Angelico rosuav at gmail.com
Thu Jan 22 13:14:59 CET 2015


On Thu, Jan 22, 2015 at 10:12 PM, Mario Figueiredo <marfig at gmail.com> wrote:
> I agree. TypeVar will help tremendously by removing the need for union in
> cases of object inheritance. But only on cases of object inheritance.

Why only inheritance? One of the examples is of str and bytes, which
don't have any inheritance relationship (they both just subclass
object), and it works just fine for that.

ChrisA



More information about the Python-list mailing list