Changes between Initial Version and Version 13 of Ticket #16082
- Timestamp:
- Jan 27, 2017, 7:56:24 AM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #16082
-
Property
Status
changed from
new
toneeds_review
-
Property
Component
changed from
distribution
topython3
-
Property
Summary
changed from
Python 3 preparation: The semantics of the zip() function is changed
toTest ticket for zip()
-
Property
Branch
changed from
to
public/16082
-
Property
Milestone
changed from
sage-6.2
tosage-duplicate/invalid/wontfix
-
Property
Commit
changed from
to
737c6682235caded1b7d809db84b8951016a4bbf
-
Property
Status
changed from
-
Ticket #16082 – Description
initial v13 1 In Py2 {{{zip()}}} returns a list, while in Py3 {{{zip()}}} returns an iterator (as {{{itertools.izip()}}} does in Py2). 2 3 The tool 2to3 wraps {{{zip()}}} usages with a call to {{{list()}}}. 4 [[br]] 5 An alternative approach is to add {{{from future_builtins import zip}}} and to check where a wrapping with {{{list()}}} is required. 6 7 There are 54 effected modules. 8 9 This ticket is tracked as a dependency of meta-ticket ticket:16052. 1 This ticket is used for doctesting the Python 3 compatibility of `zip()`. It is not a real ticket and should not be merged.