A RetroSearch Logo

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

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/1999-July/000572.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 secondBarry A. Warsaw bwarsaw@cnri.reston.va.us (Barry A. Warsaw)
Thu, 22 Jul 1999 16:50:36 -0400 (EDT)
>>>>> "M" == M  <mal@lemburg.com> writes:

    M> 	http://www.deja.com/getdoc.xp?AN=366635977

Ah, thanks!  Your rationale was exactly the reason why I added
dict.get().  I'm still not 100% sure about list.pop() though, since
it's not exactly equivalent -- list.pop() modifies the list as a
side-effect :) Makes me think you might want an alternative spelling
for list[s], call it list.get() and put the optional default on that
method.  Then again, maybe list.pop() with an optional default is good
enough.

-Barry



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