Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #87514
| From | Ben Finney <ben+python@benfinney.id.au> |
|---|---|
| Subject | Re: Dict comprehensions - improvement to docs? |
| Date | 2015-03-16 17:57 +1100 |
| References | <me5pgk$en5$1@ger.gmane.org> <CALwzidnTUifj_L=DSH_8s+z0L44pxVvdpG1+pfz1Tzm=ECTLsw@mail.gmail.com> <me5u6p$jmr$1@ger.gmane.org> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.416.1426489013.21433.python-list@python.org> (permalink) |
"Frank Millman" <frank@chagford.com> writes: > This is what the library reference says about lists - […] > If you did not know about dict comprehensions, there is nothing to > tell you that they even exist. > > I feel that it should be mentioned. It *is* mentioned, but not in the standard library documentation. Comprehensions are a language feature, not a library module. You seem to expect that the standard library documentation should *also* teach every aspect of syntax. I don't agree. -- \ “I got contacts, but I only need them when I read, so I got | `\ flip-ups.” —Steven Wright | _o__) | Ben Finney
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Dict comprehensions - improvement to docs? Ben Finney <ben+python@benfinney.id.au> - 2015-03-16 17:57 +1100
csiph-web