Am 28.09.20 um 07:38 schrieb Stephane Tougard:
On 2020-09-28, MRAB <pyt...@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
--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to