Consider mentioning deep copies
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 64/100
- Tipo di issue
- Documentazione
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- python
- Ambito
- documentation
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
- Lingua principale
- HTML
- Stelle
- 25
- Fork
- 65
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di LibraryCarpentry/lc-python-intro
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
-
Ch10 Variable scope has confusing variable nameForse già presa @chennesy l’ha presa 44 giorni fa. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 76/100
Tutte le issue di LibraryCarpentry/lc-python-intro
Issue simili
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 76/100
416rehman/Guardrails#1716 ·
-
Ep2: source of metadata?Aperta
Difficoltà 1/5 1-3 ore Idoneità per principianti 72/100
-
area:kubernetes area:security documentation priority:medium size:small
Difficoltà 1/5 1-3 ore Idoneità per principianti 88/100
RonaldHensbergen/composable-data-stack#1339 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
I maintainer di solito rispondono entro 1 giorno
-
documentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
hugomrdias/playwright-test#786 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno