Skip to content

izip fixer generates incorrect import statement #46720

Closed

Description

@loewis
mannequin
BPO 2468
Nosy @loewis, @wolever

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = 'https://github.com/wolever'
closed_at = <Date 2008-03-24.00:32:45.582>
created_at = <Date 2008-03-23.20:39:01.886>
labels = ['expert-2to3']
title = 'izip fixer generates incorrect import statement'
updated_at = <Date 2008-03-24.00:32:45.581>
user = 'https://github.com/loewis'

bugs.python.org fields:

activity = <Date 2008-03-24.00:32:45.581>
actor = 'wolever'
assignee = 'wolever'
closed = True
closed_date = <Date 2008-03-24.00:32:45.582>
closer = 'wolever'
components = ['2to3 (2.x to 3.x conversion tool)']
creation = <Date 2008-03-23.20:39:01.886>
creator = 'loewis'
dependencies = []
files = []
hgrepos = []
issue_num = 2468
keywords = []
message_count = 2.0
messages = ['64375', '64386']
nosy_count = 2.0
nosy_names = ['loewis', 'wolever']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue2468'
versions = []

Activity

  1. loewis commented on Mar 23, 2008

    loewismannequin
    MannequinAuthor

    Currently (r61811), the code

    from itertools import izip

    gets fixed to

    from itertools import

    This is incorrect; the import statement should be removed altogether.

  2. wolever commented on Mar 24, 2008

    @wolever
    Member

    Ah, nuts -- I had a test case for this, but it was testing with 'from
    itertools import izip, imap'... But not the single node >_<
    It has been fixed, and appropriate test has been added, in r61824.

    On 23-Mar-08, at 4:39 PM, Martin v. Löwis wrote:

    New submission from Martin v. Löwis <martin@v.loewis.de>:

    Currently (r61811), the code

    from itertools import izip

    gets fixed to

    from itertools import

    This is incorrect; the import statement should be removed altogether.

    ----------
    assignee: David Wolever
    components: 2to3 (2.x to 3.0 conversion tool)
    messages: 64375
    nosy: David Wolever, loewis
    severity: normal
    status: open
    title: izip fixer generates incorrect import statement


    Tracker <report@bugs.python.org>
    <http://bugs.python.org/issue2468\>


  3. transferred this issue fromon Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions