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年08月28日 11:43 by eddygeek, last changed 2022年04月11日 14:58 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| 2to3_more_consuming_calls.diff | eddygeek, 2014年08月28日 11:43 | patch on current cpython tip (4fc575d55e2b) | review | |
| Repositories containing patches | |||
|---|---|---|---|
| ssh://hg@bitbucket.org/eddygeek/cpython | |||
| Messages (1) | |||
|---|---|---|---|
| msg226019 - (view) | Author: Edward O (eddygeek) * | Date: 2014年08月28日 11:43 | |
This is a patch for issues similar to #16573 With this patch, the following new tests are now unchanged: r = dict(zip(s, range(len(s))), **d) r = len(filter(attrgetter('t'), self.a)) r = min(map(methodcaller('f'), self.a)) max(map(node.id, self.nodes)) + 1 if self.nodes else 0 reduce(set.union, map(f, self.a)) Note that as part of the patch, the range transformation now calls the generic in_special_context in addition to the customized one (which. I guess, should be removed, but I didn't dare). All existing tests pass, but the patterns used may not be strict enough, though I tried to stick to how it was done for other consuming calls. M Lib/lib2to3/fixer_util.py M Lib/lib2to3/fixes/fix_xrange.py M Lib/lib2to3/tests/test_fixers.py |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:58:07 | admin | set | github: 66490 |
| 2021年10月20日 22:47:54 | iritkatriel | set | status: open -> closed superseder: Close 2to3 issues and list them here resolution: wont fix stage: resolved |
| 2016年12月09日 02:37:20 | BreamoreBoy | set | nosy:
- BreamoreBoy |
| 2016年12月09日 00:38:46 | Roy Williams | set | nosy:
+ Roy Williams |
| 2014年10月07日 09:06:04 | eddygeek | set | nosy:
+ BreamoreBoy |
| 2014年08月29日 20:37:27 | terry.reedy | set | versions: - Python 3.1, Python 3.2, Python 3.3 |
| 2014年08月28日 12:25:48 | eddygeek | set | nosy:
+ benjamin.peterson |
| 2014年08月28日 11:43:01 | eddygeek | create | |