[Python-Dev] Maintenance burden of str.swapcase

2011-09-05 Thread Michael Foord
Hey all,

A while ago there was a discussion of the value of apis like str.swapcase, and 
it was suggested that even though it was acknowledged to be useless the effort 
of deprecating and removing it was thought to be more than the value in 
removing it. 

Earlier this year I was at a pypy sprint helping to work on Python 2.7 
compatibility. The bytearray type has much of the string interface, including 
swapcase… So there was effort to implement this method with the correct 
semantics for pypy. Doubtless the same has been true for IronPython, and will 
also be true for Jython.

Whilst it is too late for Python 2.x, it *is* (in my opinion) worth removing 
unused and unneeded APIs. Even if the effort to remove them is more than any 
effort saved on the part of users it helps other implementations down the road 
that no longer need to provide these APIs.

All the best,

Michael Foord

-- 
http://www.voidspace.org.uk/

May you do good and not evil
May you find forgiveness for yourself and forgive others
May you share freely, never taking more than you give.
-- the sqlite blessing http://www.sqlite.org/different.html
___
Python-Dev mailing list
[email protected]
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 (3.2): #5301: add image/vnd.microsoft.icon (.ico) MIME type

2011-09-05 Thread Éric Araujo
Hi,

Le 21/08/2011 11:09, Sandro Tosi a écrit :
> On Sun, Aug 21, 2011 at 10:17, Éric Araujo  wrote:
>> However small the commit was, I think it still was a feature request, so
>> I wonder if it was appropriate for the stable versions.
> 
> I can see your point: the reason I committed it also on the stable
> branches is that .ico are already out there (since a long time) and
> they were currently not recognized. I can call it a bug.
> 
> Anyhow, if it was not appropriate, just tell me and I'll revert on 2.7
> and 3.2 .

It should be reverted, yes, at least in 2.7.  Apparently Georg has
accepted and released the fix for 3.2.2.

Regards
___
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] PEP 393 Summer of Code Project

2011-09-05 Thread Éric Araujo
Le 02/09/2011 05:59, Stephen J. Turnbull a écrit :
> I believe that the deprecation of the digraphs as separate letters
> occurred as the telephone became widely used in Spain, and the
> telephone company demanded an official proclamation from whatever
> Ministry is responsible for culture that it was OK to treat the
> digraphs as two letters (specifically, to collate them that way), so
> that they could use the programs that came with the OS.
> 
> So this stuff is not merely variant by culture, but also by economics
> and politics. :-/

That is a truth for language matters and linguistics, as well as in
other domains and sciences.

Cheers
___
Python-Dev mailing list
[email protected]
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 (3.2): Fix PyUnicode_AsWideCharString() doc: size doesn't contain the null character

2011-09-05 Thread Nick Coghlan
On Tue, Sep 6, 2011 at 10:01 AM, victor.stinner
 wrote:
> Fix also spelling of the null character.

While these cases are legitimately changed to 'null' (since they're
lowercase descriptions of the character), I figure it's worth
mentioning again that the ASCII name for '\0' actually *is* NUL (i.e.
only one 'L'). Strange, but true [1].

Cheers,
Nick.

[1] https://secure.wikimedia.org/wikipedia/en/wiki/ASCII

-- 
Nick Coghlan   |   [email protected]   |   Brisbane, Australia
___
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] Multigigabyte memory usage in the OpenIndiana Buildbot

2011-09-05 Thread Jesus Cea
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 02/09/11 20:14, Antoine Pitrou wrote:
> On Fri, 02 Sep 2011 19:53:37 +0200 Jesus Cea  wrote:
>> -BEGIN PGP SIGNED MESSAGE- Hash: SHA1
>> 
>> On 02/09/11 17:57, Jesus Cea wrote:
>>> The build hangs or die with a "out of memory" error,
>>> eventually.
>> 
>> A simple "make test" with python not compiled with "pydebug" and 
>> skipping all the optional tests (like zip64) is taking up to
>> 300MB of RAM. Python 2.7 branch, current tip.
> 
> Can you tell if it's something recent or it has always been like
> that?

I can't tell. My host has restricted me recently to 4GB RAM max (no
swap), and the buildbot is failing now, but I don't know if using so
much memory is something recent or not.

Previously I could use up to 32GB of RAM.

- -- 
Jesus Cea Avion _/_/  _/_/_/_/_/_/
[email protected] - http://www.jcea.es/ _/_/_/_/  _/_/_/_/  _/_/
jabber / xmpp:[email protected] _/_/_/_/  _/_/_/_/_/
.  _/_/  _/_/_/_/  _/_/  _/_/
"Things are not so easy"  _/_/  _/_/_/_/  _/_/_/_/  _/_/
"My name is Dump, Core Dump"   _/_/_/_/_/_/  _/_/  _/_/
"El amor es poner tu felicidad en la felicidad de otro" - Leibniz
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQCVAwUBTmWc3Zlgi5GaxT1NAQKhGgP/U8f/NEk2WeNdEngasEDFxX1xSEzJMddo
qIv7XkGXc93LNdGpqaIzNgW2d5NX3i7es0U5NrDtJVa0BTDLorKFN+zV6RpInZUO
eQR65ZYn6Ld1xioyrb74v5vZq7HXcONhyVPcmXufRHkzkZ+kTnybvyc60plZEN5n
NyHJkl7gNcU=
=iNH7
-END PGP SIGNATURE-
___
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] Multigigabyte memory usage in the OpenIndiana Buildbot

2011-09-05 Thread Nick Coghlan
On Tue, Sep 6, 2011 at 2:09 PM, Jesus Cea  wrote:
>> Can you tell if it's something recent or it has always been like
>> that?
>
> I can't tell. My host has restricted me recently to 4GB RAM max (no
> swap), and the buildbot is failing now, but I don't know if using so
> much memory is something recent or not.
>
> Previously I could use up to 32GB of RAM.

Is it possible your buildbot is set up to run the bigmem tests? IIRC,
those would work correctly with 32 GB, but die a horrible death with
only 4 GB available.

Regards,
Nick.

-- 
Nick Coghlan   |   [email protected]   |   Brisbane, Australia
___
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] Multigigabyte memory usage in the OpenIndiana Buildbot

2011-09-05 Thread Jesus Cea
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 06/09/11 06:19, Nick Coghlan wrote:
> Is it possible your buildbot is set up to run the bigmem tests?
> IIRC, those would work correctly with 32 GB, but die a horrible
> death with only 4 GB available.

How can I check that?.

I am seen multiple python processes, quite a few, each taking around
300MB of RAM.

- -- 
Jesus Cea Avion _/_/  _/_/_/_/_/_/
[email protected] - http://www.jcea.es/ _/_/_/_/  _/_/_/_/  _/_/
jabber / xmpp:[email protected] _/_/_/_/  _/_/_/_/_/
.  _/_/  _/_/_/_/  _/_/  _/_/
"Things are not so easy"  _/_/  _/_/_/_/  _/_/_/_/  _/_/
"My name is Dump, Core Dump"   _/_/_/_/_/_/  _/_/  _/_/
"El amor es poner tu felicidad en la felicidad de otro" - Leibniz
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQCVAwUBTmWhPZlgi5GaxT1NAQLkFAP/YBJ5owdNdl2yiJMc8kVi4Ndjt5WK5aRa
DY24wZvQP/wY1gOjWKGceTm5Mkhds1Y3qWnP4nW8l1nQNxj+xAdqc5SUQcBHQRVo
5xtC+gQQ1HqDUS4FhAn+IgvlXtnoT0cTfgRO2G7k0ti89KN79aCR+q52TSOy0VCW
1Spv9ilP1Rk=
=Ffmz
-END PGP SIGNATURE-
___
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] Multigigabyte memory usage in the OpenIndiana Buildbot

2011-09-05 Thread Nick Coghlan
On Tue, Sep 6, 2011 at 2:27 PM, Jesus Cea  wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> On 06/09/11 06:19, Nick Coghlan wrote:
>> Is it possible your buildbot is set up to run the bigmem tests?
>> IIRC, those would work correctly with 32 GB, but die a horrible
>> death with only 4 GB available.
>
> How can I check that?.
>
> I am seen multiple python processes, quite a few, each taking around
> 300MB of RAM.

The test logs include the exact command that is executed:
http://www.python.org/dev/buildbot/all/builders/AMD64%20OpenIndiana%203.x/builds/1731/steps/test/logs/stdio

So it looks like you're just running the standard test resource (which
makes sense, since the bigmem tests would saturate your system with a
single process rather than multiple processes).

The server actually looks it may be in a generally unhappy state,
perhaps due to previous builds that failed without cleaning up after
themselves properly. How many python processes do you see hanging
around?

Regards,
Nick.

-- 
Nick Coghlan   |   [email protected]   |   Brisbane, Australia
___
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] Multigigabyte memory usage in the OpenIndiana Buildbot

2011-09-05 Thread Jesus Cea
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 06/09/11 06:46, Nick Coghlan wrote:
> The server actually looks it may be in a generally unhappy state, 
> perhaps due to previous builds that failed without cleaning up
> after themselves properly. How many python processes do you see
> hanging around?

Just now:

"""
   PID USERNAME  SIZE   RSS STATE  PRI NICE  TIME  CPU
PROCESS/NLWP
  4340 buildbot  366M  344M sleep10   0:11:23 0.0% python/2
 10097 buildbot  366M 8096K sleep   250   0:00:00 0.0% python/1
 10099 buildbot  366M 8100K sleep   250   0:00:00 0.0% python/1
 10098 buildbot  366M 8108K sleep   260   0:00:00 0.0% python/1
 27698 buildbot  251M 5244K sleep10   0:00:00 0.0% python/1
 27697 buildbot  251M   11M sleep10   0:00:00 0.0% python/1
 27695 buildbot  251M 5852K sleep10   0:00:00 0.0% python/1
 27694 buildbot  251M 5844K sleep10   0:00:00 0.0% python/1
 27696 buildbot  251M 5884K sleep10   0:00:00 0.0% python/1
 27693 buildbot  251M 5964K sleep10   0:00:00 0.0% python/1
  9893 buildbot  202M  198M sleep11   0:09:32 0.0% python/2
 14538 buildbot  200M 4700K sleep11   0:00:00 0.0% python/1
 25971 buildbot  194M  189M sleep   100   0:11:22 0.0% python/2
  2616 buildbot  120M  114M sleep10   0:06:38 0.0% python/47
 11204 buildbot  118M 5612K sleep10   0:00:00 0.0% python/2
ZONEIDNPROC  SWAP   RSS MEMORY  TIME  CPU ZONE

23   56 4073M 1632M40%   0:39:38 0.0%
pythonbuildbot.uk.openindiana.org
"""

This particular build seems to have hang, usual result of running out
of memory. Note the SWAP usage of 4073MB, when my limit seems to be
4096MB.

The buildbot master process will kill this "hang" processes after the
usual timeout.

I have requested raising my memory limit to my host, with no effect so
far. Anyway, eating >4GB of RAM seems quite overkill.

Doing a "make test" manually I can see the python process doing the
test to eat more than 200MB of RAM, but it only launch a python
process, not a handful like the regular buildbot.

I have verified that the memory use is atribuible to the buildbot,
since if I kill the buildbot processes, my RAM+SWAP usage is negligible.

Thanking for helping me with this.

- -- 
Jesus Cea Avion _/_/  _/_/_/_/_/_/
[email protected] - http://www.jcea.es/ _/_/_/_/  _/_/_/_/  _/_/
jabber / xmpp:[email protected] _/_/_/_/  _/_/_/_/_/
.  _/_/  _/_/_/_/  _/_/  _/_/
"Things are not so easy"  _/_/  _/_/_/_/  _/_/_/_/  _/_/
"My name is Dump, Core Dump"   _/_/_/_/_/_/  _/_/  _/_/
"El amor es poner tu felicidad en la felicidad de otro" - Leibniz
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQCVAwUBTmWorplgi5GaxT1NAQIb7QP/Y/Mr0RhhRTM1Rld7xKqNi77tcB0+p4CX
EZ0fViNr/NF6NibKMzowi0pr42iZ3dXN4/yRQgNsvGhfzTrpi+J3Z1GCg5vnqox3
jOC+DQ5IrZylLV+zH46K9j2UJ+4hvU3PWBZcGAt6iB4EVK1h8mvBBW08VeDoN5Cj
Nkqth694BcY=
=KAwa
-END PGP SIGNATURE-
___
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] Multigigabyte memory usage in the OpenIndiana Buildbot

2011-09-05 Thread Jesus Cea
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 06/09/11 06:59, Jesus Cea wrote:
> Thanking for helping me with this.

BTW, it is 7AM in Spain now. I am going bed. I will check this thread
again tomorrow. Thanks for your time and effort. This is very
frustrating, moreover because it was working very well (with 32GB of
RAM... :-).


- -- 
Jesus Cea Avion _/_/  _/_/_/_/_/_/
[email protected] - http://www.jcea.es/ _/_/_/_/  _/_/_/_/  _/_/
jabber / xmpp:[email protected] _/_/_/_/  _/_/_/_/_/
.  _/_/  _/_/_/_/  _/_/  _/_/
"Things are not so easy"  _/_/  _/_/_/_/  _/_/_/_/  _/_/
"My name is Dump, Core Dump"   _/_/_/_/_/_/  _/_/  _/_/
"El amor es poner tu felicidad en la felicidad de otro" - Leibniz
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQCVAwUBTmWpVZlgi5GaxT1NAQIz/wP5AYXGp6DYf0Fpl0tNHx8sLNJXR8XSQFjf
YRoUvmo1Sh60eMU7yGsoyT2wvOTzU4rPgaWoFsaUELS/74rLMcmb567kKAJqpH7X
8BNmNSdRxYxMXixUrrwi25rYTEgz4ZenpV8tjkHR+wHhcCbBvKnDxcliJZkAxDAJ
mzlhdQvdPgI=
=9wQO
-END PGP SIGNATURE-
___
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] Multigigabyte memory usage in the OpenIndiana Buildbot

2011-09-05 Thread Jesus Cea
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 06/09/11 07:02, Jesus Cea wrote:
> On 06/09/11 06:59, Jesus Cea wrote:
>> Thanking for helping me with this.
> 
> BTW, it is 7AM in Spain now. I am going bed. I will check this
> thread again tomorrow. Thanks for your time and effort. This is
> very frustrating, moreover because it was working very well (with
> 32GB of RAM... :-).

I just deleted all the build directories and restarted the buildbots.
Forcing a build now. Bedtime. Good night.

At this moment, I have 3 Python processes, of sizes 230, 160 and 130
MB. And growing.

Sleeping... Z...

- -- 
Jesus Cea Avion _/_/  _/_/_/_/_/_/
[email protected] - http://www.jcea.es/ _/_/_/_/  _/_/_/_/  _/_/
jabber / xmpp:[email protected] _/_/_/_/  _/_/_/_/_/
.  _/_/  _/_/_/_/  _/_/  _/_/
"Things are not so easy"  _/_/  _/_/_/_/  _/_/_/_/  _/_/
"My name is Dump, Core Dump"   _/_/_/_/_/_/  _/_/  _/_/
"El amor es poner tu felicidad en la felicidad de otro" - Leibniz
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQCVAwUBTmWtWJlgi5GaxT1NAQJ0uAQAhmOiXf6lxZeqiRldZcYvYXxnBDw4wNKJ
ulADNvqJY7dxFPvuUZ8gv9zQcBjs+xTcY3IkDL4ZlSvubMZeR0O7mQ09zvBKXezd
PI6vIK59PPeY+Znfw29TCDB8x5As2wqLVh388eLlYyJFsuUiZfOr4KuCwRughDns
cJ7XJ4lb2+c=
=oRzC
-END PGP SIGNATURE-
___
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] Multigigabyte memory usage in the OpenIndiana Buildbot

2011-09-05 Thread Nick Coghlan
On Tue, Sep 6, 2011 at 3:19 PM, Jesus Cea  wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> On 06/09/11 07:02, Jesus Cea wrote:
>> On 06/09/11 06:59, Jesus Cea wrote:
>>> Thanking for helping me with this.
>>
>> BTW, it is 7AM in Spain now. I am going bed. I will check this
>> thread again tomorrow. Thanks for your time and effort. This is
>> very frustrating, moreover because it was working very well (with
>> 32GB of RAM... :-).
>
> I just deleted all the build directories and restarted the buildbots.
> Forcing a build now. Bedtime. Good night.
>
> At this moment, I have 3 Python processes, of sizes 230, 160 and 130
> MB. And growing.

The memory usage per process seems reasonable to me, based on what I
see on my own machine.

That means it's the 15 processes that's problematic. It will be
interesting to see how these current test runs go.

It may be the case that with the reduced memory limit, your machine
may not be able to run concurrent slaves for 2.7, 3.2 and 3.x as I
believe it does now.

Cheers,
Nick.

-- 
Nick Coghlan   |   [email protected]   |   Brisbane, Australia
___
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] cpython: Issue #12567: Add curses.unget_wch() function

2011-09-05 Thread Antoine Pitrou
On Tue, 06 Sep 2011 01:53:32 +0200
victor.stinner  wrote:
> http://hg.python.org/cpython/rev/b1e03d10391e
> changeset:   72297:b1e03d10391e
> user:Victor Stinner 
> date:Tue Sep 06 01:53:03 2011 +0200
> summary:
>   Issue #12567: Add curses.unget_wch() function
> 
> Push a character so the next get_wch() will return it.

Looks like you broke many buildbots.

Regards

Antoine.


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