Re: Python v3.1.2 documentation question
Terry Reedy wrote: On 7/1/2010 6:42 PM, Ethan Furman wrote: Hmmm Well, as this is my first ever bug post (yay! ;) Great! I *think* this is what you want: http://bugs.python.org/issue9121 I believe Benjamin meant that it was already fixed in http://docs.python.org/dev/py3k/ which is currently the 3.2a0 docs. Good to check there before reporting a doc bug. Terry Jan Reedy Thanks for the pointer, I didn't know about that. Checking it out, though, it seems the entry for nested scopes has been removed in its entirety -- not sure about fixed, but I guess it's definitely not broken anymore! ;) ~Ethan~ -- http://mail.python.org/mailman/listinfo/python-list
Re: Python v3.1.2 documentation question
In article mailman.2365.1277844243.32709.python-l...@python.org, Ethan Furman et...@stoneleaf.us wrote: Stephen Hansen wrote: On 6/29/10 10:01 AM, Ethan Furman wrote: In the glossary section it states: doc nested scope The ability to refer to a variable in an enclosing definition. For instance, a function defined inside another function can refer to variables in the outer function. Note that nested scopes work only for reference and not for assignment which will always write to the innermost scope. In contrast, local variables both read and write in the innermost scope. Likewise, global variables read and write to the global namespace. /doc Doesn't the nonlocal keyword make variables in outer scopes writable? Yes. I'd submit a doc bug. Bug submitted. For the benefit of people following along at home, it's nice to provide the URL to the ticket. -- Aahz (a...@pythoncraft.com) * http://www.pythoncraft.com/ If you don't know what your program is supposed to do, you'd better not start writing it. --Dijkstra -- http://mail.python.org/mailman/listinfo/python-list
Re: Python v3.1.2 documentation question
Aahz wrote: In article mailman.2365.1277844243.32709.python-l...@python.org, Ethan Furman et...@stoneleaf.us wrote: Stephen Hansen wrote: On 6/29/10 10:01 AM, Ethan Furman wrote: In the glossary section it states: doc nested scope The ability to refer to a variable in an enclosing definition. For instance, a function defined inside another function can refer to variables in the outer function. Note that nested scopes work only for reference and not for assignment which will always write to the innermost scope. In contrast, local variables both read and write in the innermost scope. Likewise, global variables read and write to the global namespace. /doc Doesn't the nonlocal keyword make variables in outer scopes writable? Yes. I'd submit a doc bug. Bug submitted. For the benefit of people following along at home, it's nice to provide the URL to the ticket. Hmmm Well, as this is my first ever bug post (yay! ;) I *think* this is what you want: http://bugs.python.org/issue9121 ~Ethan~ -- http://mail.python.org/mailman/listinfo/python-list
Re: Python v3.1.2 documentation question
In article mailman.127.1278023557.1673.python-l...@python.org, Ethan Furman et...@stoneleaf.us wrote: Aahz wrote: In article mailman.2365.1277844243.32709.python-l...@python.org, Ethan Furman et...@stoneleaf.us wrote: Stephen Hansen wrote: On 6/29/10 10:01 AM, Ethan Furman wrote: In the glossary section it states: doc nested scope The ability to refer to a variable in an enclosing definition. For instance, a function defined inside another function can refer to variables in the outer function. Note that nested scopes work only for reference and not for assignment which will always write to the innermost scope. In contrast, local variables both read and write in the innermost scope. Likewise, global variables read and write to the global namespace. /doc Doesn't the nonlocal keyword make variables in outer scopes writable? Yes. I'd submit a doc bug. Bug submitted. For the benefit of people following along at home, it's nice to provide the URL to the ticket. Hmmm Well, as this is my first ever bug post (yay! ;) I *think* this is what you want: http://bugs.python.org/issue9121 Congrats! And it's already marked closed! ;-) -- Aahz (a...@pythoncraft.com) * http://www.pythoncraft.com/ If you don't know what your program is supposed to do, you'd better not start writing it. --Dijkstra -- http://mail.python.org/mailman/listinfo/python-list
Re: Python v3.1.2 documentation question
On 7/1/2010 6:42 PM, Ethan Furman wrote: Hmmm Well, as this is my first ever bug post (yay! ;) Great! I *think* this is what you want: http://bugs.python.org/issue9121 I believe Benjamin meant that it was already fixed in http://docs.python.org/dev/py3k/ which is currently the 3.2a0 docs. Good to check there before reporting a doc bug. Terry Jan Reedy -- http://mail.python.org/mailman/listinfo/python-list
Python v3.1.2 documentation question
In the glossary section it states: doc nested scope The ability to refer to a variable in an enclosing definition. For instance, a function defined inside another function can refer to variables in the outer function. Note that nested scopes work only for reference and not for assignment which will always write to the innermost scope. In contrast, local variables both read and write in the innermost scope. Likewise, global variables read and write to the global namespace. /doc Doesn't the nonlocal keyword make variables in outer scopes writable? ~Ethan~ -- http://mail.python.org/mailman/listinfo/python-list
Re: Python v3.1.2 documentation question
On 6/29/10 10:01 AM, Ethan Furman wrote: In the glossary section it states: doc nested scope The ability to refer to a variable in an enclosing definition. For instance, a function defined inside another function can refer to variables in the outer function. Note that nested scopes work only for reference and not for assignment which will always write to the innermost scope. In contrast, local variables both read and write in the innermost scope. Likewise, global variables read and write to the global namespace. /doc Doesn't the nonlocal keyword make variables in outer scopes writable? Yes. I'd submit a doc bug. -- ... Stephen Hansen ... Also: Ixokai ... Mail: me+list/python (AT) ixokai (DOT) io ... Blog: http://meh.ixokai.io/ -- http://mail.python.org/mailman/listinfo/python-list
Re: Python v3.1.2 documentation question
Stephen Hansen wrote: On 6/29/10 10:01 AM, Ethan Furman wrote: In the glossary section it states: doc nested scope The ability to refer to a variable in an enclosing definition. For instance, a function defined inside another function can refer to variables in the outer function. Note that nested scopes work only for reference and not for assignment which will always write to the innermost scope. In contrast, local variables both read and write in the innermost scope. Likewise, global variables read and write to the global namespace. /doc Doesn't the nonlocal keyword make variables in outer scopes writable? Yes. I'd submit a doc bug. Bug submitted. ~Ethan~ -- http://mail.python.org/mailman/listinfo/python-list