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
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
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 space. Even
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
without copies in
On Wed, 5 Oct 2011 09:38:10 -0700
Toshio Kuratomi a.bad...@gmail.com 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
On 10/5/2011 1:43 PM, victor.stinner wrote:
http://hg.python.org/cpython/rev/055174308822
changeset: 72699:055174308822
user:Victor Stinnervictor.stin...@haypocalc.com
date:Wed Oct 05 01:31:05 2011 +0200
summary:
Document requierements of Unicode kinds
files:
Just Info on the links:
http://docs.python.org/devguide/compiler.html provides info on how it
all hangs together).
Those:
[1] http://docs.python.org/devguide/compiler.html#id3Skip Montanaro’s
Peephole Optimizer Paper
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.htmlhttp://docs.python.org/devguide/compiler.htmlprovides
info on how
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
In article
cap7+vjkxsnjwwxd1algom1krupbtcshiwawzko1gpqadnhw...@mail.gmail.com,
Guido van Rossum gu...@python.org 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
Thanks! More proof that debugging crosses *all* abstractions...
On Wed, Oct 5, 2011 at 4:05 PM, Ned Deily n...@acm.org wrote:
In article
cap7+vjkxsnjwwxd1algom1krupbtcshiwawzko1gpqadnhw...@mail.gmail.com,
Guido van Rossum gu...@python.org wrote:
Is anyone on this thread interested in other
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 characters must
On 04Oct2011 20:44, Charles-Fran�ois Natali cf.nat...@gmail.com 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?)
|
On Thu, 6 Oct 2011 10:55:07 +1100
Cameron Simpson c...@zip.com.au 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
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 = 1.03
(A +
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
+
On 10/5/2011 8:07 PM, Antoine Pitrou wrote:
On Thu, 6 Oct 2011 10:55:07 +1100
Cameron Simpsonc...@zip.com.au 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
On 05Oct2011 21:33, Terry Reedy tjre...@udel.edu wrote:
| On 10/5/2011 8:07 PM, Antoine Pitrou wrote:
| On Thu, 6 Oct 2011 10:55:07 +1100 Cameron Simpsonc...@zip.com.au wrote:
| Equally, why on earth are you running tests as root!?!?!?!?! Madness.
| It's as bad as compiling stuff as root etc etc.
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
19 matches
Mail list logo