I propose to change the PyUnicode_AsUTF8() API to raise an exception and return NULL if the string contains embedded null characters. If the string contains an embedded null character, the UTF-8 ...
≮Python≯ 一時的に標準出力を NULL にリダイレクトするサンプルプログラム sout_null.py Pythonで一時的に標準出力を NULL にリダイレクトするサンプルプログラムです。 個人的なメモとして書いたプログラムですが、需要があるかもしれないと思い公開しました。
一部の結果でアクセス不可の可能性があるため、非表示になっています。
アクセス不可の結果を表示する