3 ms·
"There should be one-- and preferably only one --obvious way to do it." 'while' is it, 'until' is not. The author even notes that 'until cond' is functionally
by zephjc 16y ago
"There should be one-- and preferably only one --obvious way to do it." 'while' is it, 'until' is not.
The author even notes that 'until cond' is functionally identical to 'while not condition'. A fun exercise for the author, if a bit silly.
- deleted 16y ago[deleted]
- brlewis 16y agoFrom the section "A language-advocacy digression": This article doesn’t attempt to suggest the addition of an until statement to Python. Although I think such a statement would make some code clearer, and this article displays how easy it is to add, I completely respect Python’s philosophy of minimalism. All I’m trying to do here, really, is gain some insight into the inner workings of Python.