Skip to content

Inline unpacking of variables in function signature doesn't work #201

Description

@sqlalchemy-bot

Migrated issue, originally created by Anonymous

Inline unpacking of variables in function signature doesn't work.

Occurs in Mako 0.7.2 back to 0.4.1 as far as we have tested.

'''Steps to reproduce:'''

'''Example 1:'''

from mako import template
template.Template("${lambda (k,v):1}")

Traceback (most recent call last):
...
AttributeError: 'Tuple' object has no attribute 'id'

'''Example 2:'''

from mako import template
template.Template("<% def test((x,y)): pass %>")

Traceback (most recent call last):
...
AttributeError: 'Tuple' object has no attribute 'id'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions