Re: [Python-Dev] cpython (3.2): Issue #11956: Skip test_import.test_unwritable_directory on FreeBSD when run as

2011-10-05 Thread Stephen J. Turnbull
Cameron Simpson writes: > Am I really the only person who feels unease about this scenario? No, you are not alone. Though in practice with all the "Welcome, Cracker!" boxes out there, one more less-secure-than-it-could-be VM probably doesn't matter all that much. More important to Python is Te

Re: [Python-Dev] cpython (3.2): Issue #11956: Skip test_import.test_unwritable_directory on FreeBSD when run as

2011-10-05 Thread Cameron Simpson
On 05Oct2011 21:33, Terry Reedy wrote: | On 10/5/2011 8:07 PM, Antoine Pitrou wrote: | >On Thu, 6 Oct 2011 10:55:07 +1100 Cameron Simpson wrote: | >>Equally, why on earth are you running tests as root!?!?!?!?! Madness. | >>It's as bad as compiling stuff as root etc etc. A bad idea all around, | >

Re: [Python-Dev] cpython (3.2): Issue #11956: Skip test_import.test_unwritable_directory on FreeBSD when run as

2011-10-05 Thread Terry Reedy
On 10/5/2011 8:07 PM, Antoine Pitrou wrote: On Thu, 6 Oct 2011 10:55:07 +1100 Cameron Simpson wrote: Equally, why on earth are you running tests as root!?!?!?!?! Madness. It's as bad as compiling stuff as root etc etc. A bad idea all around, securitywise. Especially, I would think, a builtbot

Re: [Python-Dev] [Python-checkins] cpython: Document requierements of Unicode kinds

2011-10-05 Thread Terry Reedy
On 10/5/2011 7:53 PM, Victor Stinner wrote: Le mercredi 5 octobre 2011 21:25:22, Terry Reedy a écrit : + - PyUnicode_1BYTE_KIND (1): + + * character type = Py_UCS1 (8 bits, unsigned) + * if ascii is 1, at least one character must be in range + U+80

[Python-Dev] New stringbench benchmark results

2011-10-05 Thread Victor Stinner
Hi, I optimized unicodeobject.c a little bit more where I saw major performance regressions from Python 3.2 to 3.3 using stringbench. Here are new results: see attachments. Example of tests where Python 3.3 is much slower: "A".join(["Bob"]*100)): 2.11 => 0.92 ("C"+"AB"*300).rfind("CA"): 0.57 =>

Re: [Python-Dev] cpython (3.2): Issue #11956: Skip test_import.test_unwritable_directory on FreeBSD when run as

2011-10-05 Thread Antoine Pitrou
On Thu, 6 Oct 2011 10:55:07 +1100 Cameron Simpson wrote: > > Equally, why on earth are you running tests as root!?!?!?!?! Madness. > It's as bad as compiling stuff as root etc etc. A bad idea all around, > securitywise. > > Especially, I would think, a builtbot. "Oh, let's fetch some shiny new >

Re: [Python-Dev] cpython (3.2): Issue #11956: Skip test_import.test_unwritable_directory on FreeBSD when run as

2011-10-05 Thread Cameron Simpson
On 04Oct2011 20:44, Charles-Fran�ois Natali wrote: | >> summary: | >> Issue #11956: Skip test_import.test_unwritable_directory on FreeBSD when | >> | >> run as | >> root (directory permissions are ignored). | > | > The same directory permission semantics apply to other (all?) | > BSD-derived s

Re: [Python-Dev] [Python-checkins] cpython: Document requierements of Unicode kinds

2011-10-05 Thread Victor Stinner
Le mercredi 5 octobre 2011 21:25:22, Terry Reedy a écrit : > > + - PyUnicode_1BYTE_KIND (1): > > + > > + * character type = Py_UCS1 (8 bits, unsigned) > > + * if ascii is 1, at least one character must be in range > > + U+80-U+FF, otherwise all charac

Re: [Python-Dev] Heads up: Apple llvm gcc 4.2 miscompiles PEP 393

2011-10-05 Thread Guido van Rossum
Thanks! More proof that debugging crosses *all* abstractions... On Wed, Oct 5, 2011 at 4:05 PM, Ned Deily wrote: > In article > , >  Guido van Rossum wrote: >> Is anyone on this thread interested in other weird Mac bugs? I had a >> user complaining that on their Mac, with Python 2.5.6 from macpo

Re: [Python-Dev] Heads up: Apple llvm gcc 4.2 miscompiles PEP 393

2011-10-05 Thread Ned Deily
In article , Guido van Rossum wrote: > Is anyone on this thread interested in other weird Mac bugs? I had a > user complaining that on their Mac, with Python 2.5.6 from macports, > 2**63 was a negative number! That sounds like a compiler bug to me... > > http://code.google.com/p/appengine-ndb-e

Re: [Python-Dev] Heads up: Apple llvm gcc 4.2 miscompiles PEP 393

2011-10-05 Thread Guido van Rossum
Is anyone on this thread interested in other weird Mac bugs? I had a user complaining that on their Mac, with Python 2.5.6 from macports, 2**63 was a negative number! That sounds like a compiler bug to me... http://code.google.com/p/appengine-ndb-experiment/issues/detail?id=65 (details about the v

Re: [Python-Dev] What it takes to change a single keyword.

2011-10-05 Thread Brett Cannon
Please file a bug about the dead links so we can fix/remove them. On Wed, Oct 5, 2011 at 13:29, Francisco Martin Brugue < francisco.mar...@web.de> wrote: > Just Info on the links: > > > http://docs.python.org/**devguide/compiler.htmlprovides > inf

Re: [Python-Dev] What it takes to change a single keyword.

2011-10-05 Thread Francisco Martin Brugue
Just Info on the links: http://docs.python.org/devguide/compiler.html provides info on how it all hangs together). Those: [1] Skip Montanaro’s Peephole Optimizer Paper (http://www.foretec.com/python/workshops/1998-11/proceedings/papers/monta

Re: [Python-Dev] [Python-checkins] cpython: Document requierements of Unicode kinds

2011-10-05 Thread Terry Reedy
On 10/5/2011 1:43 PM, victor.stinner wrote: http://hg.python.org/cpython/rev/055174308822 changeset: 72699:055174308822 user:Victor Stinner date:Wed Oct 05 01:31:05 2011 +0200 summary: Document requierements of Unicode kinds files: Include/unicodeobject.h | 24

Re: [Python-Dev] Using PEP384 Stable ABI for the lzma extension module

2011-10-05 Thread Antoine Pitrou
On Wed, 5 Oct 2011 09:38:10 -0700 Toshio Kuratomi wrote: > On Wed, Oct 05, 2011 at 06:14:08PM +0200, Antoine Pitrou wrote: > > Le mercredi 05 octobre 2011 à 18:12 +0200, "Martin v. Löwis" a écrit : > > > >> Not sure what you are using it for. If you need to extend the buffer > > > >> in case it is

Re: [Python-Dev] Using PEP384 Stable ABI for the lzma extension module

2011-10-05 Thread Toshio Kuratomi
On Wed, Oct 05, 2011 at 06:14:08PM +0200, Antoine Pitrou wrote: > Le mercredi 05 octobre 2011 à 18:12 +0200, "Martin v. Löwis" a écrit : > > >> Not sure what you are using it for. If you need to extend the buffer > > >> in case it is too small, there is absolutely no way this could work > > >> with

Re: [Python-Dev] Using PEP384 Stable ABI for the lzma extension module

2011-10-05 Thread Antoine Pitrou
Le mercredi 05 octobre 2011 à 18:12 +0200, "Martin v. Löwis" a écrit : > >> Not sure what you are using it for. If you need to extend the buffer > >> in case it is too small, there is absolutely no way this could work > >> without copies in the general case because of how computers use > >> address

Re: [Python-Dev] Using PEP384 Stable ABI for the lzma extension module

2011-10-05 Thread Martin v. Löwis
Not sure what you are using it for. If you need to extend the buffer in case it is too small, there is absolutely no way this could work without copies in the general case because of how computers use address space. Even _PyBytes_Resize will copy the data. That's not a given. Depending on the me

Re: [Python-Dev] [Python-checkins] cpython: Optimize string slicing to use the new API

2011-10-05 Thread Martin v. Löwis
I see this as a micro-optimization. IMO we should *not* rely on these assumptions because we cannot expect that all developers of third party modules will be able to write perfect code, and some (lazy developers!) may prefer to use a fixed maximum character (e.g. 0x). Hmm. I'd like to declar