On 9/20/06, Thomas Heller <theller at python.net> wrote: > > 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[:] Technically, yes. There is no entry in the sq_slice field for the PySequenceMethods struct. Although you can get to the list of arguments by going through the 'args' attribute if you need a quick fix. I have a fix in my checkout that I will check into the trunk shortly and into 25-maint as soon as Anthony unfreezes it. -Brett -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/python-dev/attachments/20060920/720c7bdb/attachment.html
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4