File: help.help

package info (click to toggle)
python-scipy 0.5.2-0.1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 33,888 kB
  • ctags: 44,231
  • sloc: ansic: 156,256; cpp: 90,347; python: 89,604; fortran: 73,083; sh: 1,318; objc: 424; makefile: 342
file content (45 lines) | stat: -rw-r--r-- 2,003 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Copyright (c) 1996, 1997, The Regents of the University of California.
# All rights reserved.  See Legal.htm for full text and disclaimer.

help:
  This is an experimental help facility to get something up and working
  fairly quickly.  It uses your PAGER or the "more" program to display
  simple help files.

  ----------
  The help function can be called in three slightly different ways:

    1) To display the help file from the beginning for a module named
       "foo", try: ``help("foo.")'' (Note the dot).

    2) To display a particular feature "bar" that you know is in a module
       named "foo", type ``help("foo.bar")''.

    3) To search all possible help files for the feature named "bar",
       type ``help("bar")''.
    
    Calling help() with no arguments will normally access this help file.
  
  ----------
  The help function itself is in a python module named "help.py",
  of course. You can import it in the usual fashion, by saying
  ``import help'', in which case you would have to access it by typing
  ``help.help("bar")''. You might prefer to get it by saying ``from help
  import help'', which will save some typing.

  ----------
  It's easy to make up your own help file. If your python module is
  named "piffle", create a file "piffle.help", and put it somewhere that
  python can find it, on your PYTHONPATH, or in the default sys.path.

  A help file is just a series of "features", which are the keywords
  that you want to be able to reference with help(), each followed by
  free-form text describing the properties of that feature. Each feature
  keyword starts in column 1 and ends with a colon (:). It usually makes
  sense to indent all other text in the file so that the features stand
  out.

  When you type ``help("piffle.snort")'', the help function looks up the
  file "piffle.help", then starts your pager program with the search
  pattern ``+/^snort:''.  (Refer to the manual page for "more" if you're
  interested in learning about this option.)