From noreply at sourceforge.net Sat Apr 1 02:30:58 2006 From: noreply at sourceforge.net (SourceForge.net) Date: Fri, 31 Mar 2006 16:30:58 -0800 Subject: [Patches] [ python-Patches-1462488 ] Patch for bug #931877 Segfault in object_reduce_ex Message-ID: Patches item #1462488, was opened at 2006-04-01 02:30 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1462488&group_id=5470 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Core (C code) Group: None Status: Open Resolution: None Priority: 5 Submitted By: ?iga Seilnacht (zseil) Assigned to: Nobody/Anonymous (nobody) Summary: Patch for bug #931877 Segfault in object_reduce_ex Initial Comment: This prevents unbounded recursion in typeobject.c's object_reduce_ex(). It does so by splitting implementation for object.__reduce_ex__ and object.__reduce__ into two different C functions. See the apended file details.txt for more detailed explanation. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1462488&group_id=5470 From noreply at sourceforge.net Sat Apr 1 02:54:44 2006 From: noreply at sourceforge.net (SourceForge.net) Date: Fri, 31 Mar 2006 16:54:44 -0800 Subject: [Patches] [ python-Patches-1462496 ] Spelling correction in libsignal.tex Message-ID: Patches item #1462496, was opened at 2006-03-31 18:54 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1462496&group_id=5470 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Documentation Group: None Status: Open Resolution: None Priority: 5 Submitted By: lmllc (lmllc) Assigned to: Nobody/Anonymous (nobody) Summary: Spelling correction in libsignal.tex Initial Comment: Fixed small spelling error. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1462496&group_id=5470 From noreply at sourceforge.net Sat Apr 1 02:56:15 2006 From: noreply at sourceforge.net (SourceForge.net) Date: Fri, 31 Mar 2006 16:56:15 -0800 Subject: [Patches] [ python-Patches-1462498 ] bug #1452246 and patch #1087808; sgmllib entities Message-ID: Patches item #1462498, was opened at 2006-03-31 16:56 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1462498&group_id=5470 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Library (Lib) Group: None Status: Open Resolution: None Priority: 5 Submitted By: Rares Vernica (rvernica) Assigned to: Nobody/Anonymous (nobody) Summary: bug #1452246 and patch #1087808; sgmllib entities Initial Comment: Patch for bug #1452246 htmllib doesn't properly substitute entities Continuation of patch #1087808 sgmllib.SGMLParser does not unescape attribute values; patch Substitute entities in argument values import htmllib import formatter import StringIO s = StringIO.StringIO() p = htmllib.HTMLParser(formatter.AbstractFormatter(formatter.DumbWriter(s))) p.feed('<>&') print s.getvalue() will now print '<>&' instead of '<>&'. The patch modifies module sgmllib, class SGMLParser, method parse_starttag. In this method, the entities are substituted in the argument values. The substitutions are based on existing property SGMLParser.entitydefs. For parsing is uses the regular expression entityref. Regarding the differences between this patch and patch #1087808: - use self.entitydefs to determine the set of entity names that are supported; - unknown entities references are left alone; - the regular expression entityref is used to find references; - a documentation patch is not needed as the method is Internal. Regarding the fact that semicolon after the entity name is not mandatory in SGML, the way entityref is defined "< " will become "< ", while "<" will stay "<", regardless of being an attribute value. The patch also adds test cases in module test/test_sgmllib.py, class SGMLParserTestCase, method test_attr_values. In that method, the proper substitution is tested. Ray ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1462498&group_id=5470 From noreply at sourceforge.net Sat Apr 1 03:00:05 2006 From: noreply at sourceforge.net (SourceForge.net) Date: Fri, 31 Mar 2006 17:00:05 -0800 Subject: [Patches] [ python-Patches-1087808 ] sgmllib.SGMLParser does not unescape attribute values; patch Message-ID: Patches item #1087808, was opened at 2004-12-18 21:42 Message generated for change (Comment added) made by rvernica You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1087808&group_id=5470 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Library (Lib) Group: None Status: Open Resolution: None Priority: 5 Submitted By: Titus Brown (titus) Assigned to: Martin v. L??wis (loewis) Summary: sgmllib.SGMLParser does not unescape attribute values; patch Initial Comment: for example, in a form parsed by htmllib.HTMLParser (based on SGMLParser),