Tim Peters wrote: > As a function (builtin or not), tryexcept will never get called if > list.pop() raises an exception. M.-A. Lemburg writes: > Oh well, forget the whole idea then. list.pop() is really not Giving up already? Wouldn't you just love this as an expression operator (which could work)? How about: top = list.pop() excepting IndexError, default Hehehe... ;-) -Fred -- Fred L. Drake, Jr. <fdrake@acm.org> Corporation for National Research Initiatives
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