Adios’ Notes
Adios Tsai


   

Search

November 2nd, 7:57am 0 comments

An Introduction to Python - pass Statements

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
    ... 

I don't like this style...

Loading mentions Retweet

Posted 8 months ago

Comments (0)

Leave a comment...

 
Got an account with one of these? Login here, or just enter your comment below.
Posterous-login    twitter