Consolidate guidance on prompts in interactive code examples
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 50/100
- Tipo di issue
- Documentazione
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Ferma
- Stack tecnologico
- python
- Ambito
- documentation
Direzione di ricerca
Apri innanzitutto le sezioni collegate „Style Guide / Code Examples“ e „reStructured Text Markup / Showing Code Examples“. Consolida in un unico punto le indicazioni sui prompt interattivi, aggiungi un riferimento nell’altro e assicurati che le indicazioni risultanti coprano i prompt secondari, il doctesting e l’esempio di prompt primario inutilizzato.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
In the Documentation chapter, Style Guide / Code Examples has
The ellipsis for the sys.ps2 secondary interpreter prompt should only be used sparingly, where it is necessary to clearly differentiate between input lines and output lines. Besides contributing visual clutter, it makes it difficult for readers to cut-and-paste examples so they can experiment with variations.
(Perhaps it should be mentioned here that doctesting the code example requires such differentiation and hence requires secondary prompts. Perhaps the primary prompt should also be left off.)
reStructured Text Markup / Additional Markup Constructs / Showing Code Examples has
Representing an interactive session requires including the prompts and output along with the Python code. No special markup is required for interactive sessions. After the last line of input or output presented, there should not be an “unused” primary prompt; this is an example of what not to do:
>>>1 + 1
2
>>>
I think both advices should be in the same place and a reference added in the other.
- Lingua principale
- Python
- Stelle
- 2.1k
- Fork
- 1k
- Merge medio
- 2g 12h
- PR unite (30g)
- 12
Guida per i contributori
Apri 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 python/devguide
-
type-feature
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
type-feature
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
topic-building python type-feature
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
-
needs: decision topic-test type-bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
topic-dev process type-feature
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
Tutte le issue di python/devguide
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
qgis/QGIS-Documentation#11275 ·
-
bug priority:normal ready-for-dev
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
OpenHands/extensions#626 · 1 commento ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
CSCfi/sd-search-api#39 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
-
please add to porn list Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
StevenBlack/hosts#3255 ·