[Python-Dev] [Python-checkins] r88121 - python/branches/py3k/Doc/whatsnew/3.2.rst

Victor Stinner victor.stinner at haypocalc.com
Thu Jan 20 13:41:36 CET 2011


Le jeudi 20 janvier 2011 à 10:04 +0100, raymond.hettinger a écrit :
> +Some operating systems allow direct access to the unencoded 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),
> +use the new :func:`os.getenvb` function or use :data:`os.environb`
> +which is a bytes version of :data:`os.environ`.

Hum, I think that "undecoded" bytes term is more appropriate. You can
decode bytes and encode characters, but not the opposite.

Victor



More information about the Python-Dev mailing list