Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Python parity bug(?): Comma-delimited expression

オープン
#263 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
cpp, python
領域
tooling

調査の方向性

まず、issue のテンプレートを jinja2cpp と Python Jinja2 で再現し、続いてカンマ区切りの式に関するリンク先の Jinja template ドキュメントを読んでください。意図された構文を確定し、合意したパリティ動作を文書化または実装し、報告されたテンプレートの回帰テストを追加できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

The following template compiles with Python jinja2 (and yields an output of "1"), but does not work with jinja2cpp.

{% if 0, 'foo' != 'bar' %}
1
{% endif %}

Here's the jinja2cpp error that I get.

LOAD ERROR: noname.j2tpl:2:8: error: Expected end of statement, got: ','
{% if 0, 'foo' != 'bar' %}
    ---^-------

I'm actually not entirely sure what this expression is supposed to mean, or if it is just incidentally supported due to the Python jinja2 implementation.

I was not able to find an explicit call out for what this would mean in the documentation, and I wasn't able to discern how this might be useful from mucking around experimentally with a variety of values.
https://jinja.palletsprojects.com/en/2.10.x/templates/

So unclear if it would make sense to fix in jinja2cpp for parity, or if Python jinja2 should be fixed to not support this "bad template syntax".

主要言語
C++
スター
602
フォーク
115
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

jinja2cpp/Jinja2Cpp のほかの issue

jinja2cpp/Jinja2Cpp の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。