How to continue normal processing when using errcheck protocol in ctypes

オープン 初心者向け
#112,423 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
1/5
見積もり時間
1時間未満
初心者へのやさしさ
68/100
issue の種類
ドキュメント
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
python
領域
documentation

調査の方向性

Issue にリンクされている ctypes errcheck のドキュメントセクションから始め、参照されている _ctypes.c のコメントと比較してください。変更されていない arguments パラメーターを返すと通常の処理が継続されることを記載し、その後、ctypes ドキュメントをビルドまたは確認して、文言と書式を確認してください。

索引モデルが issue の本文から書いたものです。

説明

docs topic-ctypes

Documentation

At https://docs.python.org/3/library/ctypes.html#ctypes._FuncPtr.errcheck there isn't explained what to return to continue with normal processing of the foreign function result (parameter(s) flagged as input/output or output parameters are returned instead of the actual ffi result value).

It should be added that returning the arguments parameter, the usual processing continues.

See code comment:

    /* If the errcheck function failed, return NULL.
       If the errcheck function returned callargs unchanged,
       continue normal processing.
       If the errcheck function returned something else,
       use that as result.
    */
主要言語
Python
スター
77.2k
フォーク
36k
平均マージ
1日 9時間
マージ済み PR(30日)
558

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

python/cpython のほかの issue

python/cpython の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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