Opened 6 years ago
Closed 3 years ago
#16070 closed enhancement (invalid)
Python 3 preparation: Some functions (ifilter, imap, izip) are removed from itertools
Reported by: | wluebbe | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | sage-duplicate/invalid/wontfix |
Component: | python3 | Keywords: | python3 |
Cc: | Merged in: | ||
Authors: | Reviewers: | ||
Report Upstream: | N/A | Work issues: | |
Branch: | Commit: | ||
Dependencies: | Stopgaps: |
Description
The tool 2to3 removes the imports.
But the code has to depend on the Python version!
An alternative approach is to add from future_builtins import filter
and to check where a wrapping with list()
is required.
There are 13 effected modules.
This ticket is tracked as a dependency of meta-ticket ticket:16052.
Change History (10)
comment:1 Changed 5 years ago by
- Milestone changed from sage-6.2 to sage-6.3
comment:2 Changed 5 years ago by
- Dependencies set to #16071
comment:3 Changed 5 years ago by
- Milestone changed from sage-6.3 to sage-6.4
comment:4 Changed 3 years ago by
- Component changed from distribution to python3
comment:5 Changed 3 years ago by
for imap, see #21364
comment:6 Changed 3 years ago by
comment:7 Changed 3 years ago by
- Milestone changed from sage-6.4 to sage-duplicate/invalid/wontfix
- Status changed from new to needs_review
let us close this as duplicate
comment:8 Changed 3 years ago by
- Dependencies #16071 deleted
comment:9 Changed 3 years ago by
- Status changed from needs_review to positive_review
comment:10 Changed 3 years ago by
- Resolution set to invalid
- Status changed from positive_review to closed
Note: See
TracTickets for help on using
tickets.
Added dependency: The imports may only be removed when their usages have been removed in #16071.