Skip to content
プロジェクト

jwilk/python-syntax-errors

GitHubで見る

概要

Python X.Y 以降でのみ構文上有効な no-op 文

その他のプロジェクト

この数値の測り方

計測したスター増加

24時間
0
7日間
0
15日間
0
1か月
履歴を収集中

期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。

This is a collection of no-op statements that are syntactically valid only since Python X.Y, for most X.Y ≥ 2.2.

For example:

0_0  # Python >= 3.6 is required

The idea is to put such a statement near the top of your file. If a user inadvertently ran the code against an older version, they would get a fairly helpful error message:

$ python3.5 since-3.6.py
  File "since-3.6.py", line 1
    0_0  # Python >= 3.6 is required
      ^
SyntaxError: invalid syntax

関連プロジェクトを探す

読み込み中…