Thanks to visit codestin.com
Credit goes to github.com

Skip to content

gh-133102: Remove unnecessary mention of os.fsync() from os.exec*() docs #133333

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions Doc/library/os.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4318,11 +4318,10 @@ to be ignored.
and will have the same process id as the caller. Errors will be reported as
:exc:`OSError` exceptions.

The current process is replaced immediately. Open file objects and
descriptors are not flushed, so if there may be data buffered
on these open files, you should flush them using
:func:`sys.stdout.flush` or :func:`os.fsync` before calling an
:func:`exec\* <execl>` function.
The current process is replaced immediately. Open file objects are not
flushed, so if there may be data buffered on these open files, you should
flush them using :meth:`~io.IOBase.flush`, e.g. :meth:`sys.stdout.flush`,
before calling an :func:`exec\* <execl>` function.

The "l" and "v" variants of the :func:`exec\* <execl>` functions differ in how
command-line arguments are passed. The "l" variants are perhaps the easiest
Expand Down
Loading