Website hosting and domain hosting service by Active-Venture.com
  

 Back to Index


6.4 The pass statement

 

pass_stmt  ::=  "pass"
Download entire grammar as text.

pass is a null operation -- when it is executed, nothing happens. It is useful as a placeholder when a statement is required syntactically, but no code needs to be executed, for example:

 

def f(arg): pass    # a function that does nothing (yet)

class C: pass       # a class with no methods (yet)

 

  

 

2002-2004 Active-Venture.com Website Hosting Service

 

Disclaimer: This documentation is provided only for the benefits of our hosting customers.
For authoritative source of the documentation, please refer to http://python.org/doc/

 

Active-Domain.com offers cheap domain registration, domain name transfer and domain search services   Cheap domain name - Cheap domain name registration service including free domain hosting services  

Domain registration : Buy domain name or register domain name from $5.95/year only