Opened 9 years ago

Closed 6 years ago

## #16070 closed enhancement (invalid)

# Python 3 preparation: Some functions (ifilter, imap, izip) are removed from itertools

Reported by: | Wilfried Luebbe | 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 9 years ago by

Milestone: | sage-6.2 → sage-6.3 |
---|

### comment:2 Changed 9 years ago by

Dependencies: | → #16071 |
---|

### comment:3 Changed 8 years ago by

Milestone: | sage-6.3 → sage-6.4 |
---|

### comment:4 Changed 7 years ago by

Component: | distribution → python3 |
---|

### comment:6 Changed 6 years ago by

### comment:7 Changed 6 years ago by

Milestone: | sage-6.4 → sage-duplicate/invalid/wontfix |
---|---|

Status: | new → needs_review |

let us close this as duplicate

### comment:8 Changed 6 years ago by

Dependencies: | #16071 |
---|

### comment:9 Changed 6 years ago by

Status: | needs_review → positive_review |
---|

### comment:10 Changed 6 years ago by

Resolution: | → invalid |
---|---|

Status: | positive_review → 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.