seeking deeper (language theory) reason behind Python design choice

Marko Rauhamaa marko at pacujo.net
Fri May 11 08:34:18 EDT 2018


Chris Angelico <rosuav at gmail.com>:
> On Fri, May 11, 2018 at 7:10 PM, Gregory Ewing
> <greg.ewing at canterbury.ac.nz> wrote:
>> I suggest adding a new builtin constant:
>>>> YouFeelLikeIt = True
>>>> Then all pseudo-infinite loops can be written
>>>> while YouFeelLikeIt:
>> ...
>>>> Personally, I prefer to use string literals.
>> while "you feel like it":
> ...

I still think my use of the Ellipsis speaks more to the maintainer of
the code:
 while ...:
 pass
Marko


More information about the Python-list mailing list

AltStyle によって変換されたページ (->オリジナル) /