[issue1143] Updated to latest ElementTree in 2.6

2007-09-11 Thread Fredrik Lundh
New submission from Fredrik Lundh: The xml.etree package should be updated to ElementTree 1.3/cElementTree 1.0.6 (or later). -- assignee: effbot components: XML messages: 55811 nosy: effbot priority: normal severity: minor status: open title: Updated to latest ElementTree in 2.6 type:

[issue1602189] Suggest a textlist() method for ElementTree

2007-09-11 Thread Fredrik Lundh
Fredrik Lundh added the comment: ElementTree 1.3 provides a variant of this (tentatively called itertext). -- resolution: - accepted superseder: - Updated to latest ElementTree in 2.6 _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1602189

[issue1143] Update to latest ElementTree in Python 2.6

2007-09-11 Thread Fredrik Lundh
Changes by Fredrik Lundh: -- title: Updated to latest ElementTree in 2.6 - Update to latest ElementTree in Python 2.6 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1143 __

[issue1602189] Suggest a textlist() method for ElementTree

2007-09-11 Thread Fredrik Lundh
Changes by Fredrik Lundh: -- status: open - closed _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1602189 _ ___ Python-bugs-list mailing list Unsubscribe:

[issue1142] code sample showing errors reading large files with py 2.5/3.0

2007-09-11 Thread christen
christen added the comment: Hi Guido It is not the end of the file that is not read (see also below) I found about that about one year ago when I was parsing very large files resulting from blast on the human genome My parser chock after 4 Go, well before the end of the file : one line was

[issue1745722] please add wsgi to SimpleXMLRPCServer

2007-09-11 Thread Fredrik Lundh
Fredrik Lundh added the comment: A proper patch, including tests (if possible) and documentation, would be nice. (also note that SimpleXMLRPCServer was written by Brian Quinlan.) -- assignee: effbot - _ Tracker [EMAIL PROTECTED]

[issue1690840] xmlrpclib methods submit call on __str__, __repr__

2007-09-11 Thread Fredrik Lundh
Fredrik Lundh added the comment: I'm trying to think of a reason for actually providing __repr__ over RPC, but I cannot find any. Not quite as sure about __str__, though; I suggest adding a __repr__ method, but leaving the rest as is. -- assignee: effbot - collinwinter

[issue814253] Grouprefs in lookbehind assertions

2007-09-11 Thread Fredrik Lundh
Changes by Fredrik Lundh: -- type: - behavior versions: +Python 2.4, Python 2.5 Tracker [EMAIL PROTECTED] http://bugs.python.org/issue814253 ___ Python-bugs-list

[issue1026] Backport ABC to 2.6

2007-09-11 Thread Benjamin Aranguren
Benjamin Aranguren added the comment: Yes. I plan to work on it this weekend. I hope that's okay. On 9/10/07, Guido van Rossum [EMAIL PROTECTED] wrote: Guido van Rossum added the comment: Committed revision 58099. (I had to backport test_typechecks.py myself, and fix one issue in

[issue1690840] xmlrpclib methods submit call on __str__, __repr__

2007-09-11 Thread Greg Hazel
Greg Hazel added the comment: How about making ServerProxy a new-style class? _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1690840 _ ___ Python-bugs-list mailing list

[issue1121] Document inspect.getfullargspec()

2007-09-11 Thread Georg Brandl
Changes by Georg Brandl: -- assignee: - georg.brandl nosy: +georg.brandl __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1121 __ ___ Python-bugs-list mailing list

[issue1122] PyTuple_Size and PyTuple_GET_SIZE return type documentation incorrect

2007-09-11 Thread Georg Brandl
Changes by Georg Brandl: -- assignee: - georg.brandl nosy: +georg.brandl __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1122 __ ___ Python-bugs-list mailing list

[issue1144] parsermodule validation out of sync with Grammar

2007-09-11 Thread David Binger
New submission from David Binger: parser.sequence2st(parser.suite(class A(object): pass).tolist()) Traceback (most recent call last): File stdin, line 1, in module parser.ParserError: Expected node type 326, got 329. --- The Grammar in python 3 uses arglist instead of testlist for class

[issue1123] split(None, maxsplit) does not strip whitespace correctly

2007-09-11 Thread Nir Soffer
Nir Soffer added the comment: There is a problem only when maxsplit is smaller than the available splits. In other cases, the docs and the behavior match. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1123 __

[issue1145] Allow str.join to join non-string types (as per PEP 3100)

2007-09-11 Thread Thomas Lee
New submission from Thomas Lee: The current implementation of str.join requires that the parameters passed to it be string/unicode values. A suggestion to allow it to accept parameters of any type came up in PEP 3100. Implemented for Unicode using the attached patch. It would be trivial to add

[issue1145] Allow str.join to join non-string types (as per PEP 3100)

2007-09-11 Thread Thomas Lee
Thomas Lee added the comment: Oh and an example of usage: # before the patch ', '.join([str(x) for x in [1, 2, 3]]) # after the patch ', '.join([1, 2, 3]) __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1145 __

[issue1145] Allow str.join to join non-string types (as per PEP 3100)

2007-09-11 Thread Martin v. Löwis
Changes by Martin v. Löwis: -- keywords: +patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1145 __ ___ Python-bugs-list mailing list Unsubscribe:

[issue1146] TextWrap vs words 1-character shorter than the width

2007-09-11 Thread sam
New submission from sam: from textwrap import wrap wrap(foobarbaz reallylongwordgoeshere, width = 10) ['foobarbaz r', 'eallylongw', 'ordgoesher', 'e'] print [len(s) for s in _] [11, 10, 10, 1] This only seems to happen when the first word on the line is exactly one character shorter than the

[issue1056] test_cmd_line starts python without -E

2007-09-11 Thread Nick Coghlan
Nick Coghlan added the comment: Fixed for 2.6 in rev 58103 (Is the head still being merged to the py3k branch? Or does this need to be forward-ported manually?) -- nosy: +ncoghlan resolution: - fixed status: open - closed __ Tracker [EMAIL PROTECTED]

[issue1739468] Add a -z interpreter flag to execute a zip file

2007-09-11 Thread Nick Coghlan
Nick Coghlan added the comment: I like PJE's approach, and the patch works for me. About the only thing I'd change is to switch the expression in PyImport_GetImporter to a simple chain of if-statements in order to: - silence the warning from GCC about an unused value - make it more obvious

[issue1147] string exceptions inconsistently deprecated/disabled

2007-09-11 Thread Jean-Paul Calderone
New submission from Jean-Paul Calderone: Python 2.5 deprecated raising string exceptions. It also added the throw method to generator objects which can be used to raise an exception, including a string exception. Raising an exception with this method doesn't issue a deprecation warning. It

[issue1739468] Add a -z interpreter flag to execute a zip file

2007-09-11 Thread Paul Moore
Paul Moore added the comment: PJE's patch looks OK. I agree with Nick that the chain of s in PyImport_GetImporter should be expanded into a chain of ifs. As it stands, the code is needlessly obfuscated. _ Tracker [EMAIL PROTECTED]

[issue1148] TypeError on join - httplib mixing str and bytes

2007-09-11 Thread Eduardo Padoan
New submission from Eduardo Padoan: To reproduce: import httplib conn = httplib.HTTPConnection(www.python.org) conn.request(GET, /index.html) r1 = conn.getresponse() r1.read() Traceback (most recent call last): File stdin, line 1, in module File /home/eopadoan/pub/py3k/Lib/httplib.py,

[issue1149] fdopen does not work as expected

2007-09-11 Thread Luís Pedro Coelho
New submission from Luís Pedro Coelho: from os import * def Fork(): b = fork() if b 0: raise Exception('fork() failed') return b r,w=pipe() b = Fork() if b == 0: dup2(w,1) close(w) execlp('echo',\ 'echo',\ 'Hello world') else: for line in

[issue1150] Rename PyBUF_WRITEABLE to PyBUF_WRITABLE

2007-09-11 Thread Guido van Rossum
New submission from Guido van Rossum: Because writeable is not an English word; writable is. Other names should be fixed as well. -- messages: 55830 nosy: gvanrossum severity: normal status: open title: Rename PyBUF_WRITEABLE to PyBUF_WRITABLE versions: Python 3.0

[issue1141] reading large files

2007-09-11 Thread Ben Beasley
Ben Beasley added the comment: I ran Richard Christen's script from msg55784 on Ubuntu Feisty Fawn (64-bit) with both Python 2.5.1 and Python 3.0a1 (for the latter, I had to change xrange to range). (2, 5, 1, 'final', 0) 2007-09-11 11:39:08 (500, 7.3925600051879883) (1000,

[issue1141] reading large files

2007-09-11 Thread Ben Beasley
Ben Beasley added the comment: See the BDFL's comment in msg55828. I know Py3k text I/O is very slow; it's written in Python and uses UTF-8 as the default encoding. We've got a summer of code student working on an accelerating this. (And if he doesn't finish we have another year to work on it

[issue1151] TypeError: expected string, bytes found instead of KeyboardInterrupt

2007-09-11 Thread Eduardo Padoan
New submission from Eduardo Padoan: On revision 54803, interactive mode, on linux: if type ctrl+c you type ctrl+c, it should raise KeyboardInterrupt, but TypeError: expected string, bytes found printed. Also, I could *not* catch it doing: try: ... while True: pass ... except

[issue1147] string exceptions inconsistently deprecated/disabled

2007-09-11 Thread Brett Cannon
Changes by Brett Cannon: -- assignee: - brett.cannon nosy: +brett.cannon __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1147 __ ___ Python-bugs-list mailing list

[issue1147] string exceptions inconsistently deprecated/disabled

2007-09-11 Thread Brett Cannon
Brett Cannon added the comment: Fixed on the trunk in rev. 58108. Need to change 2.5 to raise a warning. -- priority: - normal versions: -Python 2.6 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1147 __

[issue1147] string exceptions inconsistently deprecated/disabled

2007-09-11 Thread Brett Cannon
Brett Cannon added the comment: Rev. 58109 covers 2.5. -- resolution: - fixed status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1147 __ ___

[issue1152] Bug in documentation for SimpleXMLRPCServer

2007-09-11 Thread Frank Millman
New submission from Frank Millman: I spotted a minor bug in the documentation to SimpleXMLRPCServer. Background: xmlrpclib.py has the following - # This class is available as ServerProxy and Server. New code should # use ServerProxy, to avoid confusion. # ...