Steve Strassmann added the comment: There seem to be several bugs involving this particular inner loop in gettext._parse(), but I don't think they're equivalent.
The present bug (issue17898) is that parsing a plural header breaks the following header when it happens to be a comment. issue1475523 seems to involve multi-line handling issue12425 seems to involve breaking when the plural-forms value is empty. Perhaps a useful design pattern to follow for code which executes this inner loop would be to have some initialization and loop invariants which are asserted true on each iteration. For example, properly initializing k and v on each iteration. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue17898> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com