Re: [Python-Dev] [Python-checkins] r87537 - in python/branches/py3k: Doc/library/struct.rst Doc/whatsnew/3.2.rst Lib/test/test_struct.py Lib/wave.py Misc/NEWS Modules/_struct.c

2010-12-28 Thread Stephen J. Turnbull
Victor Stinner writes: > >Sorry, I am still learning english :-) Aren't we all! :-) ___ 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/a

Re: [Python-Dev] Backport troubles with mercurial

2010-12-28 Thread David Cournapeau
On Wed, Dec 29, 2010 at 9:13 AM, Amaury Forgeot d'Arc wrote: > Hello, > The PyPy project recently switched from svn to mercurial. Since this day I > have some > difficulties to perform simple tasks, and my questions did not receive > satisfying answers. > I was sure the Python project would have t

Re: [Python-Dev] [Python-checkins] r87523 - python/branches/py3k/Doc/tutorial/interpreter.rst

2010-12-28 Thread Senthil Kumaran
On Wed, Dec 29, 2010 at 10:35 AM, Jim Jewett wrote: > It might still be worth saying something like: > > Note that this "python details are not included in this tutorial. No, it this in fact puzzling. I was fine with the previous paragraph and if someone found it confusing, removing it is okay.

Re: [Python-Dev] [Python-checkins] r87537 - in python/branches/py3k: Doc/library/struct.rst Doc/whatsnew/3.2.rst Lib/test/test_struct.py Lib/wave.py Misc/NEWS Modules/_struct.c

2010-12-28 Thread R. David Murray
On Wed, 29 Dec 2010 00:38:13 +0100, Victor Stinner wrote: >Le mardi 28 décembre 2010 à 15:22 -0500, Terry Reedy a écrit : >> On 12/28/2010 8:26 AM, victor.stinner wrote: >> > Author: victor.stinner >> > Date: Tue Dec 28 14:26:42 2010 >> > New Revision: 87537 >> > >> > Log: >> > Issue #10783: s

Re: [Python-Dev] [Python-checkins] r87523 - python/branches/py3k/Doc/tutorial/interpreter.rst

2010-12-28 Thread Jim Jewett
It might still be worth saying something like: Note that this "python wrote: > Author: georg.brandl > Date: Tue Dec 28 10:18:24 2010 > New Revision: 87523 > > Log: > Remove confusing paragraph -- this is relevant only to advanced users anyway > and does not belong into the tutorial. > > Modified

[Python-Dev] Backport troubles with mercurial

2010-12-28 Thread Amaury Forgeot d'Arc
Hello, The PyPy project recently switched from svn to mercurial. Since this day I have some difficulties to perform simple tasks, and my questions did not receive satisfying answers. I was sure the Python project would have the same issues; so I started from the repositories in http://code.python

Re: [Python-Dev] [Python-checkins] r87505 - in python/branches/py3k: Doc/c-api/unicode.rst Include/unicodeobject.h

2010-12-28 Thread Victor Stinner
Le mardi 28 décembre 2010 à 12:14 -0500, R. David Murray a écrit : > I think your first paragraph is what you should put in the docs: "it is > best to pass only ASCII-encoded strings, but the function interprets > the input string as ISO-8859-1 if it contains non-ASCII characters". Nice, done in r

Re: [Python-Dev] [Python-checkins] r87537 - in python/branches/py3k: Doc/library/struct.rst Doc/whatsnew/3.2.rst Lib/test/test_struct.py Lib/wave.py Misc/NEWS Modules/_struct.c

2010-12-28 Thread Victor Stinner
Le mardi 28 décembre 2010 à 15:22 -0500, Terry Reedy a écrit : > On 12/28/2010 8:26 AM, victor.stinner wrote: > > Author: victor.stinner > > Date: Tue Dec 28 14:26:42 2010 > > New Revision: 87537 > > > > Log: > > Issue #10783: struct.pack() doesn't encode implicitly unicode to UTF-8 > > > Modified

Re: [Python-Dev] [Python-checkins] r87537 - in python/branches/py3k: Doc/library/struct.rst Doc/whatsnew/3.2.rst Lib/test/test_struct.py Lib/wave.py Misc/NEWS Modules/_struct.c

2010-12-28 Thread Terry Reedy
On 12/28/2010 8:26 AM, victor.stinner wrote: Author: victor.stinner Date: Tue Dec 28 14:26:42 2010 New Revision: 87537 Log: Issue #10783: struct.pack() doesn't encode implicitly unicode to UTF-8 Modified: python/branches/py3k/Doc/whatsnew/3.2.rst ==

Re: [Python-Dev] os.getpriority() and os.setpriority()

2010-12-28 Thread Martin v. Löwis
> I think it would be nice to have Windows equivalents (GetPriorityClass > / SetPriorityClass) as well but I'm not sure how since their notation > is different. I don't mind exposing it (somewhere), however, it should keep its original name. In addition, you probably need OpenProcess, as well as

Re: [Python-Dev] Possible optimization for LOAD_FAST ?

2010-12-28 Thread Georg Brandl
Am 28.12.2010 18:24, schrieb Benjamin Peterson: > 2010/12/28 Lukas Lueg : >> Consider the following code: >> >> def foobar(x): >>for i in range(5): >>x[i] = i >> >> The bytecode in python 2.7 is the following: >> >> 2 0 SETUP_LOOP 30 (to 33) >> 3 LOA

Re: [Python-Dev] Loggers in the stdlib and logging configuration APIs

2010-12-28 Thread Vinay Sajip
Glenn Linderman g.nevcal.com> writes: > I didn't dig through the logging docs to discover if there is an API > that returns a list of currently known loggers such that an > application could easily discover the current set.  It would be nice > to have such a thing, in any case

Re: [Python-Dev] Possible optimization for LOAD_FAST ?

2010-12-28 Thread Benjamin Peterson
2010/12/28 Lukas Lueg : > Consider the following code: > > def foobar(x): >    for i in range(5): >        x[i] = i > > The bytecode in python 2.7 is the following: > >  2           0 SETUP_LOOP              30 (to 33) >              3 LOAD_GLOBAL              0 (range) >              6 LOAD_CONST

[Python-Dev] Possible optimization for LOAD_FAST ?

2010-12-28 Thread Lukas Lueg
Consider the following code: def foobar(x): for i in range(5): x[i] = i The bytecode in python 2.7 is the following: 2 0 SETUP_LOOP 30 (to 33) 3 LOAD_GLOBAL 0 (range) 6 LOAD_CONST 1 (5) 9 CA

Re: [Python-Dev] Loggers in the stdlib and logging configuration APIs

2010-12-28 Thread Glenn Linderman
On 12/28/2010 4:16 AM, Vinay Sajip wrote: How does that sound? Sounds pretty rational, overall. If the leave_enabled flag can be turned on/off by the application, then I agree the arms race is unlikely. I didn't dig through the logging docs to discover if there is an API that returns a lis

Re: [Python-Dev] [Python-checkins] r87505 - in python/branches/py3k: Doc/c-api/unicode.rst Include/unicodeobject.h

2010-12-28 Thread R. David Murray
On Tue, 28 Dec 2010 10:28:51 +0100, Victor Stinner wrote: > Le lundi 27 décembre 2010 à 23:13 -0500, R. David Murray a écrit : > > > Modified: python/branches/py3k/Doc/c-api/unicode.rst > > > == > > > --- python/branch

Re: [Python-Dev] [Python-checkins] r87504 - in python/branches/py3k: Doc/c-api/exceptions.rst Include/pyerrors.h Include/warnings.h

2010-12-28 Thread R. David Murray
On Tue, 28 Dec 2010 13:58:24 +0100, Victor Stinner wrote: > Le mardi 28 décembre 2010 à 11:40 +0100, "Martin v. Löwis" a écrit : > > Am 28.12.2010 11:28, schrieb Victor Stinner: > > > Le lundi 27 décembre 2010 à 23:07 -0500, R. David Murray a écrit : > > >> On Mon, 27 Dec 2010 02:49:27 +01

Re: [Python-Dev] [Python-checkins] r87504 - in python/branches/py3k: Doc/c-api/exceptions.rst Include/pyerrors.h Include/warnings.h

2010-12-28 Thread Victor Stinner
Le mardi 28 décembre 2010 à 11:40 +0100, "Martin v. Löwis" a écrit : > Am 28.12.2010 11:28, schrieb Victor Stinner: > > Le lundi 27 décembre 2010 à 23:07 -0500, R. David Murray a écrit : > >> On Mon, 27 Dec 2010 02:49:27 +0100, victor.stinner > >> wrote: > >>> Author: victor.stinner > >>> Date: M

Re: [Python-Dev] Loggers in the stdlib and logging configuration APIs

2010-12-28 Thread Vinay Sajip
Glenn Linderman g.nevcal.com> writes: > I thought of the idea of a flag to make loggers immune, but it > seemed it could lead to an arms race, where the knee-jerk reaction > of discovering that a library's logger got disabled would be to set > the flag, and, of course, the knee-je

Re: [Python-Dev] [Python-checkins] r87504 - in python/branches/py3k: Doc/c-api/exceptions.rst Include/pyerrors.h Include/warnings.h

2010-12-28 Thread Stefan Behnel
"Martin v. Löwis", 28.12.2010 11:40: Le lundi 27 décembre 2010 à 23:07 -0500, R. David Murray a écrit : ASCII-encoded string, or ASCII encoding-string? [...] apparently, you would put the hyphen after if it's "encoding", and before if it's "encoded"; not sure why that is I think David just

Re: [Python-Dev] r87518 - python/branches/py3k/Parser/tokenizer.c

2010-12-28 Thread Victor Stinner
Le mardi 28 décembre 2010 à 10:12 +0100, Georg Brandl a écrit : > >> > Author: victor.stinner > >> > Date: Mon Dec 27 21:12:13 2010 > >> > New Revision: 87518 > >> > > >> > Log: > >> > Issue #10778: decoding_fgets() decodes the filename from the filesystem > >> > encoding instead of UTF-8. > > >

Re: [Python-Dev] [Python-checkins] r87504 - in python/branches/py3k: Doc/c-api/exceptions.rst Include/pyerrors.h Include/warnings.h

2010-12-28 Thread Martin v. Löwis
Am 28.12.2010 11:28, schrieb Victor Stinner: > Le lundi 27 décembre 2010 à 23:07 -0500, R. David Murray a écrit : >> On Mon, 27 Dec 2010 02:49:27 +0100, victor.stinner >> wrote: >>> Author: victor.stinner >>> Date: Mon Dec 27 02:49:26 2010 >>> New Revision: 87504 >>> >>> Log: >>> Issue #9738: Doc

Re: [Python-Dev] [Python-checkins] r87504 - in python/branches/py3k: Doc/c-api/exceptions.rst Include/pyerrors.h Include/warnings.h

2010-12-28 Thread Victor Stinner
Le lundi 27 décembre 2010 à 23:07 -0500, R. David Murray a écrit : > On Mon, 27 Dec 2010 02:49:27 +0100, victor.stinner > wrote: > > Author: victor.stinner > > Date: Mon Dec 27 02:49:26 2010 > > New Revision: 87504 > > > > Log: > > Issue #9738: Document encodings of error and warning functions

Re: [Python-Dev] [Python-checkins] r87505 - in python/branches/py3k: Doc/c-api/unicode.rst Include/unicodeobject.h

2010-12-28 Thread Victor Stinner
Le lundi 27 décembre 2010 à 23:13 -0500, R. David Murray a écrit : > > Modified: python/branches/py3k/Doc/c-api/unicode.rst > > == > > --- python/branches/py3k/Doc/c-api/unicode.rst (original) > > +++ python/branches/p

Re: [Python-Dev] r87518 - python/branches/py3k/Parser/tokenizer.c

2010-12-28 Thread Georg Brandl
Am 28.12.2010 01:07, schrieb Victor Stinner: > (oops, I posted an incomplete message, stupid mailer) > > Le lundi 27 décembre 2010 à 22:22 +0100, Georg Brandl a écrit : >> Am 27.12.2010 21:12, schrieb victor.stinner: >> > Author: victor.stinner >> > Date: Mon Dec 27 21:12:13 2010 >> > New Revision

Re: [Python-Dev] Loggers in the stdlib and logging configuration APIs

2010-12-28 Thread Nick Coghlan
On Tue, Dec 28, 2010 at 6:53 PM, Nick Coghlan wrote: > On Tue, Dec 28, 2010 at 6:28 PM, Glenn Linderman > wrote: >> On 12/28/2010 12:19 AM, Vinay Sajip wrote: >> >>> calls can support three levels of logger disabling: >>> - leave all existing loggers enabled (existing option) >> >> I think you m

Re: [Python-Dev] Loggers in the stdlib and logging configuration APIs

2010-12-28 Thread Nick Coghlan
On Tue, Dec 28, 2010 at 6:28 PM, Glenn Linderman wrote: > On 12/28/2010 12:19 AM, Vinay Sajip wrote: > >> calls can support three levels of logger disabling: >> - leave all existing loggers enabled (existing option) > > I think you mean disabled - that's the current behaviour. > >> - leave only fl

Re: [Python-Dev] Loggers in the stdlib and logging configuration APIs

2010-12-28 Thread Glenn Linderman
On 12/28/2010 12:19 AM, Vinay Sajip wrote: > calls can support three levels of logger disabling: > - leave all existing loggers enabled (existing option) I think you mean disabled - that's the current behaviour. > - leave only flagged loggers enabled (new default behaviour) > - disable all

Re: [Python-Dev] Loggers in the stdlib and logging configuration APIs

2010-12-28 Thread Glenn Linderman
On 12/27/2010 11:53 PM, Nick Coghlan wrote: However, rather than a manually maintained list of low level loggers, Yes, a manually maintained list would be bad. it may be feasible to just have a flag we can set on loggers that makes them immune to the default implicit disabling. Then the confi

Re: [Python-Dev] Loggers in the stdlib and logging configur ation APIs

2010-12-28 Thread Vinay Sajip
Nick Coghlan gmail.com> writes: > Unfortunately, the "py" package already claimed that namespace, so it > isn't really free for us to use in the standard library (even the > current "py.warnings" for redirected warnings may be misleading, as it > may give users the impression that package is invo