473,395 Members | 1,530 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

a document I would like to see...

A text file containing one-line summaries of everything in
the standard library, including module name.

Then I could do things like this:

grep dircmp # what module is dircmp in?
grep sort # what are my options for sorting?
grep print | grep -v xmllib # what can print, ignoring xmllib?

Any such thing exist?

Many TIA!
Mark

--
Mark Harrison
Pixar Animation Studios
Jul 18 '05 #1
10 2287

Mark> A text file containing one-line summaries of everything in the
Mark> standard library, including module name.

Mark> Then I could do things like this:

Mark> grep dircmp # what module is dircmp in?
Mark> grep sort # what are my options for sorting?
Mark> grep print | grep -v xmllib # what can print, ignoring xmllib?

Mark> Any such thing exist?

What do you have in mind format-wise? Note that most modules and packages
are sufficiently complex that trying to jam the entire api into a one-line
summary is going to provide fairly meaningless output. Bop on over to your
local HTML lib docs and try

egrep -l dircmp *.html

On a 2.2.3 system I see

contents.html
dircmp-objects.html
genindex.html
index.html
lib.html
module-filecmp.html
module-popen2.html
obsolete-modules.html

Restricting to *module*.html helps. "sort" is even worse:

% egrep -l sort *module*.html
module-bisect.html
module-difflib.html
module-email.Message.html
module-formatter.html
module-gdbm.html
module-locale.html
module-profile.html
module-smtplib.html
module-Tix.html
module-xml.dom.html
module-xmllib.html

I realize that's not quite what you were asking. If you could provide a
more detailed example perhaps someone can make some more on-target
suggestions.

Skip

Jul 18 '05 #2
Well, pydoc.org had a search feature, but it's been "temporarily
disabled" for a long time now.

On Thu, Jul 29, 2004 at 06:02:00PM +0000, Mark Harrison wrote:
A text file containing one-line summaries of everything in
the standard library, including module name.

Then I could do things like this:

grep dircmp # what module is dircmp in?
grep sort # what are my options for sorting?
grep print | grep -v xmllib # what can print, ignoring xmllib?

Any such thing exist?

Many TIA!
Mark

--
Mark Harrison
Pixar Animation Studios

Jul 18 '05 #3

Phil> Well, pydoc.org had a search feature, but it's been "temporarily
Phil> disabled" for a long time now.

Patches cheerfully accepted. <0.5 wink>

Skip
Jul 18 '05 #4
Mark Harrison wrote:
A text file containing one-line summaries of everything in
the standard library, including module name.

Then I could do things like this:

grep dircmp # what module is dircmp in?
grep sort # what are my options for sorting?
grep print | grep -v xmllib # what can print, ignoring xmllib?

Any such thing exist?

Many TIA!
Mark

are you aware of http://rgruet.free.fr/PQR2.3.html ?
Jul 18 '05 #5
On Thu, 29 Jul 2004 18:02:00 +0000, Mark Harrison wrote:
grep dircmp # what module is dircmp in?


http://www.python.org/doc/2.3.4/lib/....html#letter-d

could help, though it isn't 100% of what you ask for, it leads to it.
Jul 18 '05 #6
Use CHM docs (available with the windows installer).
You still wouldn't be able to grep, but you would have
a sorted index of headings, as well as full-text search
capability.

I use xchm (xchm.sourceforge.net) as my CHM reader on Linux.
There is also GnoCHM (gnochm.sourceforge.net) which is written
in Python itself, but I've had stability problems with that one.

-param

On Thu, 29 Jul 2004 18:02:00 +0000, Mark Harrison wrote:
A text file containing one-line summaries of everything in
the standard library, including module name.

Then I could do things like this:

grep dircmp # what module is dircmp in?
grep sort # what are my options for sorting?
grep print | grep -v xmllib # what can print, ignoring xmllib?

Any such thing exist?

Many TIA!
Mark


Jul 18 '05 #7
Skip Montanaro <sk**@pobox.com> wrote:

Mark> A text file containing one-line summaries of everything in the
Mark> standard library, including module name.

Mark> Then I could do things like this:

Mark> grep dircmp # what module is dircmp in?
Mark> grep sort # what are my options for sorting?
Mark> grep print | grep -v xmllib # what can print, ignoring xmllib?

Mark> Any such thing exist?

What do you have in mind format-wise?
Ideally it would be something like this:

filecmp cmp(f1, f2[, shallow[, use_statcache]])
filecmp cmpfiles(dir1, dir2, common[, shallow[, use_statcache]])
filecmp class dircmp(a, b[, ignore[, hide]])
popen2 popen2(cmd[, bufsize[, mode]])
popen2 popen3(cmd[, bufsize[, mode]]
popen2 popen4(cmd[, bufsize[, mode]])
popen2 class Popen3(cmd[, capturestderr[, bufsize]])
popen2 class Popen4(cmd[, bufsize])
Note that most modules and packages
are sufficiently complex that trying to jam the entire api into a one-line
summary is going to provide fairly meaningless output. Bop on over to your
local HTML lib docs and try

egrep -l dircmp *.html
Right. Most of these hits (all except for one, in fact) are hits
that I would like to avoid, just receiving the dircmp line above.
I realize that's not quite what you were asking. If you could provide a
more detailed example perhaps someone can make some more on-target
suggestions.


Basically, I would like to make quick queries like this:

"What functions in the library do sorting?"
"What module is sleep() in?"
"What functions are in module re?"
"What are the parameters to dircmp?"

I usually just search lib.pdf, but this has a couple of disadvantages:

- opening the pdf takes a small amount of time
- skipping over all the places "sleep" occurs in text
- when I find sleep() on pg 246, I have to visually
scan up to page 244 to see that the section header
for "time".
- I'm not sure if some other module has something
name *sleep* that might also be handy.
- I don't see sleep() "in context"

Overall the python docs are excellent. I guess what I'm searching
for is a very targeted index of modules and functions that can
be searched by the usual command line text tools.

Thanks,
Mark

--
Mark Harrison
Pixar Animation Studios
Jul 18 '05 #8
Simon Dahlbacka <sd***************@abo.fi> wrote:
are you aware of http://rgruet.free.fr/PQR2.3.html ?


I wasn't... thanks for the pointer!
Jul 18 '05 #9
On Thu, Jul 29, 2004 at 01:47:19PM -0500, Skip Montanaro wrote:

Phil> Well, pydoc.org had a search feature, but it's been "temporarily
Phil> disabled" for a long time now.

Patches cheerfully accepted. <0.5 wink>


I'd be happy to, were can I find the search.cgi code?

--
David Stanek (roninds)
ds*****@dstanek.com
http://roninds.homelinux.net

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBCk/NkuI+AGJy7a8RAqleAJ41LE0JaO/Q6CgkidYsS73cuIS6CwCfe3zp
5Az4AB5kb7d/pHRwaNA66Og=
=6Bug
-----END PGP SIGNATURE-----

Jul 18 '05 #10

Phil> Well, pydoc.org had a search feature, but it's been "temporarily
Phil> disabled" for a long time now.

Patches cheerfully accepted. <0.5 wink>


David> I'd be happy to, were can I find the search.cgi code?

Ah, mea culpa. I read too fast and missed the ".org" and only saw "pydoc".
"pydoc.org" is managed by Ka-Ping Yee, the pydoc module author. That the
search function is disabled probably has little, if anything, to do with
functional breakage and more to do with lack of necessary resources to run
the service (personal time to manage the service, cpu power, bandwidth,
etc).

Skip
Jul 18 '05 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Aaron | last post by:
Hi, I've seen javascript code where a constructor function is passed an argument "document", and inside the function itself the assignment "this.document = document;" is made. This is the code...
12
by: Charles Law | last post by:
Hi guys A bit of curve ball here ... I have a document (Word) that contains a series of instructions in sections and subsections (and sub-subsections). There are 350 pages of them. I need to...
1
by: lawrence | last post by:
This PHP function prints out a bunch of Javascript (as you can see). This is all part of the open source weblog software of PDS (www.publicdomainsoftware.org). We had this javascript stuff...
12
by: Kepler | last post by:
How do you get the height of the client browser in IE? Both document.body.clientHeight and document.body.offsetHeight return the height of the document. If the page is long and there's a vertical...
13
by: Stumped and Confused | last post by:
Hello, I really, really, need some help here - I've spent hours trying to find a solution. In a nutshell, I'm trying to have a user input a value in form's textfield. The value should then be...
4
by: jiing.deng | last post by:
I want to transfer a value "re1" to ldapDeleteUserExec.php The "alert(document.ha)" appears a dialog and shows "undefined." The "alert(document)" shows "object" But there seems some problem:...
4
by: Prowler | last post by:
In the application we are currently building, we need to write positioning code on-the-fly, based upon the screen offset of the element in the AS/400 application which drives the Web app. The 400,...
136
by: Matt Kruse | last post by:
http://www.JavascriptToolbox.com/bestpractices/ I started writing this up as a guide for some people who were looking for general tips on how to do things the 'right way' with Javascript. Their...
4
by: Otis Hunter | last post by:
I have been given an Access Database which contains a table that has an OLE object field that contains a Word document. That table contains hundreds of records. I would like to find out how I can...
6
by: Bob Alston | last post by:
I am looking for others who have built systems to scan documents, index them and then make them accessible from an Access database. My environment is a nonprofit with about 20-25 case workers who...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.