Commit f9602fb
gh-144338: Improve cmd.Cmd docs for emptyline() and do_EOF
- Document that do_EOF should be defined to handle Ctrl-D gracefully,
with a cross-reference to the example
- Add a note to emptyline() docs about overriding with pass to suppress
the default repeat-last-command behavior
- Add emptyline() and do_EOF() to the TurtleShell example to demonstrate
these common patterns
Closes #144338
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent f3a381e commit f9602fb
1 file changed
+14
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
| 72 | + | |
71 | 73 | | |
72 | 74 | | |
73 | 75 | | |
| |||
117 | 119 | | |
118 | 120 | | |
119 | 121 | | |
120 | | - | |
| 122 | + | |
| 123 | + | |
121 | 124 | | |
122 | 125 | | |
123 | 126 | | |
| |||
306 | 309 | | |
307 | 310 | | |
308 | 311 | | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
309 | 322 | | |
310 | 323 | | |
311 | 324 | | |
| |||
0 commit comments