[issue38825] shutil.disk_usage - Lacking documentation

2021-07-12 Thread Norman Lorrain
Norman Lorrain added the comment: Something like this: .. impl-detail:: Where applicable (e.g. Unix) *path* must point to somewhere on a **mounted** filesystem partition. On Sun, 11 Jul 2021 at 16:18, Tyler Crompton wrote: > > Tyler Crompton added the comment: > &

[issue38825] shutil.disk_usage - Lacking documentation

2021-06-24 Thread Norman Lorrain
Norman Lorrain added the comment: This issue is a bit dated, but here goes: On Unix, the function `statvfs()` is called. `path` should be a path on a mounted filesystem (it should not be a device). On Windows, the function `GetDiskFreeSpaceExW()` is called. `path` is any directory

[issue28661] Fix code example in Python 3.5 telnetlib documentation

2021-06-22 Thread Norman Lorrain
Norman Lorrain added the comment: How about a simpler example (this relies on an outside service, fwiw) See attached file. -- nosy: +Norman Lorrain Added file: https://bugs.python.org/file50124/weather.py ___ Python tracker <ht

[issue12403] Mention sys.displayhook in code module docs and the compile builtin docs

2021-05-18 Thread Norman Lorrain
Change by Norman Lorrain : -- keywords: +patch nosy: +Norman Lorrain nosy_count: 7.0 -> 8.0 pull_requests: +24834 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/26217 ___ Python tracker

[issue44159] mimetypes - "strict" on Windows

2021-05-17 Thread Norman Lorrain
Norman Lorrain added the comment: Possible solution is to read the Windows Registry entries, assigning those entries as "strict=False". Unit tests pass with this change: diff --git a/Lib/mimetypes.py b/Lib/mimetypes.py index 018793c4f0..dd2bddf064 100644 --- a/Lib/mimetypes.py

[issue44159] mimetypes - "strict" on Windows

2021-05-17 Thread Norman Lorrain
New submission from Norman Lorrain : On Windows 10 machine, unit tests show this error: 0:05:10 load avg: 3.24 [221/427/1] test_mimetypes failed test test_mimetypes failed -- Traceback (most recent call last): File "D:\github\cpython\lib\test\test_mimetypes.py"