Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Running Transcrypt with python 3.14

Abierto
#904 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
45/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Estancado
Stack tecnológico
python
Área
compilers

Línea de trabajo

Start with org/transcrypt/compiler.py and inspect the attached transcrypt-with-python-3.14.patch. Run Transcrypt with Python 3.14, then verify that the reported ast errors and regex warning are resolved without breaking the existing compilation behavior.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

PRIO: 1 must

Hi,

I know Transcrypt is not intended to support Python 3.14, but let me open this issue just in case it helps others facing same problems.

Despite latest version of Transcrypt (3.9.4) supports Python 3.9, I've observed it perfectly runs on newer Python versions. At least on our company's codebase, where a considerable part is transcrypted.

I find problems just from Python 3.14. Actually, just on problem (about ast) and one warning (about regex). I share a patch for org/transcrypt/compiler.py.

  • ast errors

We previously had clases like ast.Str, ast.Num, ast.Bytes, etc; and these classes had attributes like s and n. Since ast 3.14 we have ast.Constant and the attribute is value.

  • regex warning

Normal strings cannot be used with re.match, for example:

re.match ('[a-zA-Z0-9_]+\.setter', nameCheck):

Solution is to convert them to raw string.

The patch

Found the patch attached.
transcrypt-with-python-3.14.patch

Hope it helps. Thnks for the work!

Lenguaje dominante
Python
Estrellas
2.9k
Forks
218
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de TranscryptOrg/Transcrypt

Todos los issues de TranscryptOrg/Transcrypt

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.