[issue10035] sgmllib fail to parse html containing
New submission from halfjuice : When parsing html containing the following tag: ... ... SGMLParser will stop parse following content without any warning. When such tag is removed everything works fine. When looking into sgmllib.py, statement below found: if rawdata.startswith(""). I think that's why something goes wrong here. -- components: Library (Lib) messages: 118048 nosy: halfjuice priority: normal severity: normal status: open title: sgmllib fail to parse html containing type: behavior versions: Python 2.6 ___ Python tracker <http://bugs.python.org/issue10035> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10035] sgmllib fail to parse html containing
halfjuice added the comment: well,
[issue10035] sgmllib fail to parse html containing
halfjuice added the comment: Sorry, the URL on the page is sort of broken. The URL contains the "" stuff. I think you're right, the <http://bugs.python.org/issue10035> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18168] plistlib output self-sorted dictionary
New submission from halfjuice: Even with OrderedDict, the plistlib will still output the dict in its own order. Search for sorted(d.items()) in plistlib.py and you will know why. It is certainly warm-hearted to sort this before putting it into plist file but I think sometimes we just want a customized order. -- components: Library (Lib) messages: 190792 nosy: halfjuice priority: normal severity: normal status: open title: plistlib output self-sorted dictionary type: behavior versions: Python 3.3 ___ Python tracker <http://bugs.python.org/issue18168> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18168] plistlib output self-sorted dictionary
halfjuice added the comment: Thanks for giving out docs and start a detail discussion on this Mher! Sorry I'm not familiar with Apple plist tool (I'm using cocos2d-x on win32 for the moment...) Are you saying that plutil is used everytime we output a valid plist? Another thing is whether the example in [1] is valid or not? If it is, I think we should provide unordered functionality. The OrderedDict is subclass of dict and thus is acceptable as plistlib input. Actually when I remove the line for sort, the plist output as expected (with not order). -- ___ Python tracker <http://bugs.python.org/issue18168> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18168] plistlib output self-sorted dictionary
halfjuice added the comment: Awesome. Thanks Ronald! -- ___ Python tracker <http://bugs.python.org/issue18168> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com