Enum support?

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

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

評価

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

調査の方向性

Start by reproducing the compile failure from src/components/MSTQuery/mstquery.py and trace the import chain through mstat/record.py, enum.py, types.py, and _collections_abc. Check how Transcrypt handles these standard-library imports and whether the failure is specific to enum support. Done means the reported package compiles successfully with enum.Enum, or the supported limitation is documented.

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

説明

PRIO: 2 want STATE: under consideration

I'm not sure if I'm missing something, but does Transcrypt support the enum module in the standard library?

I'm getting this error when trying to compile a package that uses enum.Enum:

Parsing module: /usr/lib/python3.8/enum.py
Generating code for module: /home/dophin2009/files/lfs/programming/stogacs/stogacs.club/__target__/enum.js
Parsing module: /home/dophin2009/.cache/pypoetry/virtualenvs/stogacs.club-55z-L0OC-py3.8/lib/python3.8/site-packages/transcrypt/modules/warnings/__init__.py
Generating code for module: /home/dophin2009/files/lfs/programming/stogacs/stogacs.club/__target__/warnings.js
Saving source map in: /home/dophin2009/files/lfs/programming/stogacs/stogacs.club/__target__/warnings.map
Saving target code in: /home/dophin2009/files/lfs/programming/stogacs/stogacs.club/__target__/warnings.js
Parsing module: /usr/lib/python3.8/types.py
Generating code for module: /home/dophin2009/files/lfs/programming/stogacs/stogacs.club/__target__/types.js
Parsing module: /usr/lib/python3.8/_collections_abc.py
Generating code for module: /home/dophin2009/files/lfs/programming/stogacs/stogacs.club/__target__/_collections_abc.js

Error while compiling (offending file last):
        File '/home/dophin2009/files/lfs/programming/stogacs/stogacs.club/src/components/MSTQuery/mstquery.py', line 6, at import of:
        File '/home/dophin2009/.cache/pypoetry/virtualenvs/stogacs.club-55z-L0OC-py3.8/src/mstat/mstat/__init__.py', line 7, at import of:
        File '/home/dophin2009/.cache/pypoetry/virtualenvs/stogacs.club-55z-L0OC-py3.8/src/mstat/mstat/record.py', line 3, at import of:
        File '/usr/lib/python3.8/enum.py', line 2, at import of:
        File '/usr/lib/python3.8/types.py', line 275, at import of:
        File '_collections_abc', line 56, namely:

        Can't import module '_collections_abc'

Aborted
主要言語
Python
スター
2.9k
フォーク
218
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

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

TranscryptOrg/Transcrypt のほかの issue

TranscryptOrg/Transcrypt の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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