Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Bugs

[issue7290] Update 'how do I set a global variable' faq entry

 

 

Python bugs RSS feed   Index | Next | Previous | View Threaded


report at bugs

Nov 8, 2009, 7:53 PM

Post #1 of 4 (261 views)
Permalink
[issue7290] Update 'how do I set a global variable' faq entry

New submission from R. David Murray <rdmurray [at] bitdance>:

Someone else closed issue 7276, but I was thinking of doing so but
wanted to include a pointer to the relevant documentation. I'm not sure
where that documentation is, but I figured there ought to be a FAQ entry
for it. And there is, sort of...the first two sections of the
programming faq's 'core language' section. However, I think that the
way that most people run in to this problem is by getting the
'UnboundLocalError', and so I think the FAQ entry title should mention
that error. I attach a proposed update to the first section of the core
language section of the programming FAQ. I'm also going to attach a
copy of the complete entry since it is hard to read in the patch.

----------
assignee: georg.brandl
components: Documentation
files: UnboundLocalError-faq.patch
keywords: patch
messages: 95057
nosy: georg.brandl, r.david.murray
priority: normal
severity: normal
stage: patch review
status: open
title: Update 'how do I set a global variable' faq entry
type: feature request
versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2
Added file: http://bugs.python.org/file15294/UnboundLocalError-faq.patch

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue7290>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Nov 8, 2009, 7:53 PM

Post #2 of 4 (247 views)
Permalink
[issue7290] Update 'how do I set a global variable' faq entry [In reply to]

Changes by R. David Murray <rdmurray [at] bitdance>:


Added file: http://bugs.python.org/file15295/UnboundLocalError-faq.rst

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue7290>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Nov 10, 2009, 3:28 AM

Post #3 of 4 (237 views)
Permalink
[issue7290] Update 'how do I set a global variable' faq entry [In reply to]

Ole Laursen <olau [at] iola> added the comment:

As the reporter of issue 7276, I think it's a clear explanation of this
phenomonen. I think that maybe you should remove the "New Python
programmers" in

"New Python programmers are often surprised when they get this error in
previously working code when they modify it by adding an assignment
statement somewhere in the body of a function."

so say something like

"It can be a surprise to get this error in previously working code when it
is modified by adding an assignment statement somewhere in a function
body."

----------
nosy: +olau

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue7290>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Nov 10, 2009, 11:00 AM

Post #4 of 4 (237 views)
Permalink
[issue7290] Update 'how do I set a global variable' faq entry [In reply to]

R. David Murray <rdmurray [at] bitdance> added the comment:

Committed, with your suggested rewording, in r76190.

----------
resolution: -> accepted
stage: patch review -> committed/rejected
status: open -> closed

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue7290>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com

Python bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.