From: Raymond Hettinger Date: Fri, 25 Mar 2011 19:41:07 +0000 (-0700) Subject: Issue #11071: Fix whatsnew description of O/S access to raw bytes. X-Git-Tag: v3.2.1b1~214 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=df07aacebb5e414d2dbf1282df75761a6746c4e6;p=python Issue #11071: Fix whatsnew description of O/S access to raw bytes. --- diff --git a/Doc/whatsnew/3.2.rst b/Doc/whatsnew/3.2.rst index 20ce228d51..d411d85ee8 100644 --- a/Doc/whatsnew/3.2.rst +++ b/Doc/whatsnew/3.2.rst @@ -1499,11 +1499,11 @@ filenames: >>> os.fsencode(filename) b'Sehensw\xc3\xbcrdigkeiten' -Some operating systems allow direct access to the unencoded bytes in the +Some operating systems allow direct access to encoded bytes in the environment. If so, the :attr:`os.supports_bytes_environ` constant will be true. -For direct access to unencoded environment variables (if available), +For direct access to encoded environment variables (if available), use the new :func:`os.getenvb` function or use :data:`os.environb` which is a bytes version of :data:`os.environ`.