Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

pydoc2.5(1) [osx man page]

PYDOC(1)						    BSD General Commands Manual 						  PYDOC(1)

NAME
pydoc -- the Python documentation tool SYNOPSIS
pydoc name pydoc -k keyword pydoc -p port pydoc -g pydoc -w module ... pydoc --help DESCRIPTION
pydoc shows text documentation on something related to python(1). The name argument 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. OPTIONS
-k keyword Search for a keyword in the synopsis lines of all available modules. -p port Start an HTTP server on the given port on the local machine. -g Pop up a graphical interface for finding and serving documentation. -w module ... Write out the HTML documentation for a module to a file in the current directory. If module contains a '/', it is treated as a filename; if it names a directory, documentation is written for all the contents. --help Prints out a help message. AUTHOR
Moshe Zadka, based on "pydoc --help" SEE ALSO
python(1) Dec 19, 2003

Check Out this Related Man Page

PYDOC(1)						    BSD General Commands Manual 						  PYDOC(1)

NAME
pydoc -- the Python documentation tool SYNOPSIS
pydoc name pydoc -k keyword pydoc -p port pydoc -g pydoc -w module ... pydoc --help DESCRIPTION
pydoc shows text documentation on something related to python(1). The name argument 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. OPTIONS
-k keyword Search for a keyword in the synopsis lines of all available modules. -p port Start an HTTP server on the given port on the local machine. -g Pop up a graphical interface for finding and serving documentation. -w module ... Write out the HTML documentation for a module to a file in the current directory. If module contains a '/', it is treated as a filename; if it names a directory, documentation is written for all the contents. --help Prints out a help message. AUTHOR
Moshe Zadka, based on "pydoc --help" SEE ALSO
python(1) Dec 19, 2003
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Scanning file backwards

Is there any way to look for a directory path that is listed any number of lines *before* a keyword in an error message? I have a script that is trying to process different files that are always down a certain portion of a path, and if there is an error, then says there is an error, contact... (2 Replies)
Discussion started by: tekster757
2 Replies

2. Web Development

Why Python is not so popular?

Hello, Do you have any suggestions? I want to know your opinions why Python is not so popular in web env. Thank you! (6 Replies)
Discussion started by: gstoychev
6 Replies

3. UNIX for Advanced & Expert Users

Linux, Python and Graphics

Hi Experts, I am designing a web page in Python that shows a graphical representation of the load on the various computing nodes of the Linux server. I am currently using ReportLab to generate the charts and graphs, but I seem to have some problems with that. I've reviewed ChartDirector. It... (2 Replies)
Discussion started by: davidfrank
2 Replies

4. Shell Programming and Scripting

Delete the lines before the first instance of the keyword

I have my data something like this. I want to delete all the lines before the frist instance of the key word 'ravi kumar' aaa bbbbbb cccccc ddddd eeeee 1234 ravi kumar aaaaaa vvvvvvv 5678 ravi kumar rrrrrrr mmmmmmm I want the output as follows. 1234 ravi kumar aaaaaa... (8 Replies)
Discussion started by: rdhanek
8 Replies

5. Shell Programming and Scripting

Extract lines of text based on a specific keyword

I regularly extract lines of text from files based on the presence of a particular keyword; I place the extracted lines into another text file. This takes about 2 hours to complete using the "sort" command then Kate's find & highlight facility. I've been reading the forum & googling and can find... (4 Replies)
Discussion started by: DionDeVille
4 Replies

6. Programming

Help with Python. Please and thanks.

Hi everybody, I've been experimenting with Python lately and for the most part it's been a smooth ride. I have one little problem that maybe one of you can help me with. PROBLEM: I have list with one word per line. EXAMPLE apples oranges pears grapes etc... I also have a shell... (2 Replies)
Discussion started by: o0110o
2 Replies

7. Shell Programming and Scripting

copy range of lines in a file based on keywords from another file

Hi Guys, I have the following problem. I have original file (org.txt) that looks like this module v_1(.....) //arbitrary number of text lines endmodule module v_2(....) //arbitrary number of text lines endmodule module v_3(...) //arbitrary number of text lines endmodule module... (6 Replies)
Discussion started by: kaaliakahn
6 Replies

8. Shell Programming and Scripting

finding first >

I want to erase some php code between a <? and a ?> in HTML containing a keyword, the problem is it finds the last > and wipes out everything before it how do i specify for it to stop searching after the first >? perl -i -p0e 's/<\?php.*keyword.*\?>//s' there's many lines of php code... (2 Replies)
Discussion started by: vanessafan99
2 Replies

9. Programming

Printing same strIng many times

In python how we need to print a same string many times without using loop. I cane across something like * operator for this . How we Can use this in a print statement ? I am using python 3.x Please help me (7 Replies)
Discussion started by: pandeesh
7 Replies

10. UNIX for Dummies Questions & Answers

Pop up messages on executing a keyword

Hey there, I have the below situation, hope you guys should help me. When i type a keyword on command line, the console should return me some information that i already have. Say, i give the keyword MERGE, the command line in return should give me "Do this if you need trivial merge OR Do that... (1 Reply)
Discussion started by: nmattam
1 Replies

11. Shell Programming and Scripting

extract lines from text after keyword

I have a text and I want to extract the 4 lines following a keyword! For example if I have this text and the keyword is AAA hello helloo AAA one two three four helloooo hellooo I want the output to be one two three four (7 Replies)
Discussion started by: stekanius
7 Replies

12. Programming

Integration of PyQt/PySide issue

There is an application (Salome) that includes interpretor Python and Qt and PyQt libs. Also there is a module for this application written on Python. Specially for this module we need to include additional version of PyQt or PySide that will be distributed with our module. It doesn’t really... (2 Replies)
Discussion started by: itkalenko
2 Replies

13. Programming

Web browser module in python

Hi, I am trying to multiple urls in multiple tabs within a browser window. I am using webbrowser module in python: My code: import webbrowser li = for url in li: webbrowser.open_new_tab(url) This code works fine, if the browser is already opened. If the browser is not started... (5 Replies)
Discussion started by: pandeesh
5 Replies

14. Programming

Python p.ravel question

Hi, I'm trying to decipher some python code located here: Minimal character-level language model with a Vanilla Recurrent Neural Network, in Python/numpy * GitHub I'm unable to understand what line 75 is doing? ix = np.random.choice(range(vocab_size), p=p.ravel()) Anyone know what this... (2 Replies)
Discussion started by: 1Brajesh
2 Replies

15. Programming

Casio FX-CG50 Scientific Calculator and Python

Well, I think I must have this for Christmas! Python on the Casio FX-CG50 with Data Acquisition YT: CASIO fx-CG50 E-CON4 Movie YT: Update Your CG50 Operating System. Now Includes Python! (OS update) This is a great deal on Amazon! See YT Code Tag Video (9 Replies)
Discussion started by: Neo
9 Replies