Python 3 f.tell() gets out of sync with file pointer in binary append+read mode

オープン
#80,592 コメント 15 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python
領域
backend

調査の方向性

まず、リンクされている PR #13717 と、提供されている再現プログラム bpo-36411.py および bpo-36411.c を確認します。再現プログラムを実行して、バイナリの append+read モードにおける f.tell() とファイルポインターの不一致を確認し、その後、既存のパッチレビューの議論を使って、期待される同期された動作を判断します。

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

説明

3.7 (EOL) 3.8 (EOL) topic-IO type-bug
BPO 36411
Nosy @terryjreedy, @benjaminp, @vadmium, @serhiy-storchaka, @Windsooon, @pewscorner, @websurfer5
PRs
  • python/cpython#13717
  • Files
  • bpo-36411.py: Python test file
  • bpo-36411.c: C test file
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = None
    created_at = <Date 2019-03-24.00:33:44.992>
    labels = ['3.8', 'type-bug', '3.7', 'expert-IO']
    title = 'Python 3 f.tell() gets out of sync with file pointer in binary append+read mode'
    updated_at = <Date 2019-06-01.11:04:40.585>
    user = 'https://github.com/pewscorner'
    

    bugs.python.org fields:

    activity = <Date 2019-06-01.11:04:40.585>
    actor = 'cheryl.sabella'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['IO']
    creation = <Date 2019-03-24.00:33:44.992>
    creator = 'pewscorner'
    dependencies = []
    files = ['48368', '48370']
    hgrepos = []
    issue_num = 36411
    keywords = ['patch']
    message_count = 13.0
    messages = ['338709', '338775', '339171', '343340', '343341', '343345', '343742', '343744', '343955', '343969', '344017', '344049', '344151']
    nosy_count = 7.0
    nosy_names = ['terry.reedy', 'benjamin.peterson', 'martin.panter', 'serhiy.storchaka', 'Windson Yang', 'pewscorner', 'Jeffrey.Kintscher']
    pr_nums = ['13717']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue36411'
    versions = ['Python 3.7', 'Python 3.8']
    

    主要言語
    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 を短くまとめたダイジェスト。