Re: [Python-Dev] [Python-checkins] cpython: Add a few entries to whatsnew/3.3.rst.

2012-09-26 Thread Walter Dörwald

On 26.09.12 16:43, ezio.melotti wrote:


http://hg.python.org/cpython/rev/36f61661f71e
changeset:   79194:36f61661f71e
user:Ezio Melotti 
date:Wed Sep 26 17:43:23 2012 +0300
summary:
   Add a few entries to whatsnew/3.3.rst.
[...]
+
+A new :data:`~html.entities.html5` dictionary that maps HTML5 named character
+references to the equivalent Unicode character(s) (e.g. ``html5['gt;'] == 
'>'``)
+has been added to the :mod:`html.entities` module.  The dictionary is now also
+used by :class:`~html.parser.HTMLParser`.


Is there a reason why the trailing ';' is included in the entity names?

Servus,
   Walter


___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] [Python-checkins] cpython: Add a few entries to whatsnew/3.3.rst.

2012-09-26 Thread Ezio Melotti
On Wed, Sep 26, 2012 at 6:02 PM, Walter Dörwald  wrote:
> On 26.09.12 16:43, ezio.melotti wrote:
>
>> http://hg.python.org/cpython/rev/36f61661f71e
>> changeset:   79194:36f61661f71e
>> user:Ezio Melotti 
>> date:Wed Sep 26 17:43:23 2012 +0300
>> summary:
>>Add a few entries to whatsnew/3.3.rst.
>> [...]
>>
>> +
>> +A new :data:`~html.entities.html5` dictionary that maps HTML5 named 
>> character
>> +references to the equivalent Unicode character(s) (e.g. ``html5['gt;'] == 
>> '>'``)
>> +has been added to the :mod:`html.entities` module.  The dictionary is now 
>> also
>> +used by :class:`~html.parser.HTMLParser`.
>
>
> Is there a reason why the trailing ';' is included in the entity names?
>

Yes, to quote :

"""
The problem is that the standard allows some charref to end without a
';', but not all of them.

So both "Éric" and Éric" will be parsed as "Éric", but
only "αcentauri" will result in "αcentauri" -- "&alphacentauri"
will be returned unchanged.
"""

To preserve this I included them both, in the same way they are listed
at .
This is also explained at
.

Best Regards,
Ezio Melotti

> Servus,
>Walter
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


[Python-Dev] buildbot with -O

2012-09-26 Thread Benjamin Peterson
In light of issue #16046, I think it would be helpful to have a
buildbot running the testsuite with -O enabled.

-- 
Regards,
Benjamin
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] buildbot with -O

2012-09-26 Thread Maciej Fijalkowski
On Thu, Sep 27, 2012 at 1:00 AM, Benjamin Peterson  wrote:
> In light of issue #16046, I think it would be helpful to have a
> buildbot running the testsuite with -O enabled.

How about deprecating -O completely instead? It does not seem to give
any speedups and definitely gives headaches.
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] buildbot with -O

2012-09-26 Thread R. David Murray
On Wed, 26 Sep 2012 19:00:53 -0400, Benjamin Peterson  
wrote:
> In light of issue #16046, I think it would be helpful to have a
> buildbot running the testsuite with -O enabled.

I've got some (slow) hardware I could dedicate to this, though
it may take me a few weeks to find time to set it up.

--David
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] buildbot with -O

2012-09-26 Thread Benjamin Peterson
2012/9/26 Maciej Fijalkowski :
> On Thu, Sep 27, 2012 at 1:00 AM, Benjamin Peterson  
> wrote:
>> In light of issue #16046, I think it would be helpful to have a
>> buildbot running the testsuite with -O enabled.
>
> How about deprecating -O completely instead? It does not seem to give
> any speedups and definitely gives headaches.

I'm all for that, but I'd rather have it tested in the meantime.


-- 
Regards,
Benjamin
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] buildbot with -O

2012-09-26 Thread Trent Nelson
On Wed, Sep 26, 2012 at 04:13:42PM -0700, Benjamin Peterson wrote:
> 2012/9/26 Maciej Fijalkowski :
> > On Thu, Sep 27, 2012 at 1:00 AM, Benjamin Peterson  
> > wrote:
> >> In light of issue #16046, I think it would be helpful to have a
> >> buildbot running the testsuite with -O enabled.
> >
> > How about deprecating -O completely instead? It does not seem to give
> > any speedups and definitely gives headaches.
> 
> I'm all for that, but I'd rather have it tested in the meantime.

You can use Snakebite for this sort of stuff.  Grab a slave ID off
Antoine, then log in to whatever slave you want and set up a new
instance (say, ~/buildslave-with-O).  (Look at existing slave
details in ~/buildslave/buildbot.tac for hints on password etc.)

And as a general side bar: all committers automatically have full
access to Snakebite.  You don't need to register keys* or sign up or
anything.  I've tried to make it as painless as possible to connect
to:
% cd ~
% svn co http://svn.snakebite.net/.snakebite
% cd .snakebite
% sh snakebite.subr

[*]: just to clarify: Snakebite's already been primed
 with whatever ssh key you use to commit to hg.

From then on, just run ~/.snakebite/sb to get access to the host
menu.  That will work out of the box for all committers.  (Next set
of enhancements will focus on linking a local source directory (on
your laptop/desktop) to Snakebite and spinning up a buildbot master
+ slaves on demand, so you won't even have to log in and faff around
with priming a build environment like you do now.  (I, uh, sort of
need to do a little funding/donation drive before then though, which
is what I'm currently organizing.))


Trent.
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com