mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Issue #11071: Fix whatsnew description of O/S access to raw bytes.
This commit is contained in:
commit
4967be074b
1 changed files with 2 additions and 2 deletions
|
@ -1499,11 +1499,11 @@ filenames:
|
||||||
>>> os.fsencode(filename)
|
>>> os.fsencode(filename)
|
||||||
b'Sehensw\xc3\xbcrdigkeiten'
|
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
|
environment. If so, the :attr:`os.supports_bytes_environ` constant will be
|
||||||
true.
|
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`
|
use the new :func:`os.getenvb` function or use :data:`os.environb`
|
||||||
which is a bytes version of :data:`os.environ`.
|
which is a bytes version of :data:`os.environ`.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue