Consider mentioning deep copies

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
64/100
issue の種類
ドキュメント
明瞭さ
おおむね明確
活発さ
活発
技術スタック
python
領域
documentation

調査の方向性

Read the Ch2 material on assignment and the Ch3 section introducing lists and mutable/immutable types; the issue also points to Ch7 examples with lists of dataframes. Decide where a deep-copy explanation best fits without overwhelming learners, then update the relevant lesson material. Done when the pitfall and when deep copies are useful are explained at an appropriate point in the course.

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

説明

How could the content be improved?

In Ch2 the learners are taught that if you define b = a, any subsequent changes to a do not affect b . This is true for immutable variables but not for all data types.

Then in Ch3 we start modifying objects in-place, and in Ch7 we end up with things like lists of dataframes (nested mutables!). So it would be useful to mention the need for deep copies at some point to avoid a common pitfall people may face when writing their own code.

A logical place might be in Ch3 when you start on lists and mutable/immutable types, but I worry it's too early in the course and will just be confusing

主要言語
HTML
スター
25
フォーク
65
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

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

LibraryCarpentry/lc-python-intro のほかの issue

LibraryCarpentry/lc-python-intro の issue をすべて見る

似ている issue

Documentation の issue をもっと見る

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

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