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 if you

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 ncogh...@gmail.com 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

Re: [Python-Dev] nonlocal x = value

2010-12-27 Thread Mark Dickinson
On Mon, Dec 27, 2010 at 9:43 AM, Raymond Hettinger raymond.hettin...@gmail.com 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 ___

Re: [Python-Dev] nonlocal x = value

2010-12-27 Thread Nick Coghlan
On Mon, Dec 27, 2010 at 8:31 PM, Mark Dickinson dicki...@gmail.com wrote: On Mon, Dec 27, 2010 at 9:43 AM, Raymond Hettinger raymond.hettin...@gmail.com wrote: FWIW, I'm entirely opposed to doing an assignment in a nonlocal definition. [...] -1 for assignment in nonlocal and global

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,

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 python-check...@python.org 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