Protected members (and @property)?

オープン
#27 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

@dikwickley がすでに取り組んでいます。

2023年2月13日 から。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
20/100
issue の種類
リファクタリング
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
python

調査の方向性

Start by locating the linear-operator classes and reading where members are initialized and used by */matvec and .H/rmatvec. The issue does not name files or tests, and it leaves the scope of the naming and @property changes undecided; clarify which members should change before taking it on. Done would mean applying an agreed, consistent convention and verifying affected behavior.

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

説明

Core enhancement

So far the convention of prepending _ to highlight protected members is not used. While no operator requires the user to change anything after initialization and its use is limited to * (or matvec) and .H (or rmatvec), it may be better to be consistent with common practice.

Also, in some cases some variables are checked at initialization, it may more natural to convert those into @property. This is not just a pure stylistic change but may make better code (although will raise the bar for new developers?)

主要言語
Python
スター
539
フォーク
126
平均マージ
2日 17時間
マージ済み PR(30日)
21

環境構築

はじめの一歩

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

PyLops/pylops のほかの issue

PyLops/pylops の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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