Use of a variable in parent loop

Christian Gollwitzer auriocus at gmx.de
Mon Sep 28 04:05:58 EDT 2020


Am 28.09.20 um 07:38 schrieb Stephane Tougard:
> On 2020-09-28, MRAB <python at mrabarnett.plus.com> wrote:
>> It's used where the language requires a statement.
>>
>> In, say, C, you would use empty braces:
>>
>>       while (process_next_item()) {
>>           /* Do nothing. */
>>       }
> 
> If I want to express nothing in C, I put nothing and it works fine.
> 
> #include <stdio.h>
> 
> int main(int argc, char * argv[])
> {
>    if(1 == 1)
>      ;

No. You put ";", that's not nothing.

	Christian


More information about the Python-list mailing list