Mega Code Archive

 
Categories / Python Tutorial / Statement
 

The Class Namespace

# The following two statements are (more or less) equivalent:  def foo(x): return x*x  foo = lambda x: x*x