python / python/python-docs-ja

errnoのエラー・メッセージの相違に付いて

Open
#23 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Makefile
Stars
75
Forks
38
PR merge metrics
No merged PRs in 30d

Description

Got this on docs@, won't publish it there, but coping/pasting here becaues it may be of interest:

errnoのエラー・メッセージの相違に付いて
超初心者の私が初めて投稿するので、ここで良いのかも分かりません。
違っていましたら、お手数をお掛けしますが、消去しただければ、幸いです。

システムのエラー・メッセージとインストールされた「python
Documentation」、「errno.h」と「errno(3)」のエラー・メッセージに相違が見られます。
詳細は、添付ファイルを解凍して確認してください。「errnoの設定値確認.tar.xz」

展開後は「errno-python.txt」と「errnoの設定値確認.pdf」です。(ハイブリッドpdf)
pdfの使用文字は「TakaoPGothic」と「TakaoPMincho」ですので、インストールしていれば良いのですが!。
ubuntu 18.04 LTSには初期インストールがされていませんでした。

確認対象ファイル
システムのエラー・メッセージ
python Documentation Python 2.7.17
英語版 : Python » English 2.7.17 Documentation » The Python Standard
Library »
15. Generic Operating System Services » 15.16. errno —
Standard errno system symbols
https://docs.python.org/2.7/library/errno.html?highlight=errno#module-errno
日本語版 : Python » Japanese 2.7.17 ドキュメント » Python 標準ライブラリ
»
15. 汎用オペレーティングシステムサービス » 15.16. errno ---
標準の errno システムシンボル
https://docs.python.org/ja/2.7/library/errno.html?highlight=errno#module-errno
errno.h /usr/include/asm-generic/errno-base.hと
/usr/include/asm-generic/errno.h
errno(3) 4.15

いろんな環境でLinuxが使用されているようなので、「errno(3)」が違っているのは仕方ないとして、
インストールされた「python
Documentation」、「errno.h」とプログラムエラー時に出力されるエラー・メッセージが異なっているのはどうかと思います。「Python
3.8.2rc2」でも同様です。
一応、「errno.h」の方は、コメントどして説明されているようです。ネットでも確認はしたのですが、エラーに付いては、いろいろな問題があるようです。せめてインストールされたファイルでは相違が無いようにと心から願っています。
確認のほどよろしくお願いします。

私の環境
Description: Ubuntu 18.04.4 LTS 2020.02.25.作成
Linux 4.15.0-88-generic x86_64 GNU/Linux
gcc (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0
GNU C Library (Ubuntu GLIBC 2.27-3ubuntu1) stable release version 2.27.
Python 2.7.17 です。

shikanai_card128@nifty.com
kiyokazu shikanai

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the linked Python 2.7 errno documentation pages alongside errno.h, errno(3), and the reported Python error output. Reproduce or verify the discrepancy in the stated Ubuntu 18.04.4 environment using the referenced errno-python.txt and PDF, then document a specific correction if one is confirmed.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
documentation
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.