From: <gvwilson@nevex.com> > > > > d <c> e > Replace '<' and '>' with the symbols of your choice --- embedding the > conditional in the middle is still an interesting idea... Which brings us back to if and else: a = condition ? truecase : falsecase would be a = truecase if condition else falsecase What's unintuitive at this point is the shortcutting, assuming that it would still apply. 'condition' would get evaluated before truecase, and truecase might not get evaluated at all. Still, it 'reads' good to me. Not sure it's all that Pythonic though. --david
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4