Skip to content

Commit 0e28d0f

Browse files
authored
pythonGH-109190: Copyedit 3.12 What's New: Deprecations (os fix) (python#109927)
Merge the two ``os`` entries
1 parent e721f7a commit 0e28d0f

File tree

1 file changed

+17
-15
lines changed

1 file changed

+17
-15
lines changed

Doc/whatsnew/3.12.rst

+17-15
Original file line numberDiff line numberDiff line change
@@ -1114,12 +1114,6 @@ Deprecated
11141114
volume and maintenance burden.
11151115
(Contributed by Raymond Hettinger in :gh:`101588`.)
11161116

1117-
* :mod:`os`: The ``st_ctime`` fields return by :func:`os.stat` and :func:`os.lstat` on
1118-
Windows are deprecated. In a future release, they will contain the last
1119-
metadata change time, consistent with other platforms. For now, they still
1120-
contain the creation time, which is also available in the new ``st_birthtime``
1121-
field. (Contributed by Steve Dower in :gh:`99726`.)
1122-
11231117
* :mod:`multiprocessing`: In Python 3.14, the default :mod:`multiprocessing`
11241118
start method will change to a safer one on Linux, BSDs,
11251119
and other non-macOS POSIX platforms where ``'fork'`` is currently
@@ -1140,15 +1134,23 @@ Deprecated
11401134
proper :exc:`DeprecationWarning` in 3.12. Remove them in 3.14.
11411135
(Contributed by Soumendra Ganguly and Gregory P. Smith in :gh:`85984`.)
11421136

1143-
* :mod:`os`: On POSIX platforms, :func:`os.fork` can now raise a
1144-
:exc:`DeprecationWarning` when it can detect being called from a
1145-
multithreaded process. There has always been a fundamental incompatibility
1146-
with the POSIX platform when doing so. Even if such code *appeared* to work.
1147-
We added the warning to to raise awareness as issues encounted by code doing
1148-
this are becoming more frequent. See the :func:`os.fork` documentation for
1149-
more details along with `this discussion on fork being incompatible with threads
1150-
<https://discuss.python.org/t/33555>`_ for *why* we're now surfacing this
1151-
longstanding platform compatibility problem to developers.
1137+
* :mod:`os`:
1138+
1139+
* The ``st_ctime`` fields return by :func:`os.stat` and :func:`os.lstat` on
1140+
Windows are deprecated. In a future release, they will contain the last
1141+
metadata change time, consistent with other platforms. For now, they still
1142+
contain the creation time, which is also available in the new ``st_birthtime``
1143+
field. (Contributed by Steve Dower in :gh:`99726`.)
1144+
1145+
* On POSIX platforms, :func:`os.fork` can now raise a
1146+
:exc:`DeprecationWarning` when it can detect being called from a
1147+
multithreaded process. There has always been a fundamental incompatibility
1148+
with the POSIX platform when doing so. Even if such code *appeared* to work.
1149+
We added the warning to to raise awareness as issues encounted by code doing
1150+
this are becoming more frequent. See the :func:`os.fork` documentation for
1151+
more details along with `this discussion on fork being incompatible with threads
1152+
<https://discuss.python.org/t/33555>`_ for *why* we're now surfacing this
1153+
longstanding platform compatibility problem to developers.
11521154

11531155
When this warning appears due to usage of :mod:`multiprocessing` or
11541156
:mod:`concurrent.futures` the fix is to use a different

0 commit comments

Comments
 (0)