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

2009-08-04 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks. Committed in r74312 (trunk), r74313 (py3k). -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker __

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

2009-08-04 Thread Vincent Legoll
Vincent Legoll added the comment: Yes it does -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

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

2009-08-02 Thread Mark Dickinson
Mark Dickinson 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 soon as you iterate ov

[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 : 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: normal status: open title: