Hugo van Kemenade
83360b5869
Docs: replace all datetime imports with import datetime as dt ( #145640 )
2026-03-21 18:02:06 +02:00
Ned Batchelder
852ec18978
Docs: remove unneeded author attributions ( #145002 )
...
These directives are not maintained and misleadingly indicate individual
rather than community ownership.
See https://github.com/python/docs-community/issues/180 for discussion,
and https://github.com/python/devguide/pull/1740 for an update to the
devguide.
Also ensured that everyone is in the Misc/ACKS file.
2026-02-19 18:45:28 -05:00
Ned Batchelder
638d22c6e7
Docs: module pages should not link to themselves ( #144505 )
...
* Docs: module pages should not link to themselves
* fix header punctuation
2026-02-06 06:48:27 -05:00
Fatih Çelik
3ca1f2a370
gh-143241: Fix infinite loop in zoneinfo._common.load_data ( #143243 )
...
Correctly reject truncated TZif files in `ZoneInfo.from_file`.
---------
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2025-12-28 15:48:43 +01:00
Stan Ulbrych
4fb338d844
Doc/library/zoneinfo.rst: Fix typo (#139190 )
...
Removes duplicated wording.
2025-09-22 07:25:39 -04:00
Nicholas Tindle
0f27e10204
gh-137976: Explicitly exclude localtime from available_timezones ( #138012 )
...
* fix: available_timezones is reporting an invalid IANA zone name
* 📜 🤖 Added by blurb_it.
* correct rst format for backticks
---------
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Paul Ganssle <1377457+pganssle@users.noreply.github.com>
2025-09-18 17:32:14 +01:00
Andrii Hrimov
7cc8949692
gh-135273: Unify ZoneInfo.from_file signatures ( #135274 )
...
Align `ZoneInfo.from_file` pure-Python signature with Argument Clinic signature.
2025-06-19 16:47:35 +02:00
Ned Batchelder
bcb435ee8f
docs: module page titles should not start with a link to themselves ( #117099 )
2024-05-08 20:34:40 +01:00
Hugo van Kemenade
3375282bb8
Docs: add link roles with Sphinx extlinks ( #117850 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2024-04-15 21:22:00 +03:00
Erlend E. Aasland
c1ce0d178f
gh-99138: Isolate _zoneinfo ( #99218 )
...
* Convert zone info type to heap type and add it to module state
* Add global variables to module state
2023-02-15 22:58:48 +01:00
Stanley
27d8dc2c9d
gh-85073: Add some missing links to source (GH-99363)
...
Add some missing links to source from Python docs
2022-11-18 11:33:40 -08:00
Christian Heimes
e3b6ff19aa
gh-95451: Update docs for wasm32-emscripten and -wasi platforms (GH-95452)
...
Co-authored-by: Éric <merwok@netwok.org>
Co-authored-by: Michael Droettboom <mdboom@gmail.com>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
2022-08-02 21:00:41 +02:00
Victor Stinner
85918e4ab6
bpo-43774: Add more links to configure options (GH-25363)
2021-04-12 23:27:35 +02:00
Anthony Sottile
9095f76613
Fix code-block in zoneinfo (GH-20201)
...
```
Warning, treated as error:
/tmp/code/Doc/library/zoneinfo.rst:303:Error in "code-block" directive:
1 argument(s) required, 0 supplied.
.. code-block::
>>> a = ZoneInfo("Europe/Berlin")
>>> b = pickle.loads(europe_berlin_pkl)
>>> a is b
True
```
2020-05-18 19:02:54 -07:00
Paul Ganssle
e527ec8abe
bpo-40536: Add zoneinfo.available_timezones (GH-20158)
...
This was not specified in the PEP, but it will likely be a frequently requested feature if it's not included.
This includes only the "canonical" zones, not a simple listing of every valid value of `key` that can be passed to `Zoneinfo`, because it seems likely that that's what people will want.
2020-05-17 21:55:11 -04:00
Paul Ganssle
b17e49e0de
bpo-40503: Add documentation and what's new entry for zoneinfo (GH-20006)
...
This adds the documentation for the `zoneinfo` module added in PEP 615: https://www.python.org/dev/peps/pep-0615/
The implementation itself was GH-19909: https://github.com/python/cpython/pull/19909
bpo-40503: https://bugs.python.org/issue40503
Co-authored-by: Victor Stinner <vstinner@python.org>
2020-05-16 12:14:58 -04:00