Re: Python 3.2 and html.escape function

2011-02-21 Thread Martin v. Loewis
> Well, I just learned something, thank you. I was under the mistaken > impression that adding new functionality after the first alpha release > was not permitted by the Python devs. It's the first beta release after which no new functionality could be added. Regards, Martin -- http://mail.pyt

Re: Python 3.2 and html.escape function

2011-02-21 Thread Rafe Kettler
On Feb 20, 8:15 am, Gerald Britton wrote: > I see that Python 3.2 includes a new module -- html -- with a single > function -- escape.  I would like to know how this function differs > from xml.sax.saxutils.escape and, if there is no difference (or only a > minor one), what the need is for this ne

Re: Python 3.2 and html.escape function

2011-02-21 Thread Tim Delaney
On 21 February 2011 19:56, Steven D'Aprano < steve+comp.lang.pyt...@pearwood.info> wrote: > On Sun, 20 Feb 2011 15:33:39 +0100, Peter Otten wrote: > > > Steven D'Aprano wrote: > > > >> On Sun, 20 Feb 2011 08:15:35 -0500, Gerald Britton wrote: > >> > >>> I see that Python 3.2 includes a new module

Re: Python 3.2 and html.escape function

2011-02-21 Thread Steven D'Aprano
On Sun, 20 Feb 2011 15:33:39 +0100, Peter Otten wrote: > Steven D'Aprano wrote: > >> On Sun, 20 Feb 2011 08:15:35 -0500, Gerald Britton wrote: >> >>> I see that Python 3.2 includes a new module -- html -- with a single >>> function -- escape. I would like to know how this function differs >>> f

Python 3.2 and html.escape function

2011-02-20 Thread Gerald Britton
Forgot to include the reference: http://docs.python.org/dev/whatsnew/3.2.html html A new html module was introduced with only a single function, escape(), which is used for escaping reserved characters from HTML markup: >>> import html >>> html.escape('x > 2 && x < 7') 'x > 2 && x < 7' -- Gera

Re: Python 3.2 and html.escape function

2011-02-20 Thread Peter Otten
Steven D'Aprano wrote: > On Sun, 20 Feb 2011 08:15:35 -0500, Gerald Britton wrote: > >> I see that Python 3.2 includes a new module -- html -- with a single >> function -- escape. I would like to know how this function differs from >> xml.sax.saxutils.escape and, if there is no difference (or on

Re: Python 3.2 and html.escape function

2011-02-20 Thread Steven D'Aprano
On Sun, 20 Feb 2011 08:15:35 -0500, Gerald Britton wrote: > I see that Python 3.2 includes a new module -- html -- with a single > function -- escape. I would like to know how this function differs from > xml.sax.saxutils.escape and, if there is no difference (or only a minor > one), what the nee

Python 3.2 and html.escape function

2011-02-20 Thread Gerald Britton
I see that Python 3.2 includes a new module -- html -- with a single function -- escape. I would like to know how this function differs from xml.sax.saxutils.escape and, if there is no difference (or only a minor one), what the need is for this new module and its lone function -- Gerald Britton