[Python-ideas] PEP 315: do-while

Joshua Landau joshua.landau.ws at gmail.com
Thu Jun 27 01:25:26 CEST 2013


On 27 June 2013 00:17, Andrew Barnert <abarnert at yahoo.com> wrote:
>
> In case it's not obvious how ridiculous it is to extrapolate MISRA-C to other languages…
>
> I went through the 127 rules in MISRA-C 1998. About 52 of them could be extrapolated to Python. Of those, 20 make some sense; the other 32 would be either ridiculous or disastrous to apply in Python. (In fact, much the same is true even for more closely-related languages like C++ or JavaScript.)
>
> If you're curious about the details, see http://stupidpythonideas.blogspot.com/2013/06/misra-c-and-python.html.

"67. rcm: Don't rebind the iterator in a for loop."

That sounds quite sane to me...


More information about the Python-ideas mailing list