Re: Hack or beauty?

Chris Angelico via Python-list <[email protected]> Thu, 14 May 2026 07:49:19 +1000
Newsgroups gmane.comp.python.general
Message-ID <CAPTjJmqn7_H=JL-TfJGmhbVnJFkiENiVjwxnSFdaLyub1UaUyQ@mail.gmail.com>
On Thu, 14 May 2026 at 06:40, Michael F. Stemper via Python-list
<[email protected]> wrote:
> for variable in angles if options.angle else comps:
>
> What I'd like to know is: Is this an egregious abuse of the
> language, or is it perfectly pythonic?
>
> Opinions, and even violent disagreement, are solicited.
>

Perfectly reasonable. You're iterating over this-or-that.

ChrisA