Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #87514 > unrolled thread

Re: Dict comprehensions - improvement to docs?

Started byBen Finney <ben+python@benfinney.id.au>
First post2015-03-16 17:57 +1100
Last post2015-03-16 17:57 +1100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Dict comprehensions - improvement to docs? Ben Finney <ben+python@benfinney.id.au> - 2015-03-16 17:57 +1100

#87514 — Re: Dict comprehensions - improvement to docs?

FromBen Finney <ben+python@benfinney.id.au>
Date2015-03-16 17:57 +1100
SubjectRe: Dict comprehensions - improvement to docs?
Message-ID<mailman.416.1426489013.21433.python-list@python.org>
"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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web