Adios' Notes

« Back to posts
  • Viewed
    times

Filed under

  • python
November 2, 2009

An Introduction to Python - pass Statements

  • Edit
  • Delete
  • Tags
  • Autopost

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 True:
    ...       pass # Busy-wait for keyboard interrupt
    ...

via network-theory.co.uk

I don't like this style...

Tweet
  • 0 responses
  • Like
  • Comment