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

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 repos

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 3:3

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 bet

[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: . In concrete, I have object files that must be compiled an

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 id

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 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 perhaps with the p

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

2011-12-10 Thread Lennart Regebro
On Sat, Dec 10, 2011 at 13:15, Ben Finney wrote: > Guido van Rossum writes: > >> On Fri, Dec 9, 2011 at 12:26 PM, Cedric Sodhi 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

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

Re: [Python-Dev] Fixing the XML batteries

2011-12-10 Thread Bill Janssen
Stefan Behnel 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 outside p

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.

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 wi

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] 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 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 win23]:

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 nonsen

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 wrote: > Guido van Rossum writes: > > > On Fri, Dec 9, 2011 at 12:26 PM, Cedric Sodhi 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", > > > THA

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

2011-12-10 Thread Ben Finney
Guido van Rossum writes: > On Fri, Dec 9, 2011 at 12:26 PM, Cedric Sodhi 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 ANOTHER LANGUAGE" OR > >

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