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