Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2to3, lambda with non-tuple argument inside parenthesis #45448

Closed
falsetru mannequin opened this issue Sep 5, 2007 · 4 comments
Closed

2to3, lambda with non-tuple argument inside parenthesis #45448

falsetru mannequin opened this issue Sep 5, 2007 · 4 comments

Comments

@falsetru
Copy link
Mannequin

falsetru mannequin commented Sep 5, 2007

BPO 1107
Nosy @gvanrossum, @birkenfeld
Files
  • 2to3_lambda_nontuple_param.diff
  • 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 = None
    closed_at = <Date 2007-09-08.21:16:31.500>
    created_at = <Date 2007-09-05.05:52:58.098>
    labels = ['expert-2to3']
    title = '2to3,   lambda with non-tuple argument inside parenthesis'
    updated_at = <Date 2007-09-08.21:16:31.498>
    user = 'https://bugs.python.org/falsetru'

    bugs.python.org fields:

    activity = <Date 2007-09-08.21:16:31.498>
    actor = 'collinwinter'
    assignee = 'collinwinter'
    closed = True
    closed_date = <Date 2007-09-08.21:16:31.500>
    closer = 'collinwinter'
    components = ['2to3 (2.x to 3.x conversion tool)']
    creation = <Date 2007-09-05.05:52:58.098>
    creator = 'falsetru'
    dependencies = []
    files = ['8389']
    hgrepos = []
    issue_num = 1107
    keywords = []
    message_count = 4.0
    messages = ['55654', '55655', '55659', '55755']
    nosy_count = 4.0
    nosy_names = ['gvanrossum', 'georg.brandl', 'collinwinter', 'falsetru']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = None
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue1107'
    versions = []

    @falsetru
    Copy link
    Mannequin Author

    falsetru mannequin commented Sep 5, 2007

    lambda (x): x

    should be transformed to

    lambda x: x

    not
    lambda x1: x1[0]

    @falsetru
    Copy link
    Mannequin Author

    falsetru mannequin commented Sep 5, 2007

    I found this while 2to3ing BeautifulSoup.py.

    @birkenfeld
    Copy link
    Member

    Assigned to Collin.

    @birkenfeld birkenfeld changed the title [patch] 2to3, lambda with non-tuple argument inside parenthesis 2to3, lambda with non-tuple argument inside parenthesis Sep 5, 2007
    @collinwinter collinwinter mannequin added the topic-2to3 label Sep 6, 2007
    @collinwinter
    Copy link
    Mannequin

    collinwinter mannequin commented Sep 8, 2007

    Fixed in r58055, r58056.

    @collinwinter collinwinter mannequin closed this as completed Sep 8, 2007
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant