pop method question
Stefan Scholl
stesch at no-spoon.de
Sat Mar 3 15:40:22 EST 2007
Nicholas Parsons <parsons.nicholas1 at gmail.com> wrote:
> I realize that in this context it is used for removing a specific key
> from the current dictionary object. But why call it pop and not
> something more intuitive like remove or delete?
I wasn't a python programmer back than, but I'd guess it's
because pop not just removes the key, it returns the value as
well.
--
Web (en): http://www.no-spoon.de/ -*- Web (de): http://www.frell.de/
More information about the Python-list
mailing list