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, <[email protected]> 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, [email protected] 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 -- [email protected] > > To unsubscribe send an email to [email protected] > > https://mail.python.org/mailman3/lists/python-ideas.python.org/ > > Message archived at > https://mail.python.org/archives/list/[email protected]/message/CGGP7IOZSAMK7SIAYHQMR7ZX3CPGTH3K/ > > Code of Conduct: http://python.org/psf/codeofconduct/ > _______________________________________________ > Python-ideas mailing list -- [email protected] > To unsubscribe send an email to [email protected] > https://mail.python.org/mailman3/lists/python-ideas.python.org/ > Message archived at > https://mail.python.org/archives/list/[email protected]/message/ZXENOWPDNDGA2BKKGAZNHLKNT4ZKQCRK/ > Code of Conduct: http://python.org/psf/codeofconduct/ >
_______________________________________________ Python-ideas mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/NI22C4LEJSVHW3T67GDICS2UCCUFA5OH/ Code of Conduct: http://python.org/psf/codeofconduct/
