我希望看到一份文件...... [英] a document I would like to see...

查看:59
本文介绍了我希望看到一份文件......的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一个文本文件,包含

标准库中所有内容的一行摘要,包括模块名称。


然后我可以这样做:


grep dircmp #dircmp是什么模块?

grep sort#我的排序选项是什么?

grep print | grep -v xmllib#什么可以打印,忽略xmllib?


这样的东西存在吗?


很多TIA!

Mark


-

Mark Harrison

皮克斯动画工作室

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

推荐答案



Mark>一个文本文件,其中包含

Mark>中所有内容的一行摘要。标准库,包括模块名称。


Mark>然后我可以做这样的事情:


Mark> grep dircmp #dircmp是什么模块?

Mark> grep sort#我的排序选项是什么?

Mark> grep print | grep -v xmllib#什么可以打印,忽略xmllib?


Mark>任何这样的事情都存在吗?


你在格式方面有什么想法?请注意,大多数模块和软件包

足够复杂,试图将整个api卡入一行

摘要将提供相当无意义的输出。 Bop转到你的

本地HTML lib文档并尝试


egrep -l dircmp * .html


在2.2.3系统上,我看到


contents.html

dircmp-objects.html

genindex.html

index.html

lib.html

module-filecmp.html

module-popen2.html

obsolete-modules.html


限制为* module * .html有帮助。 "排序"更糟糕的是:


%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

我意识到这不是你所要求的。如果你能提供一个更详细的例子,或许有人可以提出更多的目标

建议。


Skip


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


嗯,pydoc.org有一个搜索功能,但它已被暂时

禁用了很长一段时间了。


2004年7月29日星期四06:02:00 PM +0000,Mark Harrison写道:
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:
包含一个文本文件标准库中所有内容的一行摘要,包括模块名称。

然后我可以做这样的事情:

grep dircmp #dircmp是什么模块在?
grep sort#我的排序选项是什么?
grep print | grep -v xmllib#什么可以打印,忽略xmllib?

任何这样的东西都存在吗?

很多TIA!
Mark

- -
Mark Harrison
皮克斯动画工作室
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





Phil>那么,pydoc.org有一个搜索功能,但它已经暂时

Phil>禁用"很长一段时间了。


补丁很高兴地接受了。 < 0.5 wink>


Skip

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


这篇关于我希望看到一份文件......的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆