[issue12616] zip fixer fails on zip()[:-1]

Karthikeyan Singaravelan report at bugs.python.org
Sun Mar 17 04:11:30 EDT 2019


Karthikeyan Singaravelan <tir.karthi at gmail.com> added the comment:

This seems to have been fixed with issue28837 and 93b4b47e3a720171d67f3b608de406aef462835c. Marking this as resolved. Thanks for the report.

➜  cpython git:(master) ✗ cat /tmp/foo.py
zip(B, D)[:-1]
➜  cpython git:(master) ✗ 2to3-3.7 /tmp/foo.py
RefactoringTool: Skipping optional fixer: buffer
RefactoringTool: Skipping optional fixer: idioms
RefactoringTool: Skipping optional fixer: set_literal
RefactoringTool: Skipping optional fixer: ws_comma
RefactoringTool: Refactored /tmp/foo.py
--- /tmp/foo.py	(original)
+++ /tmp/foo.py	(refactored)
@@ -1 +1 @@
-zip(B, D)[:-1]
+list(zip(B, D))[:-1]
RefactoringTool: Files that need to be modified:
RefactoringTool: /tmp/foo.py

----------
nosy: +xtreak
resolution:  -> fixed
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue12616>
_______________________________________


More information about the Python-bugs-list mailing list