diff options
Diffstat (limited to 'doc/whatsnew')
-rw-r--r-- | doc/whatsnew/2.13.rst | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/doc/whatsnew/2.13.rst b/doc/whatsnew/2.13.rst index b3372278d..8555108c1 100644 --- a/doc/whatsnew/2.13.rst +++ b/doc/whatsnew/2.13.rst @@ -43,15 +43,21 @@ Other Changes Closes #5323 +* ``used-before-assignment`` now considers that assignments in a try block + may not have occurred when the except or finally blocks are executed. + + Closes #85, #2615 + * ``used-before-assignment`` now assumes that assignments in except blocks may not have occurred and warns accordingly. Closes #4761 -* ``used-before-assignment`` now considers that assignments in a try block - may not have occurred when the except or finally blocks are executed. +* When evaluating statements after an except block, ``used-before-assignment`` + assumes that assignments in the except blocks took place if the + corresponding try block contained a return statement. - Closes #85, #2615 + Closes #5500 * ``used-before-assignment`` now checks names in try blocks. |