python / python/cpython

io.BytesIO.truncate does not work as advertised

オープン
#71,448 コメント 8 件 リアクション 1 件 担当者 0 名 GitHub で見る

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

stdlib topic-IO type-feature
主要言語
Python
スター
77.2k
フォーク
36k
平均マージ
1日 9時間
マージ済み PR(30日)
558

説明

BPO 27261
Nosy @avassalotti, @vadmium, @serhiy-storchaka, @swarmer, @zhangyangyu, @teythoon, @tirkarthi

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 2016-06-07.20:52:57.361>
labels = ['type-bug', 'library', 'expert-IO']
title = 'io.BytesIO.truncate does not work as advertised'
updated_at = <Date 2018-10-12.10:55:18.233>
user = 'https://github.com/teythoon'

bugs.python.org fields:

activity = <Date 2018-10-12.10:55:18.233>
actor = 'anton.barkovsky'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Library (Lib)', 'IO']
creation = <Date 2016-06-07.20:52:57.361>
creator = 'justus.winter'
dependencies = []
files = []
hgrepos = []
issue_num = 27261
keywords = []
message_count = 5.0
messages = ['267748', '267758', '267765', '267848', '327578']
nosy_count = 7.0
nosy_names = ['alexandre.vassalotti', 'martin.panter', 'serhiy.storchaka', 'anton.barkovsky', 'xiang.zhang', 'justus.winter', 'xtreak']
pr_nums = []
priority = 'normal'
resolution = None
stage = 'needs patch'
status = 'open'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue27261'
versions = ['Python 2.7', 'Python 3.5', 'Python 3.6']

Linked PRs
  • gh-152252

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

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

はじめの一歩

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

調査の方向性

io.BytesIO.truncate のエントリーポイントと、そこで説明されている仕様上の動作に関するドキュメントから始めます。リンクされている PR gh-152252 を調査し、その変更を報告された不一致と比較します。実装がドキュメントに記載された動作と一致し、回帰テストのカバレッジによってそれが検証されれば完了です。

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

評価

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

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

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