[issue45686] ElementTree.Element.extend: bad error message when error occurs in generator

2021-11-01 Thread Michael Wayne Goodman
New submission from Michael Wayne Goodman : Both the Python and C versions of xml.etree.ElementTree allow Element.extend() to accept a sequence or an iterable, such as a generator expression (although the docs only mention "sequence"; that's a separate problem): >>> fr

[issue45528] mmap: constants not listed in the documentation

2021-10-21 Thread Michael Wayne Goodman
Michael Wayne Goodman added the comment: Also, the first sentences of third paragraph have some problems: > For both the Unix and Windows versions of the constructor, > access may be specified as an optional keyword > parameter. access accepts one of four values: ACCESS_READ, >

[issue45528] mmap: constants not listed in the documentation

2021-10-19 Thread Michael Wayne Goodman
Michael Wayne Goodman added the comment: I have added a draft PR on GitHub that adds the lists of constants. As mentioned in the PR, there are a few things that I think could be added before merging: 1. Update descriptions in mmap.mmap, and maybe the intro, to link to relevant sections. 2

[issue45528] mmap: constants not listed in the documentation

2021-10-19 Thread Michael Wayne Goodman
Change by Michael Wayne Goodman : -- keywords: +patch pull_requests: +27343 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29075 ___ Python tracker <https://bugs.python.org/issu

[issue45528] mmap: constants not listed in the documentation

2021-10-19 Thread Michael Wayne Goodman
New submission from Michael Wayne Goodman : Some constants mentioned in the mmap module documentation are not listed as module contents (i.e., with permalinks), so the mentions do not appear as links and it's not explicit that they are in the mmap module namespace. For instance, ACCESS_READ

[issue20364] Rename & explain sqlite3.Cursor.execute 'parameters' param

2021-02-15 Thread Michael Wayne Goodman
Michael Wayne Goodman added the comment: Sorry, typo in my last statement. I did *not* verify if the behavior is the same with earlier/later versions. -- ___ Python tracker <https://bugs.python.org/issue20

[issue20364] Rename & explain sqlite3.Cursor.execute 'parameters' param

2021-02-15 Thread Michael Wayne Goodman
Michael Wayne Goodman added the comment: Sorry to resurrect an old bug, but I've also found the docs lacking and I can fill in some gaps with some experimental results. Setup: >>> import sqlite3 >>> conn = sqlite3.connect(':memory:') >>> conn.execute('

[issue42700] xml.parsers.expat.errors description of codes/messages is flipped

2020-12-20 Thread Michael Wayne Goodman
Change by Michael Wayne Goodman : -- keywords: +patch pull_requests: +22738 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23876 ___ Python tracker <https://bugs.python.org/issu

[issue42700] xml.parsers.expat.errors description of codes/messages is flipped

2020-12-20 Thread Michael Wayne Goodman
New submission from Michael Wayne Goodman : The documentation for xml.parsers.expat.errors.codes says: A dictionary mapping numeric error codes to their string descriptions. But this is backwards. It should say it maps the string descriptions to the error codes. Likewise, the docs

[issue39135] time.get_clock_info() documentation still has 'clock' name

2019-12-26 Thread Michael Wayne Goodman
Change by Michael Wayne Goodman : -- keywords: +patch pull_requests: +17154 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17709 ___ Python tracker <https://bugs.python.org/issu

[issue39135] time.get_clock_info() documentation still has 'clock' name

2019-12-26 Thread Michael Wayne Goodman
Michael Wayne Goodman added the comment: Sure, no problem. I've just signed the CLA and forked the code. I'll wait a day for the CLA check to clear then submit. -- ___ Python tracker <https://bugs.python.org/issue39

[issue39135] time.get_clock_info() documentation still has 'clock' name

2019-12-25 Thread Michael Wayne Goodman
New submission from Michael Wayne Goodman : The documentation for Python 3.8 and higher still refer to 'clock' as an accepted 'name' argument for time.get_clock_info() that returns a namespace readable by time.clock(), despite time.clock() being removed since Python 3.8. See the first bullet