Bug in example code for Embedding page in Boost.Python tutorial
還沒有人認領這個 Issue。
評估
- 難度
- 1/5
- 預估耗時
- 1 小時以內
- 新手友好度
- 55/100
- Issue 類型
- 缺陷
- 描述清晰度
- 描述清楚
- 活躍度
- 停滯
研究方向
開啟 issue 中 URL 所指向的 Boost.Python embedding 教學,並檢查將 exec("hello = file('hello.txt', 'w')\n") 指派的範例行。確認範例使用報告中所述、與 Python 3 相容的 open 呼叫。當教學範例在 Python 3 上不再引發所回報的錯誤時,即完成。
由索引模型根據 Issue 內容生成。
描述
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
- 主要語言
- C++
- 星號
- 537
- 分支
- 223
- 平均合併
- 11 小時 22 分鐘
- 30 天內合併 PR
- 2
貢獻指南
這個儲存庫沒有索引到貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
boostorg/python 的其他 Issue
-
難度 1/5 1 小時以內 新手友好度 84/100
-
難度 2/5 1-3 小時 新手友好度 68/100
-
難度 2/5 1-3 小時 新手友好度 64/100
-
BoostDetectToolset-1.90.0.cmake file not found in an include() call in boost_python-config.cmake 未關閉
難度 3/5 1-2 天 新手友好度 48/100
-
難度 4/5 3-5 天 新手友好度 25/100
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 70/100
google/libultrahdr#485 ·
-
難度 2/5 1-3 小時 新手友好度 75/100
godotengine/godot#123776 ·
-
bug
難度 1/5 1 小時以內 新手友好度 60/100
-
good first issue
難度 1/5 1 小時以內 新手友好度 90/100
-
good first issue
難度 2/5 1-3 小時 新手友好度 75/100
ros2/common_interfaces#344 ·