@@ -1223,21 +1223,19 @@ conflict.
1223
1223
1224
1224
.. envvar :: PYTHON_TRACEBACK_TIMESTAMPS
1225
1225
1226
- If this variable is set to any of the following values, tracebacks displayed
1227
- by the :mod: `traceback ` module will be annotated with the timestamp of each
1228
- exception. The values control the format of the timestamp. ``us `` or ``1 ``
1229
- displays decimal timestamps with microsecond precision, ``ns `` displays the
1230
- nanosecond timestamp as :func: `time.time_ns ` would produce, ``iso `` enables
1231
- display formatted by :meth: `~datetime.datetime.isoformat `. The time is not
1232
- recorded on the :exc: `StopIteration ` family of exceptions for performance
1233
- reasons as those are used for control flow rather than errors. If unset,
1234
- empty or other values this feature is disabled.
1235
-
1236
- Timestamps are collected as nanoseconds internally when exceptions are
1237
- instantiated and are available via a :attr: `~BaseException.__timestamp_ns__ `
1238
- attribute. Optional formatting of the timestamps only happens during
1239
- :mod: `traceback ` rendering. The ``iso `` format is presumed slower to
1240
- display due to the complexity of the code involved.
1226
+ If this variable is set to any of the following values, tracebacks printed
1227
+ by the runtime will be annotated with the timestamp of each exception. The
1228
+ values control the format of the timestamp. ``us `` or ``1 `` prints decimal
1229
+ timestamps with microsecond precision, ``ns `` prints the raw timestamp in
1230
+ nanoseconds, ``iso `` prints the timestamp formatted by
1231
+ :meth: `~datetime.datetime.isoformat ` which is also microsecond precision.
1232
+ The time is not recorded on the :exc: `StopIteration ` family of exceptions
1233
+ for performance reasons as those are used for control flow rather than
1234
+ errors. If unset, empty, or other values this feature remains disabled.
1235
+
1236
+ Formatting of the timestamps only happens at printing time. The ``iso ``
1237
+ format may be slower due to the complexity of the code involved but is much
1238
+ more readable.
1241
1239
1242
1240
.. versionadded :: next
1243
1241
0 commit comments