Skip to content
Proyectos

jwilk/python-syntax-errors

Ver en GitHub

Acerca de

Sentencias no-op válidas sintácticamente solo desde Python X.Y

Otros proyectos

Cómo se miden estas cifras

Crecimiento de estrellas medido

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
Recopilando historial

Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.

README.md

Original

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

Explorar proyectos relacionados

Cargando…