[issue4147] xml.dom.minidom toprettyxml: omit whitespace for text-only elements

2011-10-01 Thread Dan Kenigsberg

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/file23286/minidom-Text-toprettyxml.patch

___
Python tracker 
<http://bugs.python.org/issue4147>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4147] xml.dom.minidom toprettyxml: omit whitespace for text-only elements

2011-10-02 Thread Dan Kenigsberg

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 made an effort to 
touch only "simple" Text nodes, that are confined within a single .

I did not expect 
http://bugs.python.org/file23286/minidom-Text-toprettyxml.patch to get in so 
quickly, after the former one spent several years on queue. However now is time 
to fix it, possible by my second patch.

--
Added file: http://bugs.python.org/file23294/minidom-Text-toprettyxml-02.patch

___
Python tracker 
<http://bugs.python.org/issue4147>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4147] xml.dom.minidom toprettyxml: omit whitespace for text-only elements

2011-10-02 Thread Dan Kenigsberg

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 reading the prettyxml.

--

___
Python tracker 
<http://bugs.python.org/issue4147>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4147] xml.dom.minidom toprettyxml: omit whitespace for text-only elements

2011-11-15 Thread Dan Kenigsberg

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 
<http://bugs.python.org/issue4147>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10527] multiprocessing.Pipe problem: "handle out of range in select()"

2011-06-14 Thread Dan Kenigsberg

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.

--
nosy: +danken
type: feature request -> performance

___
Python tracker 
<http://bugs.python.org/issue10527>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4147] xml.dom.minidom toprettyxml: omit whitespace for text-only elements

2010-04-25 Thread Dan Kenigsberg

Changes by Dan Kenigsberg :


--
nosy: +danken

___
Python tracker 
<http://bugs.python.org/issue4147>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16789] :meth:`quit` links to constants instead of own module

2012-12-26 Thread Dan Kenigsberg

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.

--
assignee: docs@python
components: Documentation
files: meth:quit.patch
keywords: patch
messages: 178222
nosy: danken, docs@python
priority: normal
severity: normal
status: open
title: :meth:`quit` links to constants instead of own module
type: behavior
Added file: http://bugs.python.org/file28445/meth:quit.patch

___
Python tracker 
<http://bugs.python.org/issue16789>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com