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/000562.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 14:36:09 -0400 (EDT)
>>>>> "Gordo" == Gordon McMillan <gmcm@hypernet.com> writes:

    Gordo> Which are you asking for: breaking code that expects
    Gordo> IndexError Violating Pythonic expectations by, in effect,
    Gordo> creating 2 methods
    Gordo>  list.pop(void)
    Gordo>  list.pop(default_return)

The docs /do/ say that list.pop() is experimental, so that probably
gives Guido all the out he'd need to change the semantics :).  I
myself have yet to use list.pop() so I don't know how disasterous the
change in semantics would be to existing code.

-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