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

2010-12-27 Thread Nick Coghlan
On Tue, Dec 28, 2010 at 1:29 AM, Vinay Sajip wrote: >     However, it would be good to have some consistency of naming stdlib > loggers > - perhaps using __name__ as is recommended practice for library and > application > developers, but with a prefix such as "py." to indicate that it's a part o

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

2010-12-27 Thread R. David Murray
On Mon, 27 Dec 2010 02:49:29 +0100, victor.stinner wrote: > Author: victor.stinner > Date: Mon Dec 27 02:49:29 2010 > New Revision: 87505 > > Log: > Issue #9738: document encodings of unicode functions > > Modified: >python/branches/py3k/Doc/c-api/unicode.rst >python/branches/py3k/Inclu

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

2010-12-27 Thread R. David Murray
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 > > Modified: >python/branches/py3k/Doc/c-api/exceptions.rst >python/branch

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

2010-12-27 Thread Giampaolo Rodolà
Hi all, after having implemented something very similar in psutil: http://code.google.com/p/psutil/issues/detail?id=142 ...I decided to contribute a patch for exposing getpriority() and setpriority() system calls in the os module: http://bugs.python.org/issue10784 This was also raised some time ag

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

2010-12-27 Thread 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: 87518 > > > > Log: > > Issue #10778: decoding_fgets(

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

2010-12-27 Thread Victor Stinner
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: 87518 > > > > Log: > > Issue #10778: decoding_fgets() decodes the filename from the filesystem > > encoding

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

2010-12-27 Thread Georg Brandl
Am 27.12.2010 21:12, schrieb victor.stinner: > 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. > > > Modified: >python/branches/py3k/Parser/tokenizer.

Re: [Python-Dev] Column offsets for attribute nodes

2010-12-27 Thread Sven Brauch
Glenn wrote: > [...] but maybe bar at 4 and baz at 8 would be even better. > In other words, I don't think pointing at the "." is useful? [...] Hi, here's a patch which results in what Glenn Linderman suggested: --- python-orig/Python/ast.c 2010-10-19 03:22:07.0 +0200 +++ python-new/Pyth

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

2010-12-27 Thread Glenn Linderman
On 12/27/2010 7:29 AM, Vinay Sajip wrote: The logging configuration calls fileConfig and dictConfig disable all existing loggers, and enable only loggers explicitly named in the configuration (and their children). Although there is a disable_existing_loggers option for each configuration API, whi

Re: [Python-Dev] Issue #6210: Exception Chaining missing method for suppressing context

2010-12-27 Thread Brian Curtin
On Mon, Dec 27, 2010 at 13:37, Ethan Furman wrote: > I see the last comment was added on the 4th. > > Where should continued discussion take place -- bug-tracker, python-dev, > ... ? > > ~Ethan~ Preferably on the bug tracker as to keep any discussion attached to the issue. If the discussion bec

[Python-Dev] Issue #6210: Exception Chaining missing method for suppressing context

2010-12-27 Thread Ethan Furman
I see the last comment was added on the 4th. Where should continued discussion take place -- bug-tracker, python-dev, ... ? ~Ethan~ ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: htt

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

2010-12-27 Thread Vinay Sajip
The logging configuration calls fileConfig and dictConfig disable all existing loggers, and enable only loggers explicitly named in the configuration (and their children). Although there is a disable_existing_loggers option for each configuration API, which can be used to prevent disabling of exist

Re: [Python-Dev] nonlocal x = value

2010-12-27 Thread Georg Brandl
Am 27.12.2010 10:43, schrieb Raymond Hettinger: > FWIW, I'm entirely opposed to doing an assignment in a nonlocal definition. > > * It is easily mis-parsed by human (as shown by Georg's examples). > * It looks very much like an initialization of a local variable in many > languages, > but it i

[Python-Dev] Fwd: Range __contains__ and objects with __index__ methods

2010-12-27 Thread Mark Dickinson
.. and here's my original reply to Nick, which was also intended to go to the list. Sorry, folks. Mark -- Forwarded message -- From: Mark Dickinson Date: Mon, Dec 27, 2010 at 10:27 AM Subject: Re: [Python-Dev] Range __contains__ and objects with __index__ methods To: Nick Cogh

Re: [Python-Dev] Range __contains__ and objects with __index__ methods

2010-12-27 Thread Mark Dickinson
Bah. I meant to send this to the list. (I suspect that Nick also meant to send his reply to the list.) On Mon, Dec 27, 2010 at 12:43 PM, Mark Dickinson wrote: > On Mon, Dec 27, 2010 at 12:23 PM, Nick Coghlan wrote: >> The symmetry only breaks for a class that breaks the invariant: >> >>   x ==

Re: [Python-Dev] nonlocal x = value

2010-12-27 Thread Nick Coghlan
On Mon, Dec 27, 2010 at 8:31 PM, Mark Dickinson wrote: > On Mon, Dec 27, 2010 at 9:43 AM, Raymond Hettinger > wrote: >> FWIW, I'm entirely opposed to doing an assignment in a nonlocal definition. >> [...] > > -1 for assignment in nonlocal and global statements from me, too. Indeed. The PEP shoul

Re: [Python-Dev] nonlocal x = value

2010-12-27 Thread Mark Dickinson
On Mon, Dec 27, 2010 at 9:43 AM, Raymond Hettinger wrote: > FWIW, I'm entirely opposed to doing an assignment in a nonlocal definition. > [...] -1 for assignment in nonlocal and global statements from me, too. Mark ___ Python-Dev mailing list Python-De

Re: [Python-Dev] [Python-checkins] r87445 - python/branches/py3k/Lib/numbers.py

2010-12-27 Thread Mark Dickinson
On Fri, Dec 24, 2010 at 1:08 AM, Nick Coghlan wrote: >>     def __index__(self): >> -        """index(self)""" >> +        """someobject[self]""" >>         return int(self) > > Changing the docstring to say "operator.index(self)" would be the > clearest solution here. Agreed. Certainly "someobj

Re: [Python-Dev] nonlocal x = value

2010-12-27 Thread Raymond Hettinger
On Dec 25, 2010, at 2:59 AM, Stefan Behnel wrote: > Hrvoje Niksic, 24.12.2010 09:45: >> On 12/23/2010 10:03 PM, Laurens Van Houtven wrote: >>> On Thu, Dec 23, 2010 at 9:51 PM, Georg Brandl wrote: Yes and no -- there may not be an ambiguity to the parser, but still to the human. Except i