1. Michael Bayer
  2. mako

Issues

Issue #201 resolved

Inline unpacking of variables in function signature doesn't work

guest
created an issue

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'

Comments (2)

  1. Log in to comment