On 5/4/07, Sandro Dentella <[EMAIL PROTECTED]> wrote:
Ciao,

  normalmente uso i manuali python da web ma avevo visto che esiste un modo
  per leggerli via riga di comando alla maniera di un normale 'man' (non con
  links o simili) ed ora mi sfugge.

  Qualcuno me la sa ricordare?
  grazie

Dunque, penso tu ti riferisca a pydoc

Prova a digitare cose tipo "pydoc subprocess" e dovrebbe aprirti la
documentazione di subprocess con less

[EMAIL PROTECTED] ~ % pydoc --help

      [11:04]
pydoc - the Python documentation tool

pydoc <name> ...
   Show text documentation on something.  <name> may be the name of a
   Python keyword, topic, function, module, or package, or a dotted
   reference to a class or function within a module or module in a
   package.  If <name> contains a '/', it is used as the path to a
   Python source file to document. If name is 'keywords', 'topics',
   or 'modules', a listing of these things is displayed.

pydoc -k <keyword>
   Search for a keyword in the synopsis lines of all available modules.

pydoc -p <port>
   Start an HTTP server on the given port on the local machine.

pydoc -g
   Pop up a graphical interface for finding and serving documentation.

pydoc -w <name> ...
   Write out the HTML documentation for a module to a file in the current
   directory.  If <name> contains a '/', it is treated as a filename; if
   it names a directory, documentation is written for all the contents.


Personalmente uso molto poco pydoc perché ho sempre una shell IPython
aperta e da quella guardo la documentazione (o dal web appunto)


--
Lawrence, oluyede.org - neropercaso.it
"It is difficult to get a man to understand
something when his salary depends on not
understanding it" - Upton Sinclair
_______________________________________________
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python

Rispondere a