This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2014年11月09日 03:22 by rhettinger, last changed 2022年04月11日 14:58 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| issue22824.diff | berker.peksag, 2014年11月10日 00:12 | review | ||
| issue22824_v2.diff | berker.peksag, 2014年11月10日 00:29 | review | ||
| issue22824_3.diff | serhiy.storchaka, 2014年11月10日 08:33 | review | ||
| Messages (8) | |||
|---|---|---|---|
| msg230880 - (view) | Author: Raymond Hettinger (rhettinger) * (Python committer) | Date: 2014年11月09日 03:22 | |
Currently reprlib outputs:
>>> reprlib.repr(set('supercalifragilisticexpialidocious'))
"set(['a', 'c', 'd', 'e', 'f', 'g', ...])"
This should be:
"{'a', 'c', 'd', 'e', 'f', 'g', ...}"
|
|||
| msg230922 - (view) | Author: Berker Peksag (berker.peksag) * (Python committer) | Date: 2014年11月10日 00:12 | |
Here's a patch to use set literals and frozenset({'a'}) in reprlib.
|
|||
| msg230923 - (view) | Author: Raymond Hettinger (rhettinger) * (Python committer) | Date: 2014年11月10日 00:21 | |
That looks great. Go ahead an apply (with a MISC/NEWS entry and an update to the example on line 22 of Docs/tutorial/stdlib2.rst). |
|||
| msg230924 - (view) | Author: Berker Peksag (berker.peksag) * (Python committer) | Date: 2014年11月10日 00:29 | |
Thanks for the review, Raymond. Patch updated: - Updated the documentation - Added two test cases for set literals - Replaced old run_unittest calls with ``unittest.main()`` |
|||
| msg230935 - (view) | Author: Roundup Robot (python-dev) (Python triager) | Date: 2014年11月10日 06:31 | |
New changeset 147fda13bec8 by Raymond Hettinger in branch 'default': Issue #22824: Updated reprlib output format for sets to use set literals. https://hg.python.org/cpython/rev/147fda13bec8 |
|||
| msg230936 - (view) | Author: Raymond Hettinger (rhettinger) * (Python committer) | Date: 2014年11月10日 06:31 | |
Thanks for the patch. |
|||
| msg230942 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) | Date: 2014年11月10日 08:33 | |
The repr of empty array() should be fixed too. |
|||
| msg231213 - (view) | Author: Roundup Robot (python-dev) (Python triager) | Date: 2014年11月15日 18:59 | |
New changeset cf5b910ac4c8 by Raymond Hettinger in branch 'default': Issue #22824: Simplify reprlib output format for empty arrays https://hg.python.org/cpython/rev/cf5b910ac4c8 |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:58:10 | admin | set | github: 67013 |
| 2014年11月15日 18:59:09 | python-dev | set | messages: + msg231213 |
| 2014年11月10日 08:33:41 | serhiy.storchaka | set | files:
+ issue22824_3.diff nosy: + serhiy.storchaka messages: + msg230942 |
| 2014年11月10日 07:08:06 | berker.peksag | set | stage: patch review -> resolved |
| 2014年11月10日 06:31:33 | rhettinger | set | status: open -> closed resolution: fixed messages: + msg230936 |
| 2014年11月10日 06:31:01 | python-dev | set | nosy:
+ python-dev messages: + msg230935 |
| 2014年11月10日 00:29:27 | berker.peksag | set | files:
+ issue22824_v2.diff messages: + msg230924 |
| 2014年11月10日 00:21:27 | rhettinger | set | assignee: berker.peksag messages: + msg230923 |
| 2014年11月10日 00:12:23 | berker.peksag | set | files:
+ issue22824.diff keywords: + patch messages: + msg230922 stage: needs patch -> patch review |
| 2014年11月09日 03:24:27 | ezio.melotti | set | nosy:
+ ezio.melotti components: + Library (Lib) stage: needs patch |
| 2014年11月09日 03:23:50 | berker.peksag | set | nosy:
+ berker.peksag |
| 2014年11月09日 03:22:18 | rhettinger | create | |