[issue31865] html.unescape does not work as per documentation

New submission from Jun Hui Lee <cardinleejh@gmail.com>: html.unescape(s) Convert all named and numeric character references (e.g. >, >, &x3e;) But running this gives:
html.unescape('>, >, &x3e;') '>, >, &x3e;'
---------- assignee: docs@python components: Documentation messages: 304957 nosy: Jun Hui Lee, docs@python priority: normal severity: normal status: open title: html.unescape does not work as per documentation type: behavior versions: Python 3.6 _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue31865> _______________________________________

Change by Karthikeyan Singaravelan <tir.karthi@gmail.com>: ---------- nosy: +xtreak _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue31865> _______________________________________

Karthikeyan Singaravelan <tir.karthi@gmail.com> added the comment: Thanks for the report. The relevant regex to is at https://github.com/python/cpython/blob/f6c8007a29b95b3ea3ca687a9b4924769a696... added with the commit 4a9ee26750aa8cb37b5072b2bb4dd328819febb4 . As far as I can see from the tests I can confirm this is a doc issue. Would you like to propose a PR for this? The changes have to be done are at below places : * https://github.com/python/cpython/blob/f6c8007a29b95b3ea3ca687a9b4924769a696... * https://github.com/python/cpython/blob/master/Doc/library/html.rst I am adding @ezio.melotti for a confirmation of the same. Thanks ---------- nosy: +ezio.melotti _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue31865> _______________________________________

Change by Ezio Melotti <ezio.melotti@gmail.com>: ---------- assignee: docs@python -> ezio.melotti keywords: +easy stage: -> needs patch _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue31865> _______________________________________

Change by Ezio Melotti <ezio.melotti@gmail.com>: ---------- keywords: +patch pull_requests: +9055 stage: needs patch -> patch review _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue31865> _______________________________________

Ezio Melotti <ezio.melotti@gmail.com> added the comment: New changeset 30534cc7172f36092e0002bb7df482edc0d539ce by Ezio Melotti in branch 'master': bpo-31865: Fix a couple of typos in the html.unescape() docs. (GH-9662) https://github.com/python/cpython/commit/30534cc7172f36092e0002bb7df482edc0d... ---------- _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue31865> _______________________________________

Change by miss-islington <mariatta.wijaya+miss-islington@gmail.com>: ---------- pull_requests: +9056 _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue31865> _______________________________________

Change by miss-islington <mariatta.wijaya+miss-islington@gmail.com>: ---------- pull_requests: +9057 _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue31865> _______________________________________

Ezio Melotti <ezio.melotti@gmail.com> added the comment: New changeset 27d7f93f633f0163b96d0a95e312f0eb5615abfd by Ezio Melotti (Miss Islington (bot)) in branch '3.7': bpo-31865: Fix a couple of typos in the html.unescape() docs. (GH-9663) https://github.com/python/cpython/commit/27d7f93f633f0163b96d0a95e312f0eb561... ---------- _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue31865> _______________________________________

Ezio Melotti <ezio.melotti@gmail.com> added the comment: New changeset 56c102596f01ecbbe5cca6339d2ae16695b083ff by Ezio Melotti (Miss Islington (bot)) in branch '3.6': bpo-31865: Fix a couple of typos in the html.unescape() docs. (GH-9664) https://github.com/python/cpython/commit/56c102596f01ecbbe5cca6339d2ae16695b... ---------- _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue31865> _______________________________________

Ezio Melotti <ezio.melotti@gmail.com> added the comment: Fixed, thanks for the report! ---------- keywords: -patch resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.7, Python 3.8 _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue31865> _______________________________________

Change by Karthikeyan Singaravelan <tir.karthi@gmail.com>: ---------- nosy: +xtreak _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue31865> _______________________________________

Karthikeyan Singaravelan <tir.karthi@gmail.com> added the comment: Thanks for the report. The relevant regex to is at https://github.com/python/cpython/blob/f6c8007a29b95b3ea3ca687a9b4924769a696... added with the commit 4a9ee26750aa8cb37b5072b2bb4dd328819febb4 . As far as I can see from the tests I can confirm this is a doc issue. Would you like to propose a PR for this? The changes have to be done are at below places : * https://github.com/python/cpython/blob/f6c8007a29b95b3ea3ca687a9b4924769a696... * https://github.com/python/cpython/blob/master/Doc/library/html.rst I am adding @ezio.melotti for a confirmation of the same. Thanks ---------- nosy: +ezio.melotti _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue31865> _______________________________________

Change by Ezio Melotti <ezio.melotti@gmail.com>: ---------- assignee: docs@python -> ezio.melotti keywords: +easy stage: -> needs patch _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue31865> _______________________________________

Change by Ezio Melotti <ezio.melotti@gmail.com>: ---------- keywords: +patch pull_requests: +9055 stage: needs patch -> patch review _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue31865> _______________________________________

Ezio Melotti <ezio.melotti@gmail.com> added the comment: New changeset 30534cc7172f36092e0002bb7df482edc0d539ce by Ezio Melotti in branch 'master': bpo-31865: Fix a couple of typos in the html.unescape() docs. (GH-9662) https://github.com/python/cpython/commit/30534cc7172f36092e0002bb7df482edc0d... ---------- _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue31865> _______________________________________

Change by miss-islington <mariatta.wijaya+miss-islington@gmail.com>: ---------- pull_requests: +9056 _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue31865> _______________________________________

Change by miss-islington <mariatta.wijaya+miss-islington@gmail.com>: ---------- pull_requests: +9057 _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue31865> _______________________________________

Ezio Melotti <ezio.melotti@gmail.com> added the comment: New changeset 27d7f93f633f0163b96d0a95e312f0eb5615abfd by Ezio Melotti (Miss Islington (bot)) in branch '3.7': bpo-31865: Fix a couple of typos in the html.unescape() docs. (GH-9663) https://github.com/python/cpython/commit/27d7f93f633f0163b96d0a95e312f0eb561... ---------- _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue31865> _______________________________________

Ezio Melotti <ezio.melotti@gmail.com> added the comment: New changeset 56c102596f01ecbbe5cca6339d2ae16695b083ff by Ezio Melotti (Miss Islington (bot)) in branch '3.6': bpo-31865: Fix a couple of typos in the html.unescape() docs. (GH-9664) https://github.com/python/cpython/commit/56c102596f01ecbbe5cca6339d2ae16695b... ---------- _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue31865> _______________________________________

Ezio Melotti <ezio.melotti@gmail.com> added the comment: Fixed, thanks for the report! ---------- keywords: -patch resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.7, Python 3.8 _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue31865> _______________________________________
participants (4)
-
Ezio Melotti
-
Jun Hui Lee
-
Karthikeyan Singaravelan
-
miss-islington