@@ -134,7 +134,7 @@ behavior for end users.
134
134
``ZoneInfo `` objects are ejected when no references to them exist (for
135
135
example, a cache implemented with a ``weakref.WeakValueDictionary ``) — it is
136
136
allowed but not required or recommended to implement this with a "strong"
137
- cache, where all ``ZoneInfo `` files are kept alive indefinitely.
137
+ cache, where all ``ZoneInfo `` objects are kept alive indefinitely.
138
138
139
139
.. code-block ::
140
140
@@ -190,11 +190,11 @@ of the interpreter, it must not invalidate any caches or modify any
190
190
existing ``ZoneInfo `` objects. Newly constructed ``ZoneInfo `` objects, however,
191
191
should come from the updated data source.
192
192
193
- This means that the point at which a `` ZoneInfo `` file is updated depends
194
- primarily on the semantics of the caching behavior. The only guaranteed way to
195
- get a `` ZoneInfo `` file from an updated data source is to induce a cache miss,
196
- either by bypassing the cache and using `` ZoneInfo.no_cache `` or by clearing the
197
- cache.
193
+ This means that the point at which the data source is updated for new
194
+ invocations of the `` ZoneInfo `` constructor depends primarily on the semantics
195
+ of the caching behavior. The only guaranteed way to get a `` ZoneInfo `` object
196
+ from an updated data source is to induce a cache miss, either by bypassing the
197
+ cache and using `` ZoneInfo.no_cache `` or by clearing the cache .
198
198
199
199
.. note ::
200
200
@@ -274,7 +274,7 @@ An example:
274
274
275
275
276
276
When a ``key `` is not specified, the ``str `` operation should not fail, but
277
- should return the file 's ``__repr__ ``::
277
+ should return the objects 's ``__repr__ ``::
278
278
279
279
>>> zone = ZoneInfo.from_file(f)
280
280
>>> str(zone)
@@ -299,7 +299,7 @@ Rather than serializing all transition data, ``ZoneInfo`` objects will be
299
299
serialized by key, and ``ZoneInfo `` objects constructed from raw files (even
300
300
those with a value for ``key `` specified) cannot be pickled.
301
301
302
- The behavior of a ``ZoneInfo `` file depends on how it was constructed:
302
+ The behavior of a ``ZoneInfo `` object depends on how it was constructed:
303
303
304
304
1. ``ZoneInfo(key) ``: When constructed with the primary constructor, a
305
305
``ZoneInfo `` object will be serialized by key, and when deserialized the
@@ -701,7 +701,7 @@ implementation in ways that may not be compatible with a non-ICU-based
701
701
implementation — particularly around the behavior of the cache.
702
702
703
703
Since it seems like ICU cannot be used as simply an additional data source for
704
- ``ZoneInfo `` files , this PEP considers the ICU support to be out of scope, and
704
+ ``ZoneInfo `` objects , this PEP considers the ICU support to be out of scope, and
705
705
probably better supported by a third-party library.
706
706
707
707
Alternative environment variable configurations
@@ -846,7 +846,7 @@ Footnotes
846
846
but user support mostly focuses on these three types.
847
847
848
848
.. [b ]
849
- The statement that identically constructed ``ZoneInfo `` files should be
849
+ The statement that identically constructed ``ZoneInfo `` objects should be
850
850
identical objects may be violated if the user deliberately clears the time
851
851
zone cache.
852
852
0 commit comments