pass Statements

pass Statements — Does nothing.

>>> while True:
...     pass  # Busy-wait for keyboard interrupt (Ctrl+C)

Can be used when a statement is required syntactically but the program requires no action.

Can be used is as a place-holder for a function or conditional body when you are working on new code, allowing you to keep thinking at a more abstract level.

pass Statements — Structure map

Clickable & Draggable!

pass Statements — Related pages: