Ignore:
Timestamp:
Mar 19, 2014, 11:31:01 PM (11 years ago)
Author:
dmik
Message:

python: Merge vendor 2.7.6 to trunk.

Location:
python/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • python/trunk

  • python/trunk/Doc/library/fileinput.rst

    r2 r391  
    77.. sectionauthor:: Fred L. Drake, Jr. <fdrake@acm.org>
    88
     9**Source code:** :source:`Lib/fileinput.py`
     10
     11--------------
    912
    1013This module implements a helper class and functions to quickly write a
     
    4851
    4952
    50 .. function:: input([files[, inplace[, backup[, mode[, openhook]]]]])
     53.. function:: input([files[, inplace[, backup[, bufsize[, mode[, openhook]]]]]])
    5154
    5255   Create an instance of the :class:`FileInput` class.  The instance will be used
     
    120123
    121124
    122 .. class:: FileInput([files[, inplace[, backup[, mode[, openhook]]]]])
     125.. class:: FileInput([files[, inplace[, backup[,bufsize[, mode[, openhook]]]]]])
    123126
    124127   Class :class:`FileInput` is the implementation; its methods :meth:`filename`,
    125128   :meth:`fileno`, :meth:`lineno`, :meth:`filelineno`, :meth:`isfirstline`,
    126    :meth:`isstdin`, :meth:`nextfile` and :meth:`close` correspond to the functions
    127    of the same name in the module. In addition it has a :meth:`readline` method
    128    which returns the next input line, and a :meth:`__getitem__` method which
    129    implements the sequence behavior.  The sequence must be accessed in strictly
    130    sequential order; random access and :meth:`readline` cannot be mixed.
     129   :meth:`isstdin`, :meth:`nextfile` and :meth:`close` correspond to the
     130   functions of the same name in the module. In addition it has a
     131   :meth:`~file.readline` method which returns the next input line,
     132   and a :meth:`__getitem__` method which implements the sequence behavior.
     133   The sequence must be accessed in strictly sequential order; random access
     134   and :meth:`~file.readline` cannot be mixed.
    131135
    132136   With *mode* you can specify which file mode will be passed to :func:`open`. It
Note: See TracChangeset for help on using the changeset viewer.