Logo
Explore Help
Sign In
ada/cpython
0
0
Fork 0
You've already forked cpython
mirror of https://github.com/AdaCore/cpython.git synced 2026-02-12 12:57:15 -08:00
Code Issues Packages Projects Releases Wiki Activity
Files
d988f429fe43808345812ef63dfa8da170c61871
cpython/Tools/scripts/pydoc

6 lines
79 B
Plaintext
Raw Normal View History

Add script form of pydoc so that it's present in beta1. Currently this just copies the __name__=='__main__' logic from pydoc.py. ?!ng can decide whether he wants to create a main() in pydoc, or rip it out of pydoc.py completely.
2001-02-28 20:55:10 +00:00
#!/usr/bin/env python
Call main routine in pydoc module (pydoc.cli).
2001-03-01 00:25:40 +00:00
import pydoc
[Patch #1005491 ] use __name__ == '__main__' in scripts
2004-08-09 17:27:55 +00:00
if __name__ == '__main__':
pydoc.cli()
Reference in New Issue Copy Permalink
Powered by Gitea Page: 1318ms Template: 15ms
English
English
Licenses API