next up previous contents
Next: 4.6 Defining Functions Up: 4 More Control Flow Previous: 4.4 Break and Continue

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@cnri.reston.va.us