mirror of
https://github.com/python/cpython.git
synced 2026-01-01 04:53:46 +00:00
On macOS all file descriptors for a particular file in /dev/fd
share the same file offset, that is ``open("/dev/fd/9", "r")`` behaves
more like ``dup(9)`` than a regular open.
This causes problems when a user tries to run "/dev/fd/9" as a script
because zipimport changes the file offset to try to read a zipfile
directory. Therefore change zipimport to reset the file offset after
trying to read the zipfile directory.
|
||
|---|---|---|
| .. | ||
| 2022-11-01-10-32-23.gh-issue-98940.W3YzC_.rst | ||
| 2022-11-25-09-23-20.gh-issue-87235.SifjCD.rst | ||
| README.rst | ||
Put news entry `blurb`_ files for the *macOS* section in this directory. .. _blurb: https://pypi.org/project/blurb/