[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 __pyc

[issue46828] math.prod can return integers (contradicts doc)

2022-02-22 Thread Neil Webber
New submission from Neil Webber : The math module documentation says: Except when explicitly noted otherwise, all return values are floats. But this code returns an integer: from math import prod; prod((1,2,3)) Doc should "explicitly note otherwise" here, I imagine. The i

[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 wo

[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 is

[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

[issue29945] decode string:u"\ufffd" UnicodeEncodeError

2017-03-30 Thread webber
Changes by webber : Added file: http://bugs.python.org/file46767/windows.jpg ___ Python tracker <http://bugs.python.org/issue29945> ___ ___ Python-bugs-list mailin

[issue29945] decode string:u"\ufffd" UnicodeEncodeError

2017-03-30 Thread webber
New submission from webber: I use python on linux, version is 2.7.13: [root@localhost bin]# ./python2.7 Python 2.7.13 (default, Mar 30 2017, 00:54:08) [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)] on linux2 Type "help", "copyright", "credits" or "license&qu

[issue18358] update links to Apple Style Guide

2013-07-04 Thread Russ Webber
Russ Webber added the comment: So it is. Sorry, should have searched first. -- ___ Python tracker <http://bugs.python.org/issue18358> ___ ___ Python-bugs-list m

[issue14182] collections.Counter equality test thrown-off by zero counts

2012-08-07 Thread Stephen Webber
Stephen Webber added the comment: Hmm, that is odd behavior indeed. I think having keys that point to zero values is important for iterating over a set. For example: >>> x = Counter(a=10, b=0) >>> for k in set(x): ... x[k] += 1 ... >>> x Counter({'a':

[issue14182] collections.Counter equality test thrown-off by zero counts

2012-08-05 Thread Stephen Webber
Stephen Webber added the comment: This is intentional handling of non-existant variables, and is not resticted to '==' operations. Returning the value of a Counter parameter that has not yet been set returns 0 by default. See the documentation here: http://docs.python.o