Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Bugs

[issue2345] Using an exception variable outside an 'except' clause should raise a Py3K warning

 

 

Python bugs RSS feed   Index | Next | Previous | View Threaded


report at bugs

May 10, 2008, 1:01 PM

Post #1 of 1 (47 views)
Permalink
[issue2345] Using an exception variable outside an 'except' clause should raise a Py3K warning

Bruno Gola <brunogola[at]gmail.com> added the comment:

see http://bugs.python.org/issue2380, I think that it's related.

the only reason i see for nested tuples to be valid syntax in an except
clause was:
x = ValueError
y = (TypeError, IndexError)
...
except (x, y):
...

and this will not be valid in py3k, as noticed here.

----------
nosy: +brunogola

__________________________________
Tracker <report[at]bugs.python.org>
<http://bugs.python.org/issue2345>
__________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com

Python bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.