"Try" blocks don't support the "else" ternary keyword.

Open
#197 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
tooling

Research direction

Start with parsetree.py at line 96 and inspect how the existing try, except, and finally relationships are represented. Confirm the required parser behavior for a try block with an else clause, then verify that the issue's example is accepted by the relevant test coverage.

Written by the indexing model from the issue text.

Description

feature lexer low priority

Migrated issue, originally created by Anonymous

[http://www.makotemplates.org/trac/browser/mako/parsetree.py#L96 parsetree.py:96] needs to be:

'try':set(['except', 'else', 'finally']),

...but I don't know enough about Mako internally to know what '''else''' (hehe) is required to make this work.

Dominant language
Python
Stars
459
Forks
90
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from sqlalchemy/mako

All issues in sqlalchemy/mako

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.