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

[AST] automatic unpacking of arguments broken #41882

Closed
brettcannon opened this issue Apr 19, 2005 · 4 comments
Closed

[AST] automatic unpacking of arguments broken #41882

brettcannon opened this issue Apr 19, 2005 · 4 comments
Assignees
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs)

Comments

@brettcannon
Copy link
Member

BPO 1186353
Nosy @brettcannon, @ncoghlan
Files
  • ast_lambda_nested_args_fix.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 = 'https://github.com/brettcannon'
    closed_at = <Date 2005-07-11.03:44:28.000>
    created_at = <Date 2005-04-19.23:37:29.000>
    labels = ['interpreter-core']
    title = '[AST] automatic unpacking of arguments broken'
    updated_at = <Date 2005-07-11.03:44:28.000>
    user = 'https://github.com/brettcannon'

    bugs.python.org fields:

    activity = <Date 2005-07-11.03:44:28.000>
    actor = 'brett.cannon'
    assignee = 'brett.cannon'
    closed = True
    closed_date = None
    closer = None
    components = ['Interpreter Core']
    creation = <Date 2005-04-19.23:37:29.000>
    creator = 'brett.cannon'
    dependencies = []
    files = ['1683']
    hgrepos = []
    issue_num = 1186353
    keywords = []
    message_count = 4.0
    messages = ['25086', '25087', '25088', '25089']
    nosy_count = 2.0
    nosy_names = ['brett.cannon', 'ncoghlan']
    pr_nums = []
    priority = 'normal'
    resolution = 'accepted'
    stage = None
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue1186353'
    versions = []

    @brettcannon
    Copy link
    Member Author

    The code (lambda (x, y): x)((3, 5)) fails because
    the passed-in tuple is not unpacked into the arguments.

    @brettcannon brettcannon self-assigned this Apr 19, 2005
    @brettcannon brettcannon added the interpreter-core (Objects, Python, Grammar, and Parser dirs) label Apr 19, 2005
    @brettcannon brettcannon self-assigned this Apr 19, 2005
    @brettcannon brettcannon added the interpreter-core (Objects, Python, Grammar, and Parser dirs) label Apr 19, 2005
    @ncoghlan
    Copy link
    Contributor

    Logged In: YES
    user_id=1038590

    Investigating lambda behaviour, as per comment on 1190011

    @ncoghlan
    Copy link
    Contributor

    Logged In: YES
    user_id=1038590

    After looking in all the wrong places, it turned out to be something
    simple in the compiler. I factored out the relevant code from the
    function compilation, so that lambda compilation can use it too.

    Assigning to Brett for review.

    @brettcannon
    Copy link
    Member Author

    Logged In: YES
    user_id=357491

    Applied in rev. 1.1.2.109 . Closed as accepted.

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 9, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    interpreter-core (Objects, Python, Grammar, and Parser dirs)
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants