~ubuntu-branches/ubuntu/karmic/python3.0/karmic

« back to all changes in this revision

Viewing changes to Doc/library/parser.rst

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2009-02-16 17:18:23 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20090216171823-1d5cm5qnnjvmnzzm
Tags: 3.0.1-0ubuntu1
New upstream version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
635
635
while the long form uses an indented block and allows nested definitions::
636
636
 
637
637
   def make_power(exp):
638
 
       "Make a function that raises an argument to the exponent `exp'."
 
638
       "Make a function that raises an argument to the exponent `exp`."
639
639
       def raiser(x, y=exp):
640
640
           return x ** y
641
641
       return raiser