Re: Hack or beauty?
Lawrence D’Oliveiro <[email protected]> Wed, 13 May 2026 21:37:55 -0000 (UTC)
| Newsgroups | comp.lang.python |
|---|---|
| Organization | A noiseless patient Spider |
| Message-ID | <[email protected]> |
On Wed, 13 May 2026 13:58:50 -0500, Michael F. Stemper wrote: > for variable in angles if options.angle else comps: The “«true-part» if «cond» else «false-part»” conditional expression syntax in Python is something I consider to be one of the few real mistakes in the design of the language. Every other language adopts the C-style syntax “«cond» ? «true-part» : «false-part»”, but Python had to be different, just for the sake of being different.