[issue6620] Variable may be used before first being assigned to in Lib/locale.py

2009-08-04 Thread Vincent Legoll
Vincent Legoll vincent.leg...@gmail.com added the comment: Yes it does -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6620 ___ ___

[issue6620] Variable may be used before first being assigned to in Lib/locale.py

2009-08-04 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Thanks. Committed in r74312 (trunk), r74313 (py3k). -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue6620] Variable may be used before first being assigned to in Lib/locale.py

2009-08-02 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: So this can happen only if grouping is [0] (or an equivalent iterable). Since this is an invalid grouping, I think the appropriate response would be for _grouping_intervals([0]) to raise an exception (which is what it currently does as

[issue6620] Variable may be used before first being assigned to in Lib/locale.py

2009-08-01 Thread Vincent Legoll
New submission from Vincent Legoll vincent.leg...@gmail.com: The last_interval variable could potentially be used before being first assigned a value. -- components: Library (Lib) files: py3k-locale.py-use-before-assignment.patch keywords: patch messages: 91173 nosy: vincele severity: