[issue32702] Minor markup typo
Change by KINEBUCHI Tomohiko <cocoatom...@gmail.com>: -- keywords: +patch pull_requests: +5240 stage: -> patch review ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32702> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue32702] Minor markup typo
New submission from KINEBUCHI Tomohiko <cocoatom...@gmail.com>: In the staticmethod document [1], code snippet should be a literal block, but actually be a block quote. See the attached image file. [1] https://docs.python.org/3.6/library/functions.html#staticmethod -- assignee: docs@python components: Documentation files: Screen Shot 2018-01-29 at 12.37.37.png messages: 311048 nosy: cocoatomo, docs@python priority: normal severity: normal status: open title: Minor markup typo versions: Python 3.6, Python 3.7, Python 3.8 Added file: https://bugs.python.org/file47415/Screen Shot 2018-01-29 at 12.37.37.png ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32702> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue32664] Connector "|" missing between ImportError and LookupError
Change by KINEBUCHI Tomohiko <cocoatom...@gmail.com>: -- keywords: +patch pull_requests: +5201 stage: needs patch -> patch review ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32664> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue32087] deprecated-removed directive generates overlapping msgids in .pot files
Change by KINEBUCHI Tomohiko <cocoatom...@gmail.com>: -- keywords: +patch pull_requests: +4408 stage: -> patch review ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32087> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue32087] deprecated-removed directive generates overlapping msgids in .pot files
New submission from KINEBUCHI Tomohiko <cocoatom...@gmail.com>: When gettext builder is invoked, deprecated-removed directive which is defined in Doc/tools/extensions/pyspecific.py generates overlapping msgids in .pot files. For example, the following .rst source (taken from Doc/library/dmb.rst L354):: .. deprecated-removed:: 3.6 3.8 Creating database in ``'r'`` and ``'w'`` modes. Modifying database in ``'r'`` mode. results to following .pot file entries:: #: ../../library/dbm.rst:357 msgid "Deprecated since version 3.6, will be removed in version 3.8: Creating database in 'r' and 'w' modes. Modifying database in 'r' mode." msgstr "" #: ../../library/dbm.rst:357 msgid "Creating database in ``'r'`` and ``'w'`` modes. Modifying database in ``'r'`` mode." msgstr "" using the command:: sphinx-build -E -b gettext -D gettext_compact=0 -w warnings.txt -d build/.doctrees . locale/pot The root cause is deprecated-removed directive constructs inappropriate sub-doctree for translation. First, above .rst source is compiled into following tree structure:: Deprecated since version 3.6, will be removed in version 3.8: Creating database in... and gettext builder picks up paragraph node and the second inline node as translation targets. Expected result is that two inline nodes are picked up as translation targets and the paragraph node is not, and expected .pot file entries are such as following:: #: ../../library/dbm.rst:357 msgid "Deprecated since version 3.6, will be removed in version 3.8:" msgstr "" #: ../../library/dbm.rst:357 msgid "Creating database in ``'r'`` and ``'w'`` modes. Modifying database in ``'r'`` mode." msgstr "" -- assignee: docs@python components: Documentation messages: 306546 nosy: cocoatomo, docs@python priority: normal severity: normal status: open title: deprecated-removed directive generates overlapping msgids in .pot files versions: Python 3.6, Python 3.7 ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32087> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue31053] Unnecessary argument in command example
Changes by KINEBUCHI Tomohiko <cocoatom...@gmail.com>: -- pull_requests: +2958 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue31053> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue31053] Unnecessary argument in command example
New submission from KINEBUCHI Tomohiko: The command example running venv module for Windows has an unnecessary argument. The following two command examples should be equivalent:: :: c:\>c:\Python35\python -m venv c:\path\to\myenv :: c:\>python -m venv myenv c:\path\to\myenv (from https://docs.python.org/3/library/venv.html#creating-virtual-environments) -- assignee: docs@python components: Documentation messages: 299282 nosy: cocoatomo, docs@python priority: normal severity: normal status: open title: Unnecessary argument in command example versions: Python 3.6, Python 3.7 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue31053> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30134] BytesWarning is missing from the documents
Changes by KINEBUCHI Tomohiko <cocoatom...@gmail.com>: -- pull_requests: +1365 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30134> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30134] BytesWarning is missing from the documents
New submission from KINEBUCHI Tomohiko: In Python 2.6, BytesWarning was added, but a description of that warning is missing from the document, library/exceptions.rst. -- assignee: docs@python components: Documentation messages: 292099 nosy: cocoatomo, docs@python priority: normal severity: normal status: open title: BytesWarning is missing from the documents versions: Python 2.7 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30134> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue29952] "keys and values" preferred to "keys and elements" for dict constituent
Changes by KINEBUCHI Tomohiko <cocoatom...@gmail.com>: -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29952> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19225] lack of PyExc_BufferError doc
Changes by KINEBUCHI Tomohiko <cocoatom...@gmail.com>: -- pull_requests: +1326 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19225> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19225] lack of PyExc_BufferError doc
Changes by KINEBUCHI Tomohiko <cocoatom...@gmail.com>: -- pull_requests: +1325 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19225> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19225] lack of PyExc_BufferError doc
Changes by KINEBUCHI Tomohiko <cocoatom...@gmail.com>: -- pull_requests: +1324 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19225> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19225] lack of PyExc_BufferError doc
Changes by KINEBUCHI Tomohiko <cocoatom...@gmail.com>: -- pull_requests: +1214 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19225> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19225] lack of PyExc_BufferError doc
KINEBUCHI Tomohiko added the comment: Oh, I have overlooked these sentences. I will create an additional pull request to remove duplication. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19225> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19225] lack of PyExc_BufferError doc
Kinebuchi Tomohiko added the comment: I created backporting pull requests for 2.7, 3.5 and 3.6. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19225> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19225] lack of PyExc_BufferError doc
Changes by Kinebuchi Tomohiko <cocoatom...@gmail.com>: -- pull_requests: +1145 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19225> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19225] lack of PyExc_BufferError doc
Changes by Kinebuchi Tomohiko <cocoatom...@gmail.com>: -- pull_requests: +1144 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19225> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19225] lack of PyExc_BufferError doc
Changes by Kinebuchi Tomohiko <cocoatom...@gmail.com>: -- pull_requests: +1143 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19225> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue29952] "keys and values" is preferred to "keys and elements" for name of dict constituent
Changes by Kinebuchi Tomohiko <cocoatom...@gmail.com>: -- pull_requests: +818 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29952> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue29952] "keys and values" is preferred to "keys and elements" for name of dict constituent
New submission from Kinebuchi Tomohiko: In the section "6.10.1. Value comparisons" [1]_:: Equality comparison of the keys and elements enforces reflexivity. would be Equality comparison of the keys and values enforces reflexivity. because we usually call an entry of dict as "key-value pair". .. [1] https://docs.python.org/3.6/reference/expressions.html#value-comparisons -- assignee: docs@python components: Documentation messages: 290890 nosy: cocoatomo, docs@python priority: normal severity: normal status: open title: "keys and values" is preferred to "keys and elements" for name of dict constituent versions: Python 3.7 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29952> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19225] lack of PyExc_BufferError doc
Changes by Kinebuchi Tomohiko <cocoatom...@gmail.com>: -- pull_requests: +783 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19225> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19225] lack of PyExc_BufferError doc
Kinebuchi Tomohiko added the comment: I will create a pull request based on the patch created by beng94. In addition, I will have its contents up-to-date. -- versions: +Python 3.7 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19225> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue29927] Unnecessary code in the c-api/exceptions.c
New submission from Kinebuchi Tomohiko: 1. BufferError is PRE_INIT'ed twice, and also POST_INIT'ed twice. 2. Using macros (PRE_INIT, POST_INIT and ADD_ERRNO) with following unnecessary semicolons. These unnecessary code have no semantic effect, but is somehow confusing. -- components: Interpreter Core messages: 290678 nosy: cocoatomo priority: normal severity: normal status: open title: Unnecessary code in the c-api/exceptions.c versions: Python 3.5, Python 3.6, Python 3.7 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29927> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue29888] The link referring to "Python download page" is broken
Kinebuchi Tomohiko added the comment: @ned.deily Thank you for the commend. I updated the 2.7 PR. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29888> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue29888] The link referring to "Python download page" is broken
Kinebuchi Tomohiko added the comment: I just created two pull requests. + PR for 2.7 -> https://github.com/python/cpython/pull/823 + PR for 3.5 or newer -> https://github.com/python/cpython/pull/824 -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29888> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue29888] The link referring to "Python download page" is broken
Changes by Kinebuchi Tomohiko <cocoatom...@gmail.com>: -- pull_requests: +730 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29888> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue29888] The link referring to "Python download page" is broken
Changes by Kinebuchi Tomohiko <cocoatom...@gmail.com>: -- pull_requests: +728 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29888> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue29888] The link referring to "Python download page" is broken
Changes by Kinebuchi Tomohiko <cocoatom...@gmail.com>: -- pull_requests: +726 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29888> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue29888] The link referring to "Python download page" is broken
Kinebuchi Tomohiko added the comment: According to the table on the Downloads page [1]_, relations between Python versions and version specific release pages are listed as follows: 2.7.0 -> https://www.python.org/download/releases/2.7/ 2.7.1 -> https://www.python.org/download/releases/2.7.1/ 2.7.2 -> https://www.python.org/download/releases/2.7.2/ 2.7.3 -> https://www.python.org/download/releases/2.7.3/ 2.7.4 -> https://www.python.org/download/releases/2.7.4/ 2.7.5 -> https://www.python.org/download/releases/2.7.5/ 2.7.6 -> https://www.python.org/download/releases/2.7.6/ 2.7.7 -> https://www.python.org/download/releases/2.7.7/ 2.7.8 -> https://www.python.org/downloads/release/python-278/ 2.7.9 -> https://www.python.org/downloads/release/python-279/ 2.7.10 -> https://www.python.org/downloads/release/python-2710/ 2.7.11 -> https://www.python.org/downloads/release/python-2711/ 2.7.12 -> https://www.python.org/downloads/release/python-2712/ 2.7.13 -> https://www.python.org/downloads/release/python-2713/ 3.0.0 -> https://www.python.org/download/releases/3.0/ 3.0.1 -> https://www.python.org/download/releases/3.0.1/ 3.1.0 -> https://www.python.org/download/releases/3.1/ 3.1.1 -> https://www.python.org/download/releases/3.1.1/ 3.1.2 -> https://www.python.org/download/releases/3.1.2/ 3.1.3 -> https://www.python.org/download/releases/3.1.3/ 3.1.4 -> https://www.python.org/download/releases/3.1.4/ 3.1.5 -> https://www.python.org/downloads/release/python-315/ 3.2.0 -> https://www.python.org/download/releases/3.2/ 3.2.1 -> https://www.python.org/download/releases/3.2.1/ 3.2.2 -> https://www.python.org/download/releases/3.2.2/ 3.2.3 -> https://www.python.org/download/releases/3.2.3/ 3.2.4 -> https://www.python.org/download/releases/3.2.4/ 3.2.5 -> https://www.python.org/download/releases/3.2.5/ 3.2.6 -> https://www.python.org/downloads/release/python-326/ 3.3.0 -> https://www.python.org/download/releases/3.3.0/ 3.3.1 -> https://www.python.org/download/releases/3.3.1/ 3.3.2 -> https://www.python.org/download/releases/3.3.2/ 3.3.3 -> https://www.python.org/download/releases/3.3.3/ 3.3.4 -> https://www.python.org/download/releases/3.3.4/ 3.3.5 -> https://www.python.org/download/releases/3.3.5/ 3.3.6 -> https://www.python.org/downloads/release/python-336/ 3.4.0 -> https://www.python.org/download/releases/3.4.0/ 3.4.1 -> https://www.python.org/downloads/release/python-341/ 3.4.2 -> https://www.python.org/downloads/release/python-342/ 3.4.3 -> https://www.python.org/downloads/release/python-343/ 3.4.4 -> https://www.python.org/downloads/release/python-344/ 3.4.5 -> https://www.python.org/downloads/release/python-345/ 3.4.6 -> https://www.python.org/downloads/release/python-346/ 3.5.0 -> https://www.python.org/downloads/release/python-350/ 3.5.1 -> https://www.python.org/downloads/release/python-351/ 3.5.2 -> https://www.python.org/downloads/release/python-352/ 3.5.3 -> https://www.python.org/downloads/release/python-353/ 3.6.0 -> https://www.python.org/downloads/release/python-360/ 3.6.1 -> https://www.python.org/downloads/release/python-361/ .. [1] https://www.python.org/downloads/ I will create a pull request for Python 2.7, 3.5 and 3.6. -- versions: +Python 3.5, Python 3.6 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29888> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue29888] The link referring to "Python download page" is broken
New submission from Kinebuchi Tomohiko: The download page [1]_ contains a link intended to refer to the release page of the corresponding Python version [2]_. .. [1] `Download Python 2.7.13 Documentation <https://docs.python.org/2.7/download.html>`_ .. [2] e.g. `Python 2.7.8 Release <https://www.python.org/download/releases/2.7.8/>`_ Although, this link is broken for three reasons. 1. Wrong template syntax `Present code <https://github.com/python/cpython/blob/2.7/Doc/tools/templates/download.html#L78-L80>`_:: {% trans download_page="https://www.python.org/download/releases/{{ release[:5] }}/" %}HTML Help (.chm) files are made available in the "Windows" section on the Python download page.{% endtrans %} Fixed code:: {% trans download_page="https://www.python.org/download/releases/; + release[:5] + "/" %}HTML Help (.chm) files are made available in the "Windows" section on the Python download page.{% endtrans %} 2. Unexpected version number The URL contains a Python version string (i.e. ``release[:5]``), but for Python 2.7.13, ``release[:5]`` evaluates to ``'2.7.1'`` which obviously wrong as a version string. 3. Non-existent release pages for some versions www.python.org has pages which URLs are https://www.python.org/download/releases// with = 2.7.1--8, although has no pages with = 2.7.9 and so on. Is https://www.python.org/downloads/release/python-2713/ an appropriate page to refer? -- assignee: docs@python components: Documentation messages: 290057 nosy: cocoatomo, docs@python priority: normal severity: normal status: open title: The link referring to "Python download page" is broken versions: Python 2.7 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29888> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue29772] Unintentionally deleted line on library/collections.rst
New submission from Kinebuchi Tomohiko: The last part of "Counter objects" section has a strange line: "in Smalltalk." https://docs.python.org/2.7/library/collections.html#counter-objects The line just before "in Smalltalk" might be deleted by accident. Related issue is bpo-25910 [1]_ and the applied patch is this [2]_, although an intended patch might looks like this [3]_. .. [1] http://bugs.python.org/issue25910 .. [2] https://hg.python.org/cpython/rev/14e00e7e4d51#l15.7 patch for the 2.7 branch .. [3] https://hg.python.org/cpython/rev/ce5ef48b5140#l21.7 patch for the 3.5 branch I will create a pull request. -- assignee: docs@python components: Documentation messages: 289300 nosy: cocoatomo, docs@python priority: normal severity: normal status: open title: Unintentionally deleted line on library/collections.rst versions: Python 2.7 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29772> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com