text/template/parse
- 主要语言
- Go
- 星标
- 2.3k
- 派生
- 136
- 平均合并
- 14 分钟
- 30 天内合并 PR
- 2
描述
Hi, wanted to create wrapper for the standard text/template/parse/library but the generated code contains following:
```python
if 3 < len(args):
self.True = args[3]
```
where
```python
@property
def True(self):
return _htoy.parse_BoolNode_True_Get(self.handle)
```
which obviously leads to the following python error:
```
byte-compiling build/bdist.macosx-14-x86_64/egg/htoy/go.py to go.cpython-311.pyc
byte-compiling build/bdist.macosx-14-x86_64/egg/htoy/parse.py to parse.cpython-311.pyc
File "build/bdist.macosx-14-x86_64/egg/htoy/parse.py", line 1490
self.True = args[3]
```
Thanks for considering this and hope it helps to improve your wonderful work
Greets
Zokrezyl
贡献指南
这个仓库没有索引到贡献指南
调研方向
从为 Go 的 text/template/parse 包生成的 wrapper 开始,尤其检查生成的 parse.py 代码中所报告的 self.True 赋值和属性附近的部分。重现 build 和字节编译失败,然后验证生成的模块能够在不包含无效 Python 标识符的情况下成功编译。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- go, python
- 领域
- tooling
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100