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

« back to all changes in this revision

Viewing changes to Doc/library/os.rst

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2010-08-07 20:03:08 UTC
  • mfrom: (10.1.27 sid)
  • Revision ID: james.westby@ubuntu.com-20100807200308-bwsyymoc4donr9a9
Tags: 2.6.6~rc1-1ubuntu1
* Merge with Debian; remaining changes:
  - Regenerate the control file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
705
705
 
706
706
      This function is intended for low-level I/O.  For normal usage, use the
707
707
      built-in function :func:`open`, which returns a "file object" with
708
 
      :meth:`~file.read` and :meth:`~file.wprite` methods (and many more).  To
 
708
      :meth:`~file.read` and :meth:`~file.write` methods (and many more).  To
709
709
      wrap a file descriptor in a "file object", use :func:`fdopen`.
710
710
 
711
711
 
2035
2035
 
2036
2036
   The :mod:`subprocess` module provides more powerful facilities for spawning new
2037
2037
   processes and retrieving their results; using that module is preferable to using
2038
 
   this function.  Use the :mod:`subprocess` module.  Check especially the
2039
 
   :ref:`subprocess-replacements` section.
 
2038
   this function.  See the
 
2039
   :ref:`subprocess-replacements` section in the :mod:`subprocess` documentation
 
2040
   for some helpful recipes.
2040
2041
 
2041
2042
   Availability: Unix, Windows.
2042
2043