PEP 615: Mark as Final (#3592)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
This commit is contained in:
parent
f05704238b
commit
33150178ce
|
@ -2,14 +2,14 @@ PEP: 615
|
||||||
Title: Support for the IANA Time Zone Database in the Standard Library
|
Title: Support for the IANA Time Zone Database in the Standard Library
|
||||||
Author: Paul Ganssle <paul at ganssle.io>
|
Author: Paul Ganssle <paul at ganssle.io>
|
||||||
Discussions-To: https://discuss.python.org/t/3468
|
Discussions-To: https://discuss.python.org/t/3468
|
||||||
Status: Accepted
|
Status: Final
|
||||||
Type: Standards Track
|
Type: Standards Track
|
||||||
Content-Type: text/x-rst
|
|
||||||
Created: 22-Feb-2020
|
Created: 22-Feb-2020
|
||||||
Python-Version: 3.9
|
Python-Version: 3.9
|
||||||
Post-History: 25-Feb-2020, 29-Mar-2020
|
Post-History: 25-Feb-2020, 29-Mar-2020
|
||||||
Replaces: 431
|
Replaces: 431
|
||||||
|
|
||||||
|
.. canonical-doc:: :external+python:mod:`zoneinfo`
|
||||||
|
|
||||||
Abstract
|
Abstract
|
||||||
========
|
========
|
||||||
|
@ -463,7 +463,9 @@ arguments), the ``zoneinfo`` module will use the environment variable
|
||||||
|
|
||||||
``PYTHONTZPATH`` is an ``os.pathsep``-delimited string which *replaces* (rather
|
``PYTHONTZPATH`` is an ``os.pathsep``-delimited string which *replaces* (rather
|
||||||
than augments) the default time zone path. Some examples of the proposed
|
than augments) the default time zone path. Some examples of the proposed
|
||||||
semantics::
|
semantics:
|
||||||
|
|
||||||
|
.. code-block:: console
|
||||||
|
|
||||||
$ python print_tzpath.py
|
$ python print_tzpath.py
|
||||||
("/usr/share/zoneinfo",
|
("/usr/share/zoneinfo",
|
||||||
|
@ -481,7 +483,9 @@ semantics::
|
||||||
This provides no built-in mechanism for prepending or appending to the default
|
This provides no built-in mechanism for prepending or appending to the default
|
||||||
search path, as these use cases are likely to be somewhat more niche. It should
|
search path, as these use cases are likely to be somewhat more niche. It should
|
||||||
be possible to populate an environment variable with the default search path
|
be possible to populate an environment variable with the default search path
|
||||||
fairly easily::
|
fairly easily:
|
||||||
|
|
||||||
|
.. code-block:: console
|
||||||
|
|
||||||
$ export DEFAULT_TZPATH=$(python -c \
|
$ export DEFAULT_TZPATH=$(python -c \
|
||||||
"import os, zoneinfo; print(os.pathsep.join(zoneinfo.TZPATH))")
|
"import os, zoneinfo; print(os.pathsep.join(zoneinfo.TZPATH))")
|
||||||
|
@ -946,14 +950,3 @@ Copyright
|
||||||
|
|
||||||
This document is placed in the public domain or under the
|
This document is placed in the public domain or under the
|
||||||
CC0-1.0-Universal license, whichever is more permissive.
|
CC0-1.0-Universal license, whichever is more permissive.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
..
|
|
||||||
Local Variables:
|
|
||||||
mode: indented-text
|
|
||||||
indent-tabs-mode: nil
|
|
||||||
sentence-end-double-space: t
|
|
||||||
fill-column: 70
|
|
||||||
coding: utf-8
|
|
||||||
End:
|
|
||||||
|
|
Loading…
Reference in New Issue