[Python-ideas] for-loop-if like list comps have?
Christopher Welborn
cjwelborn at live.com
Sat Mar 15 18:22:37 CET 2014
On 03/14/2014 09:37 PM, Steven D'Aprano wrote:
> This suggestion has been made, oh, a million times -- not that I would
> ever exaggerate... *wink* -- and has been rejected each time.
Oops, I wouldn't have mentioned it if I had known.
> or other combinations like:
>
> while x if cond:
> if cond while x:
> if cond try:
> for x try:
> for x if y try:
>
Yeh I could see things getting out of hand if all of
those were added. You both have made good points.
Thank you.
--
\¯\ /¯/\
\ \/¯¯\/ / / Christopher Welborn (cj)
\__/\__/ / cjwelborn at live·com
\__/\__/ http://welbornprod.com
More information about the Python-ideas
mailing list