[issue20922] Global variables and Local Variables with same name

2014-03-14 Thread Ezio Melotti
Ezio Melotti added the comment: This is by design, see http://docs.python.org/3/faq/programming.html#why-am-i-getting-an-unboundlocalerror-when-the-variable-has-a-value -- nosy: +ezio.melotti resolution: -> invalid stage: -> committed/rejected status: open -> closed _

[issue20922] Global variables and Local Variables with same name

2014-03-14 Thread VIJAY KANSAL
Changes by VIJAY KANSAL : -- title: Global variables -> Global variables and Local Variables with same name ___ Python tracker ___ ___

[issue20922] Global variables

2014-03-14 Thread VIJAY KANSAL
New submission from VIJAY KANSAL: Inside functions: 1. Python allows access to global variables. 2. Python allows creation of local variable with the same name as that of of some of the global variable. Keeping the above two statements in mind, I believe that Python must allow following sequen