[issue1662581] the re module can perform poorly: O(2**n) versus O(n**2)
Aaron Swartz added the comment: Just a note for those who think this is a purely theoretical issue: We've been using the python-markdown module on our web app for a while, only to notice the app has been repeatedly going down. After tracking down the culprit, we found that a speech from Hamlet passed to one of the Markdown regular expressions caused this exponential behavior, freezing up the app. -- nosy: +aaronsw _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1662581 _ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1746656] IPv6 Interface naming/indexing functions
Changes by Gabriel de Perthuis : -- nosy: +onyxg7 type: - rfe _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1746656 _ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1123] split(None, maxsplit) does not strip whitespace correctly
Brett Cannon added the comment: Re-opening as jafo was referring to the string module's function implementation which is deprecated. The real issue is that the built-in types docs are bad. -- assignee: fdrake - resolution: invalid - status: closed - open versions: +Python 2.6 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1123 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1240] str.split bug when using sep = None and maxsplit
Brett Cannon added the comment: issue1123 was the issue I was thinking of. Setting that as a superceder as 1123 was closed prematurely. -- superseder: - split(None, maxsplit) does not strip whitespace correctly __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1240 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1240] str.split bug when using sep = None and maxsplit
Changes by Brett Cannon: -- resolution: - duplicate status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1240 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1238] dictobject and dictentry not used consistently in dictobject.c
Changes by Martin v. Löwis: -- keywords: +patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1238 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1229] 3.0 library/stdtypes.rst
Brett Cannon added the comment: Fixed in revision 58353. -- assignee: - brett.cannon keywords: +py3k nosy: +brett.cannon resolution: - fixed status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1229 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue467384] provide a documented serialization func
Changes by Brett Cannon: -- nosy: -brett.cannon Tracker [EMAIL PROTECTED] http://bugs.python.org/issue467384 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue416670] MatchObjects not deepcopy()able
Changes by Brett Cannon: -- nosy: -brett.cannon Tracker [EMAIL PROTECTED] http://bugs.python.org/issue416670 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1035] bytes buffer API needs to support read locking and/or PyBUF_LOCKDATA
Brett Cannon added the comment: All the tests pass for me, Gregory. Were the failures with some patch you had only locally? -- nosy: +brett.cannon priority: - normal __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1035 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1238] dictobject and dictentry not used consistently in dictobject.c
Changes by Brett Cannon: -- priority: - low __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1238 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1238] dictobject and dictentry not used consistently in dictobject.c
Brett Cannon added the comment: While I understand the argument for faster recompiles, dictobject.(c|h) do not change that often, and thus faster recompiles are not critical. I am with Guido and would rather see the module moved over to public names. Setting the priority to low as this is not critical in any way, although I am all for making code more readable and thus will review any patch that Anthon comes up with that uses the public names. -- nosy: +brett.cannon __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1238 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1160] Medium size regexp crashes python
Changes by Brett Cannon: -- priority: - normal __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1160 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1243] option.dest not set when callback called with optparse
Guido van Rossum added the comment: Since you've done so much work debugging this, would you mind submitting a patch, including a unit test that confirms the desired behavior? -- nosy: +gvanrossum __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1243 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1035] bytes buffer API needs to support read locking and/or PyBUF_LOCKDATA
Gregory P. Smith added the comment: This bug will be taken care of by PEP 3137 http://python.org/dev/peps/pep-3137/ being implemented. Anyways, no the _bsddb.c changes that I checked in do not cause a problem because I checked them in using PyBUF_SIMPLE. Until PEP 3137 is implemented the possibility of hidden data corruption due to mutable bytes objects being modified while an IO library that releases the GIL is using them remains. Feel free to close this bug in favor of something that just tracks the PEP being implemented. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1035 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1035] bytes buffer API needs to support read locking and/or PyBUF_LOCKDATA
Brett Cannon added the comment: On 10/7/07, Gregory P. Smith [EMAIL PROTECTED] wrote: [SNIP] Feel free to close this bug in favor of something that just tracks the PEP being implemented. Eh, it can stay open as a reminder to double-check everything is fine once PEP 3137 goes in. It's really up to you since the bugs is assigned to you. =) __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1035 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1244] Error on 'raise' does not show correct line number and Traceback message
New submission from Alexander Shirokov: Please run debracket.py It halts immediately and the message explains the problem. Regards Alex -- files: debracket.py messages: 56265 nosy: alexander.shirokov severity: normal status: open title: Error on 'raise' does not show correct line number and Traceback message type: behavior versions: Python 2.5 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1244 __#!/usr/bin/python import os, sys, xml.dom.minidom a = '\(\(\(1/\(4959476121600 a1^7 a2^7 r^2\)\)\((-r^14 + 14 a1^13 heavi[a1-5*a2-r^2]^2 )\)\)\)' # Convert the brackets into XML tokens a = a.replace(r'\(','bs\n') a = a.replace(r'\)','/bs\n') a = a.replace('(','bra\n') a = a.replace(')','/bra\n') # Enclose the document a = 'xml\n'+a+'\n/xml\n' # Parse the XML document dom = xml.dom.minidom.parseString(a) def convert_node_to_strlist(dom): try: #print tagName=,dom.tagName dom.tagName except: None a = [] for d in dom.childNodes: if d.nodeType == d.TEXT_NODE: t = str(d.data).strip() if len(t): a += [t] else: a += convert_node_to_strlist(d) return a m = convert_node_to_strlist(dom) #print m if len(m) != 3 and len(m) != 4: raise def extract_nom_denom(m): if len(m) == 3: if m[0] == '1/': nom = m[2] denom = m[1] elif m[1] == '/': nom = m[0] denom = m[2] else: raise elif len(m) == 4: if m[0] == '-' and m[1] == '1/': denom = m[0]+m[2] nom = m[3] else: raise return nom, denom nom,denom = extract_nom_denom(m) a = nom a = a.replace(' + ', '\n+') a = a.replace(' - ', '\n-') # Make sure the first token is a signed integer coefficient q = [] a0 = a.split('\n') for a in a0: if len(a) == 0: continue #print , a b = a.split() test_int = 1 #print | try: c = int(b[0]) except: test_int = 0 if test_int: repl = '%+d %s' % ( c, ' '.join(b[1:])) else: w = b[0] if w[0] == '+': c = 1 w = ''.join(list(w[1:])) elif w[0] == '-': c = -1 w = ''.join(list(w[1:])) else: c = 1 repl = '%+d %s %s' % ( c, w, ' '.join(b[1:])) #print '', repl q += [repl] a = '\n'.join(q) token='heavi' # Pad the powers pad=2 b0 = [] a0 = a.split('\n') for l in a0: #print 'l=',l o0 = [] l0 = l.split() #print 'l0=',l0 for w in l0: s = w.split('^') # This is an ordinary word if len(s) == 1: o = w # This is a power elif len(s) == 2: bs = s[0] pw = int(s[1]) if bs.find(token) == 0: if pw == 0: raise o = bs else: pw = %0*d % ( pad, pw ) o = bs+'^'+pw else: print A. Shirokov: The error occurs with 'raise' in line 154 print but Python does not report the line number correctly, by only saying 'File \./debracket.py\, line 91' print The stack of error messages may have some problem print raise o0 += [o] b0 += [ ' '.join(o0) ] a = '\n'.join(b0); print Done3 fh = file(fb,w) fh.write(a) fh.close() print Done4 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com