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 還沒有評估資料。