boostorg / boostorg/python

Bug in example code for Embedding page in Boost.Python tutorial

オープン
#353 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
C++
スター
537
フォーク
223
平均マージ
11時間 22分
マージ済み PR(30日)
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 はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。