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

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

Closed
sqlalchemy-bot opened this issue Aug 3, 2012 · 3 comments
Closed
Labels
bug Something isn't working lexer low priority

Comments

@sqlalchemy-bot
Copy link

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
Copy link
Author

Michael Bayer (@zzzeek) wrote:

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

@sqlalchemy-bot
Copy link
Author

Changes by Michael Bayer (@zzzeek):

  • changed status to closed

@sqlalchemy-bot
Copy link
Author

Anonymous wrote:

Works for me. Thanks for the quick response.

@sqlalchemy-bot sqlalchemy-bot added bug Something isn't working low priority lexer labels Nov 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working lexer low priority
Projects
None yet
Development

No branches or pull requests

1 participant