[Python-Dev] a quit that actually quits (original) (raw)
Fredrik Lundh fredrik at pythonware.com
Thu Dec 29 17:13:01 CET 2005
- Previous message: [Python-Dev] a quit that actually quits
- Next message: [Python-Dev] a quit that actually quits
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Aahz wrote:
Does that also include my suggestion about improving the startup message?
when newbies get to the point that they want to quit, chances are that the message have scrolled out of sight. and if they only skim the instructions, they'll probably get confused anyway... e.g.
Python version gobbledidok gobbledidok gobbledidok gobbledidok Type "help", "copyright", "credits" or "license" for more information.
help Type help() for interactive help, or help(object) for help about object. help()
Welcome to Python 2.4! This is the online help utility.
If this is your first time using Python, you should definitely check out the tutorial on the Internet at http://www.python.org/doc/tut/.
Enter the name of any module, keyword, or topic to get help on writing Python programs and using Python modules. To quit this help utility and return to the interpreter, just type "quit".
To get a list of available modules, keywords, or topics, type "modules", "keywords", or "topics". Each module also comes with a one-line summary of what it does; to list the modules whose summaries contain a given word such as "spam", type "modules spam".
help> quit() no Python documentation found for 'quit()'
help> quit
You are now leaving help and returning to the Python interpreter. If you want to ask for help on a particular object directly from the interpreter, you can type "help(object)". Executing "help('string')" has the same effect as typing a particular string at the help> prompt.
quit 'Use Ctrl-Z plus Return to exit.' quit() Traceback (most recent call last): File "", line 1, in ? TypeError: 'str' object is not callable help(quit) no Python documentation found for 'Use Ctrl-Z plus Return to exit.' help("quit") Help on str object:
quit = class str(basestring) | str(object) -> string | | Return a nice string representation of the object. | If the argument is a string, the return value is the same object. | | Method resolution order: | str | basestring | object | | Methods defined here: | | add(...) | x.add(y) <==> x+y | | contains(...) | x.contains(y) <==> y in x | | eq(...) | x.eq(y) <==> x==y | | ge(...) | x.ge(y) <==> x>=y | | getattribute(...) | x.getattribute('name') <==> x.name | | getitem(...) | x.getitem(y) <==> x[y] | | getnewargs(...) | | getslice(...) | x.getslice(i, j) <==> x[i:j] | | Use of negative indices is not supported. | | gt(...) | x.gt(y) <==> x>y | | hash(...) | x.hash() <==> hash(x) | | le(...) | x.le(y) <==> x<=y | | __len__(...) | x.__len__() <==> len(x) | | lt(...) | x.lt(y) <==> x<y | | __mod__(...) | x.__mod__(y) <==> x%y | | mul(...) | x.mul(n) <==> xn | | ne(...) | x.ne(y) <==> x!=y | | repr(...) | x.repr() <==> repr(x) | | rmod(...) | x.rmod(y) <==> y%x | | rmul(...) | x.rmul(n) <==> nx | | str(...) -- More --
(and so on)
- Previous message: [Python-Dev] a quit that actually quits
- Next message: [Python-Dev] a quit that actually quits
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]