[Python-Dev] {}.getitem() (was Re: PEP-0218)

Peter Funk pf@artcom-gmbh.de
Thu, 30 Nov 2000 10:25:37 +0100 (MET)

M.-A. Lemburg:
> Shouldn't be hard to do... the C API for this is already in place:
> PyDict_Next(). I'd prefer a method .getitem(), though, which then
> returns a tuple (key, value).

IMO '.pickitem()' would be a better name, since many people would
think, that 'getitem()' would take some kind of index as parameter.
Nevertheless I think this is a nice idea, though.

Regards, Peter
Peter Funk, Oldenburger Str.86, D-27777 Ganderkesee, Germany, Fax:+49 4222950260
office: +49 421 20419-0 (ArtCom GmbH, Grazer Str.8, D-28359 Bremen)