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

« back to all changes in this revision

Viewing changes to Doc/distutils/apiref.rst

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2010-03-11 13:30:19 UTC
  • mto: (10.1.13 sid)
  • mto: This revision was merged to the branch mainline in revision 44.
  • Revision ID: james.westby@ubuntu.com-20100311133019-sblbooa3uqrkoe70
Tags: upstream-2.6.5~rc2
ImportĀ upstreamĀ versionĀ 2.6.5~rc2

Show diffs side-by-side

added added

removed removed

Lines of Context:
1623
1623
   +------------------+--------------------------------+---------+
1624
1624
 
1625
1625
   Note that since *rstrip_ws* can strip the trailing newline, the semantics of
1626
 
   :meth:`readline` must differ from those of the builtin file object's
 
1626
   :meth:`readline` must differ from those of the built-in file object's
1627
1627
   :meth:`readline` method!  In particular, :meth:`readline`  returns ``None`` for
1628
1628
   end-of-file: an empty string might just be a  blank line (or an all-whitespace
1629
1629
   line), if *rstrip_ws* is true  but *skip_blanks* is not.
1631
1631
 
1632
1632
   .. method:: TextFile.open(filename)
1633
1633
 
1634
 
      Open a new file *filename*. This overrides any *file* or  *filename* constructor
1635
 
      arguments.
 
1634
      Open a new file *filename*.  This overrides any *file* or *filename*
 
1635
      constructor arguments.
1636
1636
 
1637
1637
 
1638
1638
   .. method:: TextFile.close()
1962
1962
Subclasses of :class:`Command` must define the following methods.
1963
1963
 
1964
1964
 
1965
 
.. method:: Command.initialize_options()(S)
 
1965
.. method:: Command.initialize_options()
1966
1966
 
1967
 
   et default values for all the options that this command supports.  Note that
 
1967
   Set default values for all the options that this command supports.  Note that
1968
1968
   these defaults may be overridden by other commands, by the setup script, by
1969
1969
   config files, or by the command-line.  Thus, this is not the place to code
1970
1970
   dependencies between options; generally, :meth:`initialize_options`