[issue4199] add shorthand global and nonlocal statements

2013-06-30 Thread Gregory P. Smith
Gregory P. Smith added the comment: Closing and rejecting based on said discussion. http://mail.python.org/pipermail/python-dev/2013-June/127143.html -- nosy: +gregory.p.smith resolution: -> rejected status: open -> closed ___ Python tracker

[issue4199] add shorthand global and nonlocal statements

2013-06-29 Thread A.M. Kuchling
A.M. Kuchling added the comment: Bumping version to 3.4. I'll send a note to python-dev about this issue. -- versions: +Python 3.4 -Python 3.3 ___ Python tracker ___

[issue4199] add shorthand global and nonlocal statements

2012-03-14 Thread Raymond Hettinger
Raymond Hettinger added the comment: +1 on the feature as described in the PEP. -- nosy: +rhettinger ___ Python tracker ___ ___ Python

[issue4199] add shorthand global and nonlocal statements

2012-03-14 Thread Eric Snow
Changes by Eric Snow : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue4199] add shorthand global and nonlocal statements

2012-03-13 Thread R. David Murray
R. David Murray added the comment: We could also just decide we don't need it :) If we do (I haven't read the PEP) does a statement with an assignment make the variable global in that scope, or does it only affect the global variable for the duration of the assignment, and otherwise the varia

[issue4199] add shorthand global and nonlocal statements

2010-07-24 Thread Ronald Oussoren
Changes by Ronald Oussoren : -- versions: +Python 3.3 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue4199] add shorthand global and nonlocal statements

2010-07-18 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2010/7/18 Mark Lawrence : > > Mark Lawrence added the comment: > > I'm not sure as to the status of this.  Could it go back to (say) 3.3, is it > still a candidate for 3.2(.x), or what? It can't do anything until 3.3. -- _

[issue4199] add shorthand global and nonlocal statements

2010-07-18 Thread Mark Lawrence
Mark Lawrence added the comment: I'm not sure as to the status of this. Could it go back to (say) 3.3, is it still a candidate for 3.2(.x), or what? -- nosy: +BreamoreBoy ___ Python tracker __

[issue4199] add shorthand global and nonlocal statements

2010-02-27 Thread Georg Brandl
Georg Brandl added the comment: I do think a brief discussion after the moratorium is over would be good. -- ___ Python tracker ___ __

[issue4199] add shorthand global and nonlocal statements

2010-02-24 Thread Jeremy Hylton
Jeremy Hylton added the comment: I guess there's some question about whether the syntax in the PEP was considered carefully when it was approved. If so, I'm not sure that we want to re-open the discussion. On the other hand, it's been a long time since the PEP was approved and we do have a mor

[issue4199] add shorthand global and nonlocal statements

2010-02-24 Thread Georg Brandl
Georg Brandl added the comment: > I also notice that the Grammar in the PEP is more complicated: > nonlocal_stmt ::= > "nonlocal" identifier ("," identifier)* >["=" (target_list "=")+ expression_list] > | "nonlocal" identifier augop expression_list > > The Grammar in the p

Re: [issue4199] add shorthand global and nonlocal statements

2010-02-23 Thread Jeremy Hylton
I also notice that the Grammar in the PEP is more complicated: nonlocal_stmt ::= "nonlocal" identifier ("," identifier)* ["=" (target_list "=")+ expression_list] | "nonlocal" identifier augop expression_list The Grammar in the patch is: +global_stmt: 'global' NAME (',' NAME)*

[issue4199] add shorthand global and nonlocal statements

2010-02-23 Thread Jeremy Hylton
Jeremy Hylton added the comment: On Sat, Dec 6, 2008 at 1:28 PM, Benjamin Peterson wrote: > > Benjamin Peterson added the comment: > > I think I may have been merging add_ast_fields when I wrote the patch. > > Here's a new patch that handles "global x, = (5,)". To do it, I added a > new flag*

[issue4199] add shorthand global and nonlocal statements

2010-02-23 Thread Jeremy Hylton
Jeremy Hylton added the comment: Is deferred blocker a higher priority? Jeremy On Tue, Feb 23, 2010 at 4:37 PM, Georg Brandl wrote: > > Georg Brandl added the comment: > > "High" is not high enough :) > > -- > priority: high -> deferred blocker > > ___

[issue4199] add shorthand global and nonlocal statements

2010-02-21 Thread A.M. Kuchling
A.M. Kuchling added the comment: Bumping priority so this doesn't get forgotten before 3.2; it seems important because it fixes noncompliance with a PEP. -- nosy: +akuchling priority: normal -> high ___ Python tracker

[issue4199] add shorthand global and nonlocal statements

2009-11-04 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- priority: critical -> normal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue4199] add shorthand global and nonlocal statements

2009-06-04 Thread Georg Brandl
Georg Brandl added the comment: Postponed to 3.2. -- nosy: +georg.brandl versions: +Python 3.2 -Python 3.1 ___ Python tracker ___ ___

[issue4199] add shorthand global and nonlocal statements

2009-03-31 Thread Jeremy Hylton
Changes by Jeremy Hylton : -- nosy: +jhylton ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue4199] add shorthand global and nonlocal statements

2008-12-07 Thread Benjamin Peterson
Changes by Benjamin Peterson <[EMAIL PROTECTED]>: -- priority: high -> critical ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bu

[issue4199] add shorthand global and nonlocal statements

2008-12-06 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: I think I may have been merging add_ast_fields when I wrote the patch. Here's a new patch that handles "global x, = (5,)". To do it, I added a new flag* to the Global and Nonlocal AST objects that indicates whether the value needs to be un

[issue4199] add shorthand global and nonlocal statements

2008-12-06 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: - the add_ast_fields() function seems to be added by this patch, but it is already in svn. - Are 1-tuple supported? t = [1] global a, = t -- nosy: +amaury.forgeotdarc ___ Python tr

[issue4199] add shorthand global and nonlocal statements

2008-12-05 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: Please review. -- keywords: +needs review stage: -> patch review type: -> feature request ___ Python tracker <[EMAIL PROTECTED]>

[issue4199] add shorthand global and nonlocal statements

2008-10-24 Thread Benjamin Peterson
Changes by Benjamin Peterson <[EMAIL PROTECTED]>: Added file: http://bugs.python.org/file11884/global_nonlocal_shorthand.patch ___ Python tracker <[EMAIL PROTECTED]> ___ __

[issue4199] add shorthand global and nonlocal statements

2008-10-24 Thread Benjamin Peterson
Changes by Benjamin Peterson <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file11880/global_nonlocal_short_assign.patch ___ Python tracker <[EMAIL PROTECTED]> ___

[issue4199] add shorthand global and nonlocal statements

2008-10-24 Thread Benjamin Peterson
New submission from Benjamin Peterson <[EMAIL PROTECTED]>: PEP 3104 says that the nonlocal and global statements should allow a shorthand. ("global x; x = 3" == "global x = 3") This patch implements that. -- components: Interpreter Core files: global_nonlocal_short_assign.patch keywords: