]> granicus.if.org Git - python/commit
Move the __getitem__() definition from StandardException to Exception.
authorFred Drake <fdrake@acm.org>
Mon, 6 Oct 1997 15:48:20 +0000 (15:48 +0000)
committerFred Drake <fdrake@acm.org>
Mon, 6 Oct 1997 15:48:20 +0000 (15:48 +0000)
commit596db3161c8cf0a492f5613cb5721b6c12c1dceb
tree2341eb9f5f2c455f9c606333373f53d96bc6ea10
parentbf9d353babbd4126fc080a9a84ae65cc529b209d
Move the __getitem__() definition from StandardException to Exception.
This allows stuff like this out of the box:

try:
    ...
except socket.error, (code, msg):
    ...
Lib/exceptions.py