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:

Status badges

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 For batch modifications

Milestone: sage-6.2sage-6.3

comment:2 Changed 9 years ago by Wilfried Luebbe

Dependencies: #16071

Added dependency: The imports may only be removed when their usages have been removed in #16071.

comment:3 Changed 8 years ago by For batch modifications

Milestone: sage-6.3sage-6.4

comment:4 Changed 7 years ago by Jeroen Demeyer

Component: distributionpython3

comment:5 Changed 6 years ago by Frédéric Chapoton

for imap, see #21364

comment:6 Changed 6 years ago by Frédéric Chapoton

There is no longer any ifilter to take care of.

For imap, see tickets #21364 and #21373

and for izip, see #21374

comment:7 Changed 6 years ago by Frédéric Chapoton

Milestone: sage-6.4sage-duplicate/invalid/wontfix
Status: newneeds_review

let us close this as duplicate

comment:8 Changed 6 years ago by Frédéric Chapoton

Dependencies: #16071

comment:9 Changed 6 years ago by aapitzsch

Status: needs_reviewpositive_review

comment:10 Changed 6 years ago by Volker Braun

Resolution: invalid
Status: positive_reviewclosed
Note: See TracTickets for help on using tickets.