A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/1999-July/000585.html below:

[Python-Dev] I'd like list.pop to accept an optional second

[Python-Dev] I'd like list.pop to accept an optional second [Python-Dev] I'd like list.pop to accept an optional secondSkip Montanaro skip@mojam.com (Skip Montanaro)
Fri, 23 Jul 1999 11:23:31 -0500 (CDT)
    Fred> Giving up already?  Wouldn't you just love this as an expression
    Fred> operator (which could work)?
    Fred>   How about:

    Fred>       top = list.pop() excepting IndexError, default

Why not go all the way to Perl with

    top = list.pop() unless IndexError

???

;-)

Skip



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