[issue32722] Mislabeling of a dict comprehension as a generator expression in the tutorial

2018-01-31 Thread Xiang Zhang
Xiang Zhang added the comment: I treat it as an enhancement so only merge it into 3.8. Thanks Soothsayer for the report and Stéphane for the patch! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 2.7, Python 3.4,

[issue32722] Mislabeling of a dict comprehension as a generator expression in the tutorial

2018-01-31 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset ab328756d7fd969ee4882458b07892dff135013c by Xiang Zhang (Stéphane Wirtel) in branch 'master': bpo-32722: Remove useless example in the Classes tutorial (#5446)

[issue32722] Mislabeling of a dict comprehension as a generator expression in the tutorial

2018-01-30 Thread Soothsayer
Soothsayer added the comment: I agree that 2.7 is incorrect also, 2.7 has dict comprehensions also so there's no reason to pass a generator expression to dict(). I add 3.4 and 3.8 because they also have the problem. -- versions: +Python 3.4, Python 3.8

[issue32722] Mislabeling of a dict comprehension as a generator expression in the tutorial

2018-01-30 Thread Brett Cannon
Change by Brett Cannon : -- title: Classes -> Mislabeling of a dict comprehension as a generator expression in the tutorial ___ Python tracker