4.5 pass Statements

The pass statement does nothing. It can be used when a statement is required syntactically but the program requires no action. For example:

>>> while 1:
...       pass # Busy-wait for keyboard interrupt
...


guido@python.org