[Python-Dev] Exceptions and slicing

Thomas Heller theller at python.net
Wed Sep 20 12:02:21 CEST 2006


Is it an oversight that exception instances do no longer support
slicing in Python 2.5?

This code works in 2.4, but no longer in 2.5:

try:
    open("", "r")
except IOError, details:
    print details[:]

Thomas



More information about the Python-Dev mailing list