Skip to content

Conversation

@ncaq
Copy link

@ncaq ncaq commented Nov 11, 2022

rではなくr+を使うと先頭から書き込みも行えるモードでファイルが開かれるが、
自分が見る限り書き込みをしている箇所が見つからない。
書き込み可能なようにすると以下のように読み込み専用ファイルシステムを使うとエラーになる。

"errorMessage": "[Errno 30] Read-only file system: '/asa-server/python_asa/asapy/load/../dict/new_argframes.json'",
"errorType": "OSError",

よって書き込みを行わない場合は読み込み専用で開いた方が適切だと考える。

`r`ではなく`r+`を使うと先頭から書き込みも行えるモードでファイルが開かれるが、
自分が見る限り書き込みをしている箇所が見つからない。
書き込み可能なようにすると以下のように読み込み専用ファイルシステムを使うとエラーになる。

~~~
"errorMessage": "[Errno 30] Read-only file system: '/asa-server/python_asa/asapy/load/../dict/new_argframes.json'",
"errorType": "OSError",
~~~

よって書き込みを行わない場合は読み込み専用で開いた方が適切だと考える。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant