エントリーの編集
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
Python 3.0 listdir() Bug on Undecodable Filenames — Victor Stinner blog 3
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
Python 3.0 listdir() Bug on Undecodable Filenames — Victor Stinner blog 3
Python 3.0 listdir() Bug on Undecodable Filenames Victor Stinner Fri 09 March 2018 Ten years ago,... Python 3.0 listdir() Bug on Undecodable Filenames Victor Stinner Fri 09 March 2018 Ten years ago, when Python 3.0 final was released, os.listdir(str) ignored silently undecodable filenames: $ python3.0 >>> os.mkdir(b'x') >>> open(b'x/nonascii\xff', 'w').close() >>> os.listdir('x') [] You had to use bytes to see all filenames: >>> os.listdir(b'x') [b'nonascii\xff'] If the locale is POSIX or C, list

