Define new builtins 'quit' and 'exit'. These are objects which make the interpreter exit when called. The repr of each object contains a hint at how it works.
()
| 428 | return known_paths |
| 429 | |
| 430 | def setquit(): |
| 431 | """Define new builtins 'quit' and 'exit'. |
| 432 | |
| 433 | These are objects which make the interpreter exit when called. |
| 434 | The repr of each object contains a hint at how it works. |
| 435 | |
| 436 | """ |
| 437 | if os.sep == '\\': |
| 438 | eof = 'Ctrl-Z plus Return' |
| 439 | else: |
| 440 | eof = 'Ctrl-D (i.e. EOF)' |
| 441 | |
| 442 | builtins.quit = _sitebuiltins.Quitter('quit', eof) |
| 443 | builtins.exit = _sitebuiltins.Quitter('exit', eof) |
| 444 | |
| 445 | |
| 446 | def setcopyright(): |
no outgoing calls
no test coverage detected
searching dependent graphs…