[issue46855] printing a string with strange characters loops forever
New submission from svilen dobrev : $ python Python 3.10.2 (main, Jan 15 2022, 19:56:27) [GCC 11.1.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> a= "Betrag gr\xc3\xb6\xc3\x9fer als Betrag der Original-Transaktion" >>> a 'Betrag gröÃ\x9fer als Betrag der Original-Transaktion' >>> print(a) Betrag gröÃ~ --- And above waits forever. Does not consume resources, but does not hear Ctrl-C. Ctrl-\ kills it. The string above is just a byte string of the utf-8 representation, with forgotten "b" infront of it. -- components: Interpreter Core messages: 414010 nosy: svild priority: normal severity: normal status: open title: printing a string with strange characters loops forever type: behavior versions: Python 3.10 ___ Python tracker <https://bugs.python.org/issue46855> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue46855] printing a string with strange characters loops forever
svilen dobrev added the comment: aha. ctrl-s also closes it. seems kind-of ( ctrl-q - ctrl-s ) https://en.wikipedia.org/wiki/Software_flow_control thanks, closing this. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue46855> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1046092] HTMLParser fix to accept malformed tag attributes
svilen dobrev added the comment: this seems to eat too much into data and gets past endpos of the chunk processed, and parser gets confused and treats any subsequent stuff as data. i didn't think out how to fix the regexp as such, but instead limited its span to :endpos so it doesnot eat too much. seems to happen with unquoted attributes. -- nosy: +svilend Added file: http://bugs.python.org/file21891/html.parser.diff ___ Python tracker <http://bugs.python.org/issue1046092> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1046092] HTMLParser fix to accept malformed tag attributes
Changes by svilen dobrev : Added file: http://bugs.python.org/file21892/test-htmlparser-attrs.py ___ Python tracker <http://bugs.python.org/issue1046092> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12008] HtmlParser non-strict goes wrong with unquoted attributes
New submission from svilen dobrev : nonstrict mode seems to eat too much into data and gets past endpos of the chunk processed, and parser gets confused and treats any subsequent stuff as data. i didn't think out how to fix the regexp as such, but instead limited its span to :endpos so it doesnot eat too much. seems to happen with unquoted attributes. -- files: html.parser.diff keywords: patch messages: 135182 nosy: svilend priority: normal severity: normal status: open title: HtmlParser non-strict goes wrong with unquoted attributes Added file: http://bugs.python.org/file21893/html.parser.diff ___ Python tracker <http://bugs.python.org/issue12008> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12008] HtmlParser non-strict goes wrong with unquoted attributes
Changes by svilen dobrev : -- components: +Library (Lib) type: -> behavior versions: +Python 3.2 Added file: http://bugs.python.org/file21894/test-htmlparser-attrs.py ___ Python tracker <http://bugs.python.org/issue12008> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12008] HtmlParser non-strict goes wrong with unquoted attributes
svilen dobrev added the comment: (the nonstrict regexp came with Issue1046092) -- ___ Python tracker <http://bugs.python.org/issue12008> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com