Bug in example code for Embedding page in Boost.Python tutorial
未关闭
- 主要语言
- C++
- 星标
- 537
- 派生
- 223
- 平均合并
- 11 小时 22 分钟
- 30 天内合并 PR
- 2
描述
Hi all,
on page https://www.boost.org/doc/libs/1_75_0/libs/python/doc/html/tutorial/tutorial/embedding.html there is a bug in the example code.
The line
object ignored = exec("hello = file('hello.txt', 'w')\n"
will cause an error_already_set exception (using Python 3.7 on Windows 10).
The line should read
object ignored = exec("hello = open('hello.txt', 'w+')\n"
Best regards
贡献指南
这个仓库没有索引到贡献指南
评估
这个 Issue 还没有评估数据。