[Python-checkins] r72311 - in python/branches/pep-0383/Doc/library: codecs.rst os.rst
martin.v.loewis
python-checkins at python.org
Tue May 5 06:05:29 CEST 2009
Author: martin.v.loewis
Date: Tue May 5 06:05:28 2009
New Revision: 72311
Log:
Documentation patch from Georg.
Modified:
python/branches/pep-0383/Doc/library/codecs.rst
python/branches/pep-0383/Doc/library/os.rst
Modified: python/branches/pep-0383/Doc/library/codecs.rst
==============================================================================
--- python/branches/pep-0383/Doc/library/codecs.rst (original)
+++ python/branches/pep-0383/Doc/library/codecs.rst Tue May 5 06:05:28 2009
@@ -335,7 +335,7 @@
+------------------+---------+--------------------------------------------+
.. versionadded:: 3.1
- The ``'surrogates'`` error handler.
+ The ``'utf8b'`` and ``'surrogates'`` error handlers.
The set of allowed values can be extended via :meth:`register_error`.
Modified: python/branches/pep-0383/Doc/library/os.rst
==============================================================================
--- python/branches/pep-0383/Doc/library/os.rst (original)
+++ python/branches/pep-0383/Doc/library/os.rst Tue May 5 06:05:28 2009
@@ -50,6 +50,7 @@
have currently been registered: ``'posix'``, ``'nt'``, ``'mac'``, ``'os2'``,
``'ce'``, ``'java'``.
+
.. _os-filenames:
File Names, Command Line Arguments, and Environment Variables
@@ -64,13 +65,16 @@
.. versionchanged:: 3.1
On some systems, conversion using the file system encoding may
fail. In this case, Python uses the ``utf8b`` encoding error
- handler.
+ handler, which means that undecodable bytes are replaced by a
+ Unicode character U+DCxx on decoding, and these are again
+ translated to the original byte on encoding.
The file system encoding must guarantee to successfully decode all
bytes below 128. If the file system encoding fails to provide this
guarantee, API functions may raise UnicodeErrors.
+
.. _os-procinfo:
Process Parameters
@@ -709,6 +713,7 @@
.. function:: getcwd()
Return a string representing the current working directory.
+ Availability: Unix, Windows.
.. function:: getcwdb()
@@ -815,7 +820,7 @@
entries ``'.'`` and ``'..'`` even if they are present in the directory.
Availability: Unix, Windows.
- This function can be called with a bytes or string argument, and return
+ This function can be called with a bytes or string argument, and returns
filenames of the same datatype.
More information about the Python-checkins
mailing list