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

Barry A. Warsaw bwarsaw@cnri.reston.va.us (Barry A. Warsaw)
Thu, 22 Jul 1999 15:02:21 -0400 (EDT)


>>>>> "JF" == Jim Fulton <jim@digicool.com> writes:

    JF> BTW, a good precedent for what I want
    JF> is getattr.

    JF>   getattr(None,'spam')

    JF> raises an error, but:

    JF>   getattr(None,'spam',1)

    JF> returns 1

Okay, how did this one sneak in, huh?  I didn't even realize this had
been added to getattr()!  CVS reveals it was added b/w 1.5.1 and
1.5.2a1, so maybe I just missed the checkin message.

Fred, the built-in-funcs doc needs updating:

http://www.python.org/doc/current/lib/built-in-funcs.html

FWIW, the CVS log message says this feature is experimental too. :)

-Barry