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

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

Closed
sqlalchemy-bot opened this Issue Aug 3, 2012 · 3 comments

Comments

Projects
None yet
1 participant
@sqlalchemy-bot

sqlalchemy-bot commented Aug 3, 2012

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'
@sqlalchemy-bot

This comment has been minimized.

sqlalchemy-bot commented Aug 3, 2012

Michael Bayer (@zzzeek) wrote:

easy enough, can you verify 7e63f85 works for you (passes new tests for me), thanks !

@sqlalchemy-bot

This comment has been minimized.

sqlalchemy-bot commented Aug 3, 2012

Changes by Michael Bayer (@zzzeek):

  • changed status to closed
@sqlalchemy-bot

This comment has been minimized.

sqlalchemy-bot commented Aug 3, 2012

Anonymous wrote:

Works for me. Thanks for the quick response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment