This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mbrierst
Recipients
Date 2003-02-26.16:51:07
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
This patch adds an optional default value to dict.pop,
so that it parallels dict.get, see discussion in bug
639806.

If no default is given, the old behavior still exists,
so backwards compatibility is no problem.
The new pop must use METH_VARARGS
and PyArg_UnpackTuple, somewhat effecting
efficiency.

If this is considered desirable, I could also
provide the same behavior for list.pop.
History
Date User Action Args
2007-08-23 15:20:47adminlinkissue693753 messages
2007-08-23 15:20:47admincreate