Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Doc: Update references and examples of old, unsupported OSes and uarches#92791
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
6032ecb534de622a67a2a7fc91e7File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -483,8 +483,14 @@ including :func:`~shutil.copyfile`, :func:`~shutil.copytree`, and | ||
| How do I copy a file? | ||
| --------------------- | ||
| The :mod:`shutil` module contains a :func:`~shutil.copyfile` function. | ||
serhiy-storchaka marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
| Note that on Windows NTFS volumes, it does not copy | ||
| `alternate data streams | ||
| <https://en.wikipedia.org/wiki/NTFS#Alternate_data_stream_(ADS)>`_ | ||
| nor `resource forks <https://en.wikipedia.org/wiki/Resource_fork>`__ | ||
| on macOS HFS+ volumes, though both are now rarely used. | ||
| It also doesn't copy file permissions and metadata, though using | ||
| :func:`shutil.copy2` instead will preserve most (though not all) of it. | ||
| How do I read (or write) binary data? | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -53,7 +53,7 @@ Cross Platform | ||
| .. function:: machine() | ||
| Returns the machine type, e.g. ``'AMD64'``. An empty string is returned if the | ||
Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Is it what returned on the AMD processors? On my computer it is 'x86_64'. Update also the docstring of platform.machine(). MemberAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. The original 'proper' name of what is also called the "x86-64" architecture is AMD64, as it was created by AMD and later adopted by Intel when Intel's IA-64 (Itanium) architecture failed in the market. What is returned depends (AFAIK) on the OS, not the CPU; Windows and many (most?) Linux distros call it
I can, but as this PR currently only modifies the docs, I'd rather do that separately; there are other places in the codebase that should be updated too, for consistency. Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Docstrings are a part of the docs. If we do not update them together with the rst files, they are left desynchronized. MemberAuthor
| ||
| value cannot be determined. | ||