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:
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
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
__
Changes by Fredrik Lundh:
--
status: open - closed
_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1602189
_
___
Python-bugs-list mailing list
Unsubscribe:
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
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]
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
Changes by Fredrik Lundh:
--
type: - behavior
versions: +Python 2.4, Python 2.5
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue814253
___
Python-bugs-list
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
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
Changes by Georg Brandl:
--
assignee: - georg.brandl
nosy: +georg.brandl
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1121
__
___
Python-bugs-list mailing list
Changes by Georg Brandl:
--
assignee: - georg.brandl
nosy: +georg.brandl
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1122
__
___
Python-bugs-list mailing list
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
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
__
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
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
__
Changes by Martin v. Löwis:
--
keywords: +patch
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1145
__
___
Python-bugs-list mailing list
Unsubscribe:
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
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]
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
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
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]
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,
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
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
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,
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
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
Changes by Brett Cannon:
--
assignee: - brett.cannon
nosy: +brett.cannon
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1147
__
___
Python-bugs-list mailing list
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
__
Brett Cannon added the comment:
Rev. 58109 covers 2.5.
--
resolution: - fixed
status: open - closed
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1147
__
___
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.
#
...
32 matches
Mail list logo