New submission from Dan Kenigsberg:
ftplib, poplib and smtplib modules define a "quit" function. But when it is
refered by :meth:`quit` in the documentation, a reference to constants.quit is
generated.
The suggested patch spells out the module-specific "quit" function.
Dan Kenigsberg added the comment:
Technically, adjacent Text nodes are not illegal, but preserving this oddity in
pretty-print is impossible. It is perfectly fine to pretty-print only the
simple case of len()==1.
--
___
Python tracker
<h
Dan Kenigsberg added the comment:
btw, http://www.w3.org/TR/xml/#sec-white-space is a bit vague on how should a
parser deal with whitespace, and seems to allow non-preservation of text nodes.
Preserving "simple" text nodes is allowed, too, and is more polite to
applications r
Dan Kenigsberg added the comment:
Oh dear.
Thanks, Enzio, for pointing out that former patch is wrong. It is also quite
naive, since the whole NATURE of toprettyprint() is to add whitespace to Text
nodes. Tomas Lee's
http://bugs.python.org/file11832/minidom-toprettyxml-01.patch ma
Dan Kenigsberg added the comment:
Here's another take on fixing this bug, with an accompanying unit test.
Personally, I'm monkey-patching xml.dom.minidom in order to avoid it, but
please consider fixing it properly upstream.
--
Added file: http://bugs.python.org/file232
Dan Kenigsberg added the comment:
I would rate this issue as a performance bug, not a mere feature request. If
the python process has more than 1023 open file descriptors,
multiprocessing.Pipe.poll() becomes unusable. This is a serious barrier to
using multiprocessing in a complex server
Changes by Dan Kenigsberg :
--
nosy: +danken
___
Python tracker
<http://bugs.python.org/issue4147>
___
___
Python-bugs-list mailing list
Unsubscribe: