Hundread of files that are properly parsed(or not) in opposite to Python 3.11.2
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 25/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 领域
- compilers, testing-qa
调研方向
从 OUTPUT_FILES.zip 开始,针对列出的示例,将 python -m py_compile PY_FILE_TEST_427160.py 与 RustPython 的 parse(content.as_str(), Mode::Module, "").is_ok() 进行比较。重现并最小化不匹配,然后确定 parser 的行为是否与 Python 3.11.2 不同;当报告的差异已修复,或通过回归覆盖得到明确分类时,即视为完成。
由索引模型根据 Issue 内容生成。
描述
d23611db65dca2a71eb58fdcdce9d637f8fef8c2
When parsing with this repo multiple files, I found that sometimes python cannot parse file but this library can and vice versa.
Command to check if python can parse file
python -m py_compile PY_FILE_TEST_427160.py
Code to check if parser can parse file
let rust_valid = parse(content.as_str(), Mode::Module,"").is_ok();
Only ~3% files from pack, can be parsed by python, but not rustpython parser
Pack 644 files - OUTPUT_FILES.zip
Example files and errors
return imprt
SyntaxError: 'return' outside function
\
import _pl
Sorry: IndentationError: unexpected indent (79285088PY_FILE_TEST_5137609254.py, line 2)
# encoding: ut
SyntaxError: unknown encoding: ut
__p|ersion__ = '2.9.0'
SyntaxError: cannot assign to expression here. Maybe you meant '==' instead of '='?
from __future__ import un
SyntaxError: future feature un is not defined
- 主要语言
- Rust
- 星标
- 117
- 派生
- 38
- 平均合并
- 4 天 7 小时
- 30 天内合并 PR
- 1
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
RustPython/Parser 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 25/100
RustPython/Parser#140 · 3 条评论 ·
-
难度 3/5 1-2 天 新手友好度 48/100
RustPython/Parser#139 · 3 条评论 ·
-
难度 4/5 3-5 天 新手友好度 30/100
RustPython/Parser#137 · 1 条评论 ·
-
难度 3/5 1-2 天 新手友好度 50/100
RustPython/Parser#133 ·
-
难度 3/5 1-2 天 新手友好度 35/100
RustPython/Parser#130 ·
查看 RustPython/Parser 的全部 Issue
相似的 Issue
-
area: compat bug
难度 2/5 1-3 小时 新手友好度 72/100
-
area: dogs bug priority: P3 silent failure test-code
难度 2/5 1-3 小时 新手友好度 88/100
-
难度 2/5 1-3 小时 新手友好度 70/100
MystenLabs/sui#28056 · 1 条评论 ·
-
type/bug
难度 2/5 1-3 小时 新手友好度 68/100
-
难度 2/5 1-3 小时 新手友好度 75/100
Luminous-Dynamics/mycelix#2577 ·