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 vbraun_spam

  • Milestone changed from sage-6.2 to sage-6.3

comment:2 Changed 5 years ago by wluebbe

  • Dependencies set to #16071

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

comment:3 Changed 5 years ago by vbraun_spam

  • Milestone changed from sage-6.3 to sage-6.4

comment:4 Changed 3 years ago by jdemeyer

  • Component changed from distribution to python3

comment:5 Changed 3 years ago by chapoton

for imap, see #21364

comment:6 Changed 3 years ago by 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 3 years ago by chapoton

  • 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 chapoton

  • Dependencies #16071 deleted

comment:9 Changed 3 years ago by aapitzsch

  • Status changed from needs_review to positive_review

comment:10 Changed 3 years ago by vbraun

  • Resolution set to invalid
  • Status changed from positive_review to closed
Note: See TracTickets for help on using tickets.