This website requires JavaScript.
Explore
Help
Register
Sign In
mirrors
/
cpython
Watch
0
Star
0
Fork
0
You've already forked cpython
mirror of
https://github.com/python/cpython.git
synced
2024-11-23 09:54:58 +08:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
39e60aeb38
cpython
/
Tools
/
scripts
/
pydoc3
6 lines
80 B
Plaintext
Raw
Normal View
History
Unescape
Escape
install idle and pydoc with a 3 suffix #5756
2009-04-26 05:11:45 +08:00
#!/usr/bin/env python3
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-03-01 04:55:10 +08:00
Call main routine in pydoc module (pydoc.cli).
2001-03-01 08:25:40 +08:00
import pydoc
[Patch #1005491 ] use __name__ == '__main__' in scripts
2004-08-10 01:27:55 +08:00
if __name__ == '__main__':
pydoc.cli()
Reference in New Issue
Copy Permalink