Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #51119
| From | Peter Otten <__peter__@web.de> |
|---|---|
| Subject | Re: Python 3: dict & dict.keys() |
| Date | 2013-07-24 08:23 +0200 |
| Organization | None |
| References | <51EF2AD8.3080105@stoneleaf.us> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.5026.1374646976.3114.python-list@python.org> (permalink) |
Ethan Furman wrote: > So, my question boils down to: in Python 3 how is dict.keys() different > from dict? What are the use cases? I just grepped through /usr/lib/python3, and could not identify a single line where some_object.keys() wasn't either wrapped in a list (or set, sorted, max) call, or iterated over. To me it looks like views are a solution waiting for a problem.
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
Re: Python 3: dict & dict.keys() Peter Otten <__peter__@web.de> - 2013-07-24 08:23 +0200 Re: Python 3: dict & dict.keys() Neil Cerutti <neilc@norwich.edu> - 2013-07-24 12:54 +0000
csiph-web