Roundup Robot added the comment:
New changeset 2e2e7f398864 by Ezio Melotti in branch '2.7':
#16470: mention set and dict comprehension in the tutorial. Patch by Yongzhi
Pan.
http://hg.python.org/cpython/rev/2e2e7f398864
--
nosy: +python-dev
___
Ezio Melotti added the comment:
Fixed, thanks for the patch!
I also rephrased the sentence on 3.x.
--
assignee: docs@python - ezio.melotti
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker
Yongzhi Pan added the comment:
I updated the patch according to the code review. Hope now it is OK.
--
Added file: http://bugs.python.org/file27995/set_and_dict_comprehensions_1.diff
___
Python tracker rep...@bugs.python.org
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16470
___
___
Éric Araujo added the comment:
Good idea. Could you add a note that this is new in 2.7? (Either using
versionadded Sphinx directives or just remarks in plain English, not sure which
one would be best.)
--
nosy: +eric.araujo
___
Python tracker
Georg Brandl added the comment:
We don't use versionadded/changed directives in the tutorial. (There was only
one until 2 minutes ago, which was misplaced in any case.)
--
nosy: +georg.brandl
___
Python tracker rep...@bugs.python.org
New submission from Yongzhi Pan:
Dictionary and set comprehensions are backported to 2.7 in issue #2333. The are
not documented in the tutorial of 2.7, though they are in the language
reference. Is it OK to add these to the tutorial? I've uploaded a patch.
--
assignee: docs@python
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
stage: - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16470
___