PYDOC2.7(1) General Commands Manual PYDOC2.7(1)NAME
pydoc2.7 - the Python documentation tool
SYNOPSIS
pydoc2.7 name
pydoc2.7 -k keyword
pydoc2.7 -p port
pydoc2.7 -g
pydoc2.7 -w module [...]
DESCRIPTION
pydoc2.7 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.
pydoc2.7 -k keyword Search for a keyword in the synopsis lines of all available modules.
pydoc2.7 -p port Start an HTTP server on the given port on the local machine.
pydoc2.7 -g Pop up a graphical interface for finding and serving documentation.
pydoc2.7 -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.
AUTHOR
Moshe Zadka, based on "pydoc --help"
PYDOC2.7(1)
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
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)
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)
Hi,
I'm a great scripter, but just learning programming (using Python).
I'm very much a newbie at this, so please be patient as I'm sure these will seem so basic a questions and may seem stupid to those experienced.
I'm reading a python book right now that has me thinking about variables.... (2 Replies)
Hi
i work under CentOS 5.5, Qt 4.7, Python 2.4.
i need to send data from C++ to Python.
i write a code but it's not work, i have an Inferior System error on it.
PyObject* objArg = Py_BuildValue("(z)", cKeyNum);
PyObject* objFunc = (PyObject*)Init;
pValue = PyEval_CallObject(objFunc, objArg);... (12 Replies)
Hello Unix gurus!
I'm a unix newbie. Can I use sed to replace a keyword in an xml file and convert this keyword with an output of a unix cat command?
for example: <test>keyword</test>
and temp.txt = hello!
I would like to replace "keyword" with the output of "cat temp.txt".
I think... (6 Replies)
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)
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)
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)
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)
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)
Hello,
I have a requirement to ignore few lines in a file before keyword FILEHEADER . As soon as there is keyword FILEHEADER is identified in file , it will form another file with data from FILEHEADER to whatever in file after FILEHEADER.
I wrote
filename=$1
awk... (4 Replies)
I am planning on taking a class in Python. My choices are 2.5 or 3.0. Which version should I choose? I am getting the impression they are two separate paths.
thanks. (5 Replies)
I was trying to do any keyword search against all files in a particular folder, and interested in finding, an particular "keyword" whether present, if it present I need to export that file to an new folder. How to do it , via simple script ? (3 Replies)
I am back at it with Python and have run into a little stupid hurdle. My goal is to simply search for the GeoIP.dat database and add the path to a couple of variables. So for example:
geopath=os.system('find /usr/share -iname GeoIP.dat')
geobase = pygeoip.GeoIP(geopath, pygeoip.MEMORY_CACHE)... (3 Replies)
Not sure if this should be in the Programming forum so placed here for safety...
I used to really love Python, but as it has evolved from V1.4.0, (for the classic AMIGA in my case), to its present V3.4.? incarnation has it become less user friendly for newbie and amateur coders?
I have... (6 Replies)