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
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
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
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
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 disallow the syntax in any case, requiring
people to write
n
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 disallow the syntax in any case, requiring
people to write
nonlocal x = (3, y)
which i
Am 23.12.2010 22:03, schrieb Laurens Van Houtven:
> 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 disallow the syntax in any case, requiring
>> people to write
>>
>> nonlocal x = (3, y)
>
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 disallow the syntax in any case, requiring
> people to write
>
> nonlocal x = (3, y)
>
> which is then again inconsistent with ordinary assignm
Am 22.12.2010 23:11, schrieb Laurens Van Houtven:
> On Sat, Dec 18, 2010 at 1:12 PM, Georg Brandl wrote:
>> Am 17.12.2010 17:52, schrieb Laurens Van Houtven:
>>> +1 for throwing it out of the PEP. Assignment is a thing,
>>> nonlocal/global is a thing, don't mix them up :) (That in addition to
>>>
On 12/22/2010 5:11 PM, Laurens Van Houtven wrote:
On Sat, Dec 18, 2010 at 1:12 PM, Georg Brandl wrote:
Am 17.12.2010 17:52, schrieb Laurens Van Houtven:
+1 for throwing it out of the PEP. Assignment is a thing,
nonlocal/global is a thing, don't mix them up :) (That in addition to
the grammar c
On Sat, Dec 18, 2010 at 1:12 PM, Georg Brandl wrote:
> Am 17.12.2010 17:52, schrieb Laurens Van Houtven:
>> +1 for throwing it out of the PEP. Assignment is a thing,
>> nonlocal/global is a thing, don't mix them up :) (That in addition to
>> the grammar cleanliness argument Stephan already made)
>
Am 17.12.2010 17:52, schrieb Laurens Van Houtven:
> +1 for throwing it out of the PEP. Assignment is a thing,
> nonlocal/global is a thing, don't mix them up :) (That in addition to
> the grammar cleanliness argument Stephan already made)
The trouble is what to make of
nonlocal x = 3, y
Is it tw
On Fri, Dec 17, 2010 at 12:33 PM, Benjamin Peterson wrote:
..
>> Another +1 for the same reasons. Also, since global does not allow
>> assignment, neither should nonlocal.
>
> Note that the PEP stated that global would also be extended.
I missed that, so for future reference, the PEP says:
"""
2010/12/17 Alexander Belopolsky :
> On Fri, Dec 17, 2010 at 11:52 AM, Laurens Van Houtven
> wrote:
>> +1 for throwing it out of the PEP. Assignment is a thing,
>> nonlocal/global is a thing, don't mix them up :) (That in addition to
>> the grammar cleanliness argument Stephan already made)
>
> An
On Fri, Dec 17, 2010 at 11:52 AM, Laurens Van Houtven wrote:
> +1 for throwing it out of the PEP. Assignment is a thing,
> nonlocal/global is a thing, don't mix them up :) (That in addition to
> the grammar cleanliness argument Stephan already made)
Another +1 for the same reasons. Also, since g
+1 for throwing it out of the PEP. Assignment is a thing,
nonlocal/global is a thing, don't mix them up :) (That in addition to
the grammar cleanliness argument Stephan already made)
cheers
lvh.
___
Python-Dev mailing list
Python-Dev@python.org
http://ma
2010/12/17 Stefan Behnel :
> Hi,
>
> it seems that Py3 doesn't support setting a "nonlocal" value as part of the
> "nonlocal" command
>
> Python 3.2a4+ (py3k:86480, Nov 16 2010, 16:43:22)
> [GCC 4.4.3] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>
Hi,
it seems that Py3 doesn't support setting a "nonlocal" value as part of the
"nonlocal" command
Python 3.2a4+ (py3k:86480, Nov 16 2010, 16:43:22)
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> def x():
... y = 5
...
18 matches
Mail list logo