[Python-Dev] I'd like list.pop to accept an optional second
Fred L. Drake
Fred L. Drake, Jr." <fdrake@acm.org
Thu, 22 Jul 1999 15:26:32 -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
Barry A. Warsaw writes:
> Fred, the built-in-funcs doc needs updating:
This is done in the CVS repository; thanks for pointing out the
oversight!
Do people realize that pop() already has an optional parameter?
That *is* in the docs:
http://www.python.org/docs/current/lib/typesseq-mutable.html
See note 4 below the table.
-Fred
--
Fred L. Drake, Jr. <fdrake@acm.org>
Corporation for National Research Initiatives