~ubuntu-branches/ubuntu/lucid/python2.6/lucid

« back to all changes in this revision

Viewing changes to Doc/library/2to3.rst

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2009-10-03 12:03:05 UTC
  • mto: (10.1.5 experimental)
  • mto: This revision was merged to the branch mainline in revision 32.
  • Revision ID: james.westby@ubuntu.com-20091003120305-hij6yssh0figh590
Tags: upstream-2.6.3
ImportĀ upstreamĀ versionĀ 2.6.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
84
84
The :option:`-v` option enables output of more information on the translation
85
85
process.
86
86
 
87
 
When the :option:`-p` is passed, 2to3 treats ``print`` as a function instead of
88
 
a statement.  This is useful when ``from __future__ import print_function`` is
89
 
being used.  If this option is not given, the print fixer will surround print
90
 
calls in an extra set of parentheses because it cannot differentiate between the
91
 
print statement with parentheses (such as ``print ("a" + "b" + "c")``) and a
92
 
true function call.
93
 
 
94
87
 
95
88
:mod:`lib2to3` - 2to3's library
96
89
-------------------------------
101
94
.. moduleauthor:: Collin Winter
102
95
 
103
96
 
104
 
.. warning::
 
97
.. note::
105
98
 
106
99
   The :mod:`lib2to3` API should be considered unstable and may change
107
100
   drastically in the future.