Re: [Python-Dev] Fixing the XML batteries

2011-12-10 Thread Tim Wintle
On Fri, 2011-12-09 at 19:39 +0100, Xavier Morel wrote: On 2011-12-09, at 19:15 , Bill Janssen wrote: I use ElementTree for parsing valid XML, but minidom for producing it. Could you expand on your reasons to use minidom for producing XML? To throw my 2c in here: I personally normally use

Re: [Python-Dev] [PATCH] Adding braces to __future__

2011-12-10 Thread Ben Finney
Guido van Rossum gu...@python.org writes: On Fri, Dec 9, 2011 at 12:26 PM, Cedric Sodhi man...@gmx.net wrote: IF YOU THINK YOU MUST REPLY SOMETHING WITTY, ITERATE THAT THIS HAD BEEN DISCUSSED BEFORE, REPLY THAT IT'S SIMPLY NOT GO'NNA HAPPEN, THAT WHO DOESN'T LIKE IT IS FREE TO CHOOSE

Re: [Python-Dev] [PATCH] Adding braces to __future__

2011-12-10 Thread Guido van Rossum
On Sat, Dec 10, 2011 at 4:15 AM, Ben Finney ben+pyt...@benfinney.id.auwrote: Guido van Rossum gu...@python.org writes: On Fri, Dec 9, 2011 at 12:26 PM, Cedric Sodhi man...@gmx.net wrote: IF YOU THINK YOU MUST REPLY SOMETHING WITTY, ITERATE THAT THIS HAD BEEN DISCUSSED BEFORE, REPLY

Re: [Python-Dev] [PATCH] Adding braces to __future__

2011-12-10 Thread francis
Hi Cedric, On 12/09/2011 09:26 PM, Cedric Sodhi wrote: It is widely known among the programmer's community that spaces and tabs are remarkably similar to eachother. So similar even, that people fight wars about which to use in a non-py context. It might strike one as an equally remarkably

Re: [Python-Dev] Tag trackbacks with version (was Re: readd u'' literal support in 3.3?)

2011-12-10 Thread PJ Eby
On Fri, Dec 9, 2011 at 11:11 PM, Terry Reedy tjre...@udel.edu wrote: This just gave me the idea of tagging tracebacks with the Python version number. Something like Traceback (Py3.2.2, most recent call last): and perhaps with the platform also Traceback (most recent call last) [Py3.2.2 on

Re: [Python-Dev] Tag trackbacks with version (was Re: readd u'' literal support in 3.3?)

2011-12-10 Thread Steven D'Aprano
Terry Reedy wrote: On 12/9/2011 5:17 AM, Nick Coghlan wrote: As Chris pointed out though, the real problem with the repeatedly run 2to3 workflow is that it can make interpreting tracebacks from the field *really* hard. This just gave me the idea of tagging tracebacks with the Python version

Re: [Python-Dev] [PATCH] Adding braces to __future__

2011-12-10 Thread Serhiy Storchaka
10.12.11 13:14, francis написав(ла): Formatting is like food, everyone has it's own taste. One has to use spicery to change it (if possible). For me the view of the code (the layout) by the programmer should be automatically changed by the tool that reads the code. Here you could have a python

Re: [Python-Dev] [PATCH] Adding braces to __future__

2011-12-10 Thread Xavier Morel
On 2011-12-10, at 12:14 , francis wrote: (I thing that 'go' has some autoformater or a standard way of formatting). `gofmt` yes, it simply reformats all the code to match the style decided by the core go team, it does not provide support formatting- independent edition. Think of it as pep8.py

Re: [Python-Dev] Fixing the XML batteries

2011-12-10 Thread Bill Janssen
Stefan Behnel stefan...@behnel.de wrote: Bill Janssen, 09.12.2011 19:15: I think another thing that might go into refreshing the batteries is a feature comparison of BeautifulSoup and HTML5lib against the stdlib competition, to see what needs to be added/revised. Having to switch to an

Re: [Python-Dev] Fixing the XML batteries

2011-12-10 Thread Glyph Lefkowitz
On Dec 10, 2011, at 2:38 AM, Stefan Behnel wrote: Note, however, that html5lib is likely way too big to add it to the stdlib, and that BeautifulSoup lacks a parser for non-conforming HTML in Python 3, which would be the target release series for better HTML support. So, whatever library or

Re: [Python-Dev] [PATCH] Adding braces to __future__

2011-12-10 Thread Lennart Regebro
On Sat, Dec 10, 2011 at 13:15, Ben Finney ben+pyt...@benfinney.id.au wrote: Guido van Rossum gu...@python.org writes: On Fri, Dec 9, 2011 at 12:26 PM, Cedric Sodhi man...@gmx.net wrote: IF YOU THINK YOU MUST REPLY SOMETHING WITTY, ITERATE THAT THIS HAD BEEN DISCUSSED BEFORE, REPLY THAT

Re: [Python-Dev] Tag trackbacks with version (was Re: readd u'' literal support in 3.3?)

2011-12-10 Thread Terry Reedy
On 12/10/2011 12:09 PM, PJ Eby wrote: On Fri, Dec 9, 2011 at 11:11 PM, Terry Reedy tjre...@udel.edu mailto:tjre...@udel.edu wrote: This just gave me the idea of tagging tracebacks with the Python version number. Something like Traceback (Py3.2.2, most recent call last): and

Re: [Python-Dev] Tag trackbacks with version (was Re: readd u'' literal support in 3.3?)

2011-12-10 Thread Terry Reedy
On 12/10/2011 12:52 PM, Steven D'Aprano wrote: Terry Reedy wrote: On 12/9/2011 5:17 AM, Nick Coghlan wrote: As Chris pointed out though, the real problem with the repeatedly run 2to3 workflow is that it can make interpreting tracebacks from the field *really* hard. This just gave me the

[Python-Dev] Adding GNU conditional execution in the Makefile?

2011-12-10 Thread Jesus Cea
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Working in the DTRACE probes, I think I can simplify the build logic quite a bit using the GNU Makefile conditional execution: https://www.gnu.org/s/hello/manual/make/Conditional-Syntax.html. In concrete, I have object files that must be compiled and

Re: [Python-Dev] Fixing the XML batteries

2011-12-10 Thread Terry Reedy
On 12/10/2011 4:32 PM, Glyph Lefkowitz wrote: On Dec 10, 2011, at 2:38 AM, Stefan Behnel wrote: Note, however, that html5lib is likely way too big to add it to the stdlib, and that BeautifulSoup lacks a parser for non-conforming HTML in Python 3, which would be the target release series for

Re: [Python-Dev] Adding GNU conditional execution in the Makefile?

2011-12-10 Thread Guido van Rossum
I don't know how widespread gmake is, but I certainly don't want Python to be dependent on GNU tools exclusively. You don't have to use GCC to compile it. (Autoconfig is a different story, it only is needed when config.inchanges. Similar, readline is optional.) --Guido On Sat, Dec 10, 2011 at

Re: [Python-Dev] Fixing the XML batteries

2011-12-10 Thread Glyph Lefkowitz
On Dec 10, 2011, at 6:30 PM, Terry Reedy wrote: A little data: the HTML5lib project lives at https://code.google.com/p/html5lib/ It has 4 owners and 22 other committers. The most recent release, html5lib 0.90 for Python, is nearly 2 years old. Since there is a separate Python3

Re: [Python-Dev] Fixing the XML batteries

2011-12-10 Thread Terry Reedy
On 12/10/2011 9:25 PM, Glyph Lefkowitz wrote: On Dec 10, 2011, at 6:30 PM, Terry Reedy wrote: A little data: the HTML5lib project lives at https://code.google.com/p/html5lib/ It has 4 owners and 22 other committers. If there really are 4 'owners' rather than 4 people with admin access to