Re: [Python-Dev] Changes in html.parser may cause breakage in client code

2012-04-27 Thread Guido van Rossum
Awesome! On Fri, Apr 27, 2012 at 3:07 PM, Carl Meyer wrote: > On 04/27/2012 08:36 AM, Guido van Rossum wrote: >> >> Someone should contact the Django folks. Alex Gaynor? > > > I committed the relevant code to Django (though I didn't write the patch), > and I've been following this thread. I have

Re: [Python-Dev] Changes in html.parser may cause breakage in client code

2012-04-27 Thread Carl Meyer
On 04/27/2012 08:36 AM, Guido van Rossum wrote: Someone should contact the Django folks. Alex Gaynor? I committed the relevant code to Django (though I didn't write the patch), and I've been following this thread. I have it on my todo list to review this code again with Ezio's suggestions in

Re: [Python-Dev] Changes in html.parser may cause breakage in client code

2012-04-27 Thread Terry Reedy
On 4/27/2012 1:23 AM, Ezio Melotti wrote: html.parser doesn't use any private _name, so I was considering part of the public API only the documented names. Several methods are marked with an "# internal" comment, but that's not visible unless you go read the source code. I could not find __all

Re: [Python-Dev] Changes in html.parser may cause breakage in client code

2012-04-27 Thread Guido van Rossum
Someone should contact the Django folks. Alex Gaynor? On Thursday, April 26, 2012, Ezio Melotti wrote: > Hi, > > On 26/04/2012 22.10, Vinay Sajip wrote: > >> Following recent changes in html.parser, the Python 3 port of Django I'm >> working >> on has started failing while parsing HTML. >> >> The

Re: [Python-Dev] Changes in html.parser may cause breakage in client code

2012-04-26 Thread Ezio Melotti
Hi, On 26/04/2012 22.10, Vinay Sajip wrote: Following recent changes in html.parser, the Python 3 port of Django I'm working on has started failing while parsing HTML. The reason appears to be that Django uses some module-level data in html.parser, for example tagfind, which is a regular expres

Re: [Python-Dev] Changes in html.parser may cause breakage in client code

2012-04-26 Thread Nick Coghlan
On Fri, Apr 27, 2012 at 5:21 AM, Guido van Rossum wrote: > Traditionally we've been really lax about this stuff. We should strive > to improve and clarify the exact boundaries of our APIs better. Yeah, I must admit in my own projects these days I habitually mark all module level and class level n

Re: [Python-Dev] Changes in html.parser may cause breakage in client code

2012-04-26 Thread Guido van Rossum
On Thu, Apr 26, 2012 at 12:10 PM, Vinay Sajip wrote: > Following recent changes in html.parser, the Python 3 port of Django I'm > working > on has started failing while parsing HTML. > > The reason appears to be that Django uses some module-level data in > html.parser, > for example tagfind, whi

Re: [Python-Dev] Changes in html.parser may cause breakage in client code

2012-04-26 Thread Georg Brandl
On 26.04.2012 21:10, Vinay Sajip wrote: > Following recent changes in html.parser, the Python 3 port of Django I'm > working > on has started failing while parsing HTML. > > The reason appears to be that Django uses some module-level data in > html.parser, > for example tagfind, which is a regul

[Python-Dev] Changes in html.parser may cause breakage in client code

2012-04-26 Thread Vinay Sajip
Following recent changes in html.parser, the Python 3 port of Django I'm working on has started failing while parsing HTML. The reason appears to be that Django uses some module-level data in html.parser, for example tagfind, which is a regular expression pattern. This has changed recently (Ezio c