2
Plain Python definition of the builtin interactive help functions.
7
if sys.platform == "win32":
8
exit = "Use Ctrl-Z plus Return to exit."
10
exit = "Use Ctrl-D (i.e. EOF) to exit."
13
print 'Copyright 2003-2007 PyPy development team.\nAll rights reserved.\nFor further information see http://www.codespeak.net/pypy.\nSome materials may have a different copyright.\nIn these cases, this is explicitly noted in the source code file.'
18
Copyright (c) <2003-2007> <PyPy development team>
20
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
22
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
24
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
28
# Define the built-in 'help'.
29
# This is a wrapper around pydoc.help (with a twist).
33
return "Type help() for interactive help, " \
34
"or help(object) for help about object."
35
def __call__(self, *args, **kwds):
37
return pydoc.help(*args, **kwds)