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

Allow for function annotations to be used as processing flags. #8

Closed
2 tasks done
amcgregor opened this issue Oct 8, 2015 · 0 comments
Closed
2 tasks done

Comments

@amcgregor
Copy link
Member

amcgregor commented Oct 8, 2015

  • Basic flag capture. Use of Python 3 function return type annotations will be treated as a comma separated list of flags to add, or, with the presence of an exclamation mark prefix, remove flags from the cinje translation context.

Some ideas for flags:

  • Unbuffered. Instead of yielding at breaks and at the end (if the buffer contains anything), with buffer resets and all that nonsense, skip the buffer allocation and local-scope method assignment. Yield at each contiguous block of text, and "yield from" (or fallback equivalent) all nested template use. (Prefix goes from __w(( to yield "".join((.)
@amcgregor amcgregor modified the milestone: Eiger (Feature Release, 1.1) Oct 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant