I don't think this is really useful. For else in itself is a very odd thing to have. For-elif-else will make this even more complicated. But that's just my opinion.
Cheers, Siddharth Prajosh On Sun, 15 Dec, 2019, 19:28 Anders Hovmöller, <bo...@killingar.net> wrote: > In my opinion this doesn't make sense. For else is already unreadable and > confusing so adding to it would be more so. > > > On 15 Dec 2019, at 00:16, komissar.off.and...@gmail.com wrote: > > > > Hello! > > I think it will be useful in Python syntax if we can use "elif" in "for" > and "while" statements besides "else" > > > > Example > > for i in range(j): > > ... > > elif i > 5: > > ... > > else: > > ... > > > > What you think about this change? > > _______________________________________________ > > Python-ideas mailing list -- python-ideas@python.org > > To unsubscribe send an email to python-ideas-le...@python.org > > https://mail.python.org/mailman3/lists/python-ideas.python.org/ > > Message archived at > https://mail.python.org/archives/list/python-ideas@python.org/message/CGGP7IOZSAMK7SIAYHQMR7ZX3CPGTH3K/ > > Code of Conduct: http://python.org/psf/codeofconduct/ > _______________________________________________ > Python-ideas mailing list -- python-ideas@python.org > To unsubscribe send an email to python-ideas-le...@python.org > https://mail.python.org/mailman3/lists/python-ideas.python.org/ > Message archived at > https://mail.python.org/archives/list/python-ideas@python.org/message/ZXENOWPDNDGA2BKKGAZNHLKNT4ZKQCRK/ > Code of Conduct: http://python.org/psf/codeofconduct/ >
_______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/NI22C4LEJSVHW3T67GDICS2UCCUFA5OH/ Code of Conduct: http://python.org/psf/codeofconduct/