seeking deeper (language theory) reason behind Python design choice

Chris Angelico rosuav at gmail.com
Fri May 11 05:44:08 EDT 2018


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":
    ...

Which, in a non-joking context, tends to look like this:

while "moar data":
    data = get_data()
    process_data(data)

ChrisA



More information about the Python-list mailing list