Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Add file truncate()

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

メンテナーはふだん 1 日以内に返信

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
c
領域
embedded-iot

調査の方向性

Start by comparing this request with the linked upstream MicroPython issue #4775 and pull request #11500, which the issue says looks close to the expected change. Check whether that PR can be adopted or what would need to change for acceptance. Done means the requested file-truncation capability can be pursued with a clear path forward.

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

説明

cpython api enhancement

We don't have .truncate() and extending FAT files can be slow (and blocking), so high-frequency loggers need to preallocate oversized files, then later truncate them. This currently requires copying upon completion (slow + requires extra free space). Basically the same request as this upstream one:
https://github.com/micropython/micropython/issues/4775

That one has a PR on it already, which looks pretty much how I'd expect: https://github.com/micropython/micropython/pull/11500

Can we just grab that PR (or evangelize for MP to accept it or specify what exactly needs to change to get it accepted)?

主要言語
C
スター
4.6k
フォーク
1.4k
平均マージ
1日 6時間
マージ済み PR(30日)
145

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

adafruit/circuitpython のほかの issue

adafruit/circuitpython の issue をすべて見る

似ている issue

C の issue をもっと見る

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

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