[].keys() and [].items() (Was: Why I think range is a wart)
Clark C . Evans
cce at clarkevans.com
Wed Mar 13 15:34:00 EST 2002
On Wed, Mar 13, 2002 at 11:34:55AM -0500, ruud de rooij wrote:
| perhaps lists should support .keys() and .items() for those operations
| (analogous to dictionaries).
Very nice idea. This is PEP worthy. It is nice beacuse it
does not introduce anything new; a list can easily be viewed
as a mapping having a positive integer domain. This is simple,
consistent, and quite elegant.
Best,
Clark
More information about the Python-list
mailing list