[issue46909] Update getpath.py to look for os.pyc in __pycache__ folders

2022-03-03 Thread Russel Webber
New submission from Russel Webber : The STDLIB_LANDMARKS in Modules/getpath,py refers to os.pyc in an old location: STDLIB_LANDMARKS = [f'{STDLIB_SUBDIR}/os.py', f'{STDLIB_SUBDIR}/os.pyc'] Since https://www.python.org/dev/peps/pep-3147 the .pyc files are in __pycache__ folders

[issue31582] Add _pth breadcrumb to sys.path documentation

2022-02-02 Thread Russel Webber
Change by Russel Webber : -- keywords: +patch pull_requests: +29265 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/31082 ___ Python tracker <https://bugs.python.org/issu

[issue31582] Add _pth breadcrumb to sys.path documentation

2022-01-28 Thread Russel Webber
Russel Webber added the comment: I agree wholeheartedly, an explantation of sys.path initialisation would be very helpful. I've seen too many hacks in end user Python code due to misunderstandings around sys.path initialisation and the available ways to customise sys.path. I'll work

[issue31582] Add _pth breadcrumb to sys.path documentation

2022-01-27 Thread Russel Webber
Russel Webber added the comment: I am happy to take a look at improving the documentation. I see the new getpath.py has very extensive commenting. Should I simply mention ._pth files as in the original issue from 5 years ago, or are you looking for documentation of how sys.path

[issue46098] Missing test for multi-line errors in traceback

2022-01-19 Thread Russel Webber
Russel Webber added the comment: I have added a test that I think covers this case. -- keywords: +patch message_count: 1.0 -> 2.0 nosy: +RusselWebber nosy_count: 3.0 -> 4.0 pull_requests: +28893 stage: -> patch review pull_request: https://github.com/python/cpython/p

[issue46388] Improve test coverage of functools.total_ordering

2022-01-15 Thread Russel Webber
Change by Russel Webber : -- keywords: +patch pull_requests: +28819 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30616 ___ Python tracker <https://bugs.python.org/issu

[issue46388] Improve test coverage of functools.total_ordering

2022-01-15 Thread Russel Webber
New submission from Russel Webber : A few lines of the functools.total_ordering implementation are not covered by the tests. Specifically, coverage.py shows the returns of NotImplemented: ... if op_result is NotImplemented: return op_result ... as not covered in the functions