[issue23677] Mention dict and set comps in library reference

2020-05-10 Thread Furkan Onder
Furkan Onder added the comment: PR has been sent. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23677] Mention dict and set comps in library reference

2020-05-10 Thread Furkan Onder
Change by Furkan Onder : -- nosy: +furkanonder nosy_count: 8.0 -> 9.0 pull_requests: +19337 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/20027 ___ Python tracker

[issue23677] Mention dict and set comps in library reference

2019-02-24 Thread Cheryl Sabella
Cheryl Sabella added the comment: Assigning to @Mariatta for the CPython mentored sprint. -- assignee: docs@python -> Mariatta nosy: +Mariatta, cheryl.sabella stage: patch review -> needs patch versions: +Python 3.7, Python 3.8 -Python 3.5, Python 3.6

[issue23677] Mention dict and set comps in library reference

2019-02-24 Thread Mark Lawrence
Change by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23677] Mention dict and set comps in library reference

2016-01-04 Thread Josh Rosenberg
Josh Rosenberg added the comment: Heck, with the addition of additional unpacking generalizations in 3.5, you can make an empty set even without a comprehension: {*()} Not really recommending the "one-eyed monkey operator", but the addition of unpacking generalizations undoes several of the

[issue23677] Mention dict and set comps in library reference

2016-01-03 Thread Martin Panter
Martin Panter added the comment: The distiction about non-empty sets is a bit misleading. You can create an empty set via comprehension: >>> {x for x in ()} set() -- nosy: +martin.panter ___ Python tracker

[issue23677] Mention dict and set comps in library reference

2016-01-03 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti stage: -> patch review type: -> enhancement versions: +Python 3.6 -Python 3.4 ___ Python tracker

[issue23677] Mention dict and set comps in library reference

2015-03-18 Thread Frank Millman
Frank Millman added the comment: Lists and tuples are described like this - class list([iterable]) Lists may be constructed in several ways: [...] class tuple([iterable]) Tuples may be constructed in a number of ways: [...] I think a similar approach to Dicts and Sets could make sense -

[issue23677] Mention dict and set comps in library reference

2015-03-17 Thread Mark Lawrence
Mark Lawrence added the comment: That was embarrassing, hopefully this is rather better. -- nosy: +BreamoreBoy Added file: http://bugs.python.org/file38534/issue23677_v2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23677

[issue23677] Mention dict and set comps in library reference

2015-03-16 Thread R. David Murray
R. David Murray added the comment: Sounds reasonable. Dict and set comprehensions were added later than list comprehensions, and we probably just didn't notice this needed updating. Mark's patch, however, is incorrect. Mark: the dict/set literal notation is a different thing from a

[issue23677] Mention dict and set comps in library reference

2015-03-16 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- keywords: +patch versions: +Python 3.5 Added file: http://bugs.python.org/file38507/issue23677.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23677

[issue23677] Mention dict and set comps in library reference

2015-03-16 Thread Frank Millman
New submission from Frank Millman: This is from the documentation at Section 4.6.4. Lists Lists may be constructed in several ways: Using a pair of square brackets to denote the empty list: [] Using square brackets, separating items with commas: [a], [a, b, c] Using a list comprehension: [x