Python is DOOMED! Again!

Chris Angelico rosuav at gmail.com
Thu Jan 22 11:44:23 CET 2015


On Thu, Jan 22, 2015 at 9:37 PM, Mario Figueiredo <marfig at gmail.com> wrote:
> Chris,
>
>> Hold on a moment, how often do you really do this kind of thing with
>> "might be one of them or a sequence"?
>
>
> Is it really that important that I give a more real-life example, or can't
> you just get the problem from a ad-hoc example?
>
> I could replace the variable names with spam, ham and eggs, if you wish.

I'd rather see a real-world example that can't be solved with either
better design or some simple aliases. (And yes, the type hinting does
allow for aliases.)

ChrisA



More information about the Python-list mailing list