On Sun, May 13, 2018 at 2:05 PM, Cameron Simpson <c...@cskk.id.au> wrote: > On 11May2018 11:40, Jacco van Dorp <j.van.d...@deonet.nl> wrote: >> >> [...] That all said, I would still prefer: >> >> if re.match(stuff) as m: >> >> which is exactly equal to the := in line length and parallels with. >> While that may -technically- be a different beast. > > > Yeah, this is my favorite also. Has the same feel and ordering as with, > import and except. > > Could someone point me to a post which nicely describes the rationale behind > its rejection? I'm sure there's one in the many in this discussion but I've > not found it yet.
https://www.python.org/dev/peps/pep-0572/#special-casing-conditional-statements https://www.python.org/dev/peps/pep-0572/#alternative-spellings I'm not sure which version you're looking at, so there's the rejections of both. ChrisA _______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/