sqlalchemy / sqlalchemy/mako

"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.

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

Description

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.

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.

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.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.