config root man

Current Path : /usr/local/lib/python2.5/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //usr/local/lib/python2.5/pydoc.pyc

hRc@sdZdZdZdZdZddkZddkZddkZddkZddk	Z	ddk
Z
ddkZddkZddk
lZddklZlZlZlZlZlZlZlZydd	klZWn)ej
od
efdYZnXdZd
ZdZdZdZ dZ!dZ"ei#dei$Z%dZ&dZ'dZ(dZ)e*dZ+dZ,dZ-dZ.hdZ/de0fdYZ1dZ2d hd!Z3d"fd#YZ4d$efd%YZ5d&e4fd'YZ6d(efd)YZ7d*e4fd+YZ8d,a9d-Z:d.Z;d/Z<d0Z=d1Z>d2Z?d3Z@d d4ZAe8ZBe6ZCd d5ZDd6d d7ZEd d8ZFd9e*d:ZGd;fd<YZHeHeiIeiJZKd=fd>YZLd?fd@YZMdAZNe*e*dBZOdCZPdDZQdEZReSdFjoeRndS(GsGenerate Python documentation in HTML or text for interactive use.

In the Python interpreter, do "from pydoc import help" to provide online
help.  Calling help(thing) on a Python object documents the object.

Or, at the shell command line outside of Python:

Run "pydoc <name>" to show documentation on something.  <name> may be
the name of a function, module, package, or a dotted reference to a
class or function within a module or module in a package.  If the
argument contains a path segment delimiter (e.g. slash on Unix,
backslash on Windows) it is treated as the path to a Python source file.

Run "pydoc -k <keyword>" to search for a keyword in the synopsis lines
of all available modules.

Run "pydoc -p <port>" to start an HTTP server on a given port on the
local machine to generate documentation web pages.

For platforms without a command line, "pydoc -g" starts the HTTP server
and also pops up a little window for controlling it.

Run "pydoc -w <name>" to write out the HTML documentation for a module
to a file named "<name>.html".

Module docs for core modules are assumed to be in

    http://www.python.org/doc/<version>/lib/

This can be overridden by setting the PYTHONDOCS environment variable
to a different URL or to a local directory containing the Library
Reference Manual pages.
sKa-Ping Yee <ping@lfw.org>s26 February 2001s$Revision: 67693 $sGuido van Rossum, for an excellent programming language.
Tommy Burnette, the original creator of manpy.
Paul Prescod, for all his work on onlinehelp.
Richard Chamberlain, for the first implementation of textdoc.
iN(tRepr(t
expandtabstfindtjointlowertsplittstriptrfindtrstrip(tdequeR	cBseZdZRS(cCs
|idS(Ni(tpop(tself((s!/usr/local/lib/python2.5/pydoc.pytpopleft?s(t__name__t
__module__R(((s!/usr/local/lib/python2.5/pydoc.pyR	>scCsg}g}xztiD]o}tii|pd}tii|}||jo1tii|o|i||i|qqW|S(sAConvert sys.path into a list of absolute, existing, unique paths.t.(tsystpathtostabspathtnormcasetisdirtappend(tdirstnormdirstdirtnormdir((s!/usr/local/lib/python2.5/pydoc.pytpathdirsDs
 
cCsFti|p
ti|}|otiddt|pdS(s-Get the doc string or comments for an object.s^ *
t(tinspecttgetdoctgetcommentstretsubR(tobjecttresult((s!/usr/local/lib/python2.5/pydoc.pyRPscCstt|d}t|djo|ddfSnEt|djo1t|do|dt|ddfSndt|dfS(s>Split a doc string into a synopsis line (if any) and the rest.s
iiRi(RRtlenRR(tdoctlines((s!/usr/local/lib/python2.5/pydoc.pytsplitdocUs%cCs2|i}|i|jo|id|}n|S(s@Get a class name and qualify it with a module name if necessary.R(R
R(R"tmodnametname((s!/usr/local/lib/python2.5/pydoc.pyt	classname^s	cCs^ti|pMti|p=ti|p-ti|pti|p
ti|S(s>Check if an object is of a type that probably means it's data.(Rtismoduletisclasst	isroutinetisframetistracebacktiscode(R"((s!/usr/local/lib/python2.5/pydoc.pytisdataes  cGs=x6|o.tt||d|d}|d}qW|S(s/Do a series of global replacements on a string.iii(RR(ttexttpairs((s!/usr/local/lib/python2.5/pydoc.pytreplaceks
 cCsgt||joPtd|dd}td|d|}|| d|t||Sn|S(sCOmit part of a string if needed to make it fit in a maximum length.iiis...(R$tmax(R2tmaxlentpretpost((s!/usr/local/lib/python2.5/pydoc.pytcramrs
"s at 0x[0-9a-f]{6,16}(>+)$cCs.tittotid|Sn|S(s>Remove the hexadecimal id from a Python object representation.s\1(t_re_stripidtsearchtreprt	ExceptionR!(R2((s!/usr/local/lib/python2.5/pydoc.pytstripid{scCsti|p
ti|S(N(Rtismethodtismethoddescriptor(tobj((s!/usr/local/lib/python2.5/pydoc.pyt_is_some_methodscCsh}x*ti|tD]\}}d||<qWx$|iD]}|it|q=Wx'|iD]}t||||<qgW|S(Ni(Rt
getmembersRBt	__bases__tupdatet
allmethodstkeystgetattr(tcltmethodstkeytvaluetbase((s!/usr/local/lib/python2.5/pydoc.pyRFs

cCsRg}g}x9|D]1}||o|i|q|i|qW||fS(sSplit sequence s via predicate, and return pair ([true], [false]).

    The return value is a 2-tuple of lists,
        ([x for x in s if predicate(x)],
         [x for x in s if not predicate(x)])
    (R(tst	predicatetyestnotx((s!/usr/local/lib/python2.5/pydoc.pyt_split_lists
cCsj|d
jodSn|id	o|id	od
Sn|dj	o||jSn|idSdS(s3Decide whether to show documentation on a variable.t__builtins__t__doc__t__file__t__path__RR
t	__slots__it__it_N(s__builtins__s__doc__s__file__s__path__s
__module__s__name__s	__slots__(t
startswithtendswithtNone(R)tall((s!/usr/local/lib/python2.5/pydoc.pytvisiblenames
 
cCsd}t|ti|S(sCWrap inspect.classify_class_attrs, with fixup for data descriptors.cSs<|\}}}}ti|o
d}n||||fS(Nsdata descriptor(Rtisdatadescriptor(t.0R)tkindtclsRL((s!/usr/local/lib/python2.5/pydoc.pytfixups
(tmapRtclassify_class_attrs(R"Rd((s!/usr/local/lib/python2.5/pydoc.pyRfs	cCsZtii|oCx@dD]4}tiitii|d|otSqqWntS(s3Guess whether a path refers to a package directory.s.pys.pycs.pyot__init__(s.pys.pycs.pyo(RRRtisfileRtTruetFalse(Rtext((s!/usr/local/lib/python2.5/pydoc.pyt	ispackages&cCs|i}x<|d djpt|o|i}|pPqqWt|}|d djo|d}n|d djos|d}|ddjo|d }nx*t|p|i}|pPqqWtt|dd	}nd}|S(
Nit#isr"""is"""is\i(treadlineRRR](tfiletlineR#((s!/usr/local/lib/python2.5/pydoc.pytsource_synopsiss*



cCsti|i}|i|d\}}||joti|}yt|}Wntj
odSnX|ogd|djoVy t	i
d|||d}WndSnX|ipdid}t
id=nt|}|i||f||<n|S(	s.Get the one-line summary out of a module file.itbit__temp__iRN(iN(Rtstattst_mtimetgetR]Rt
getmoduleinfotopentIOErrortimptload_moduleRUt
splitlinesRtmodulesRqtclose(tfilenametcachetmtimet
lastupdateR#tinfoRotmodule((s!/usr/local/lib/python2.5/pydoc.pytsynopsiss&
	 
tErrorDuringImportcBs eZdZdZdZRS(sEErrors that occurred while trying to import something to document it.cCs7|\}}}||_||_||_||_dS(N(RtexcRLttb(RRt.2RRLR((s!/usr/local/lib/python2.5/pydoc.pyRgs
			cCsC|i}t|tijo
|i}nd|i||ifS(Nsproblem in %s - %s: %s(Rttypettypest	ClassTypeR
RRL(RR((s!/usr/local/lib/python2.5/pydoc.pyt__str__s	
(R
RRURgR(((s!/usr/local/lib/python2.5/pydoc.pyRs	c
Csti}t|d}|it||jo
ti}n
ti}|iti	i
|}ti	i|\}}t|d}y%ti||||d|f}Wnt
|tinX|i|S(s<Import a Python source file or compiled file given its path.tr(Rzt	get_magicRxtreadR$tPY_COMPILEDt	PY_SOURCER~RRtbasenametsplitextR{RRtexc_info(RtmagicRoRbRR)RkR((s!/usr/local/lib/python2.5/pydoc.pyt
importfiles
	
%
ic
Csy|o|tijo|tijosg}tiD]%}|i|do||q8q8~}x4|g|D]!}ti|||<ti|=qtWqnt|}Wnti\}}	}
}|tijotti|i|qt|tjot|	i	|qt|t
jo1ttt
|	d ddgjodSqtt|tinXxHt|ddD]3}yt||}Wqtj
odSqXqW|S(sImport a module; handle errors; return None if the module isn't found.

    If the module *is* found but an exception occurs, it's wrapped in an
    ErrorDuringImport exception and reraised.  Unlike __import__, if a
    package path is specified, the module at the end of the path is returned,
    not the package at the beginning.  If the optional 'forceload' argument
    is 1, we reload the module from disk (unless it's a dynamic extension).RiRQRiN(RR}tbuiltin_module_namesR[t
__import__RRRVtSyntaxErrorRtImportErrorRRtstrR]RHtAttributeError(
Rt	forceloadRt_[1]tmtsubsRKRRRLRRtpart((s!/usr/local/lib/python2.5/pydoc.pyt
safeimports4<

)
tDoccBsCeZddZddZeZZZZZ	Z
dZRS(cGs||f|}ti|o|i|Snti|o|i|Snygti|o|i|Snti|o|i|Snti|o|i	|SnWnt
j
onXt|to|i
|Sn|i|S(s%Generate documentation for an object.(RtisgetsetdescriptortdocdatatismemberdescriptorR+t	docmoduleR,tdocclassR-t
docroutineRt
isinstancetpropertytdocpropertytdocother(RR"R)targs((s!/usr/local/lib/python2.5/pydoc.pytdocument:s"cGs7d|odt|t|if}t|dS(s+Raise an exception for unimplemented types.s.don't know how to document object%s of type %st N(R<RR
t	TypeError(RR"R)Rtmessage((s!/usr/local/lib/python2.5/pydoc.pytfailLs'cCsDyti|}Wntj
o
d}nXdidtid D}tiidd|}ti	iti
ddtid	d!}t|t
to|idjp0|i|os|iti	i|doSd|i}|idod|id|f}q@ti	i||}nd}|S(s*Return the location of module docs or Nones
(built-in)Rcssx|]}t|VqWdS(N(R(Ratv((s!/usr/local/lib/python2.5/pydoc.pys	<genexpr>\s	it
PYTHONDOCSs http://www.python.org/doc/%s/libtlibtpythoniterrnot
exceptionstgcRztmarshaltposixtsignalRtthreadt	zipimports
site-packagessmodule-%s.htmlshttp://s%s/%st/(
serrnos
exceptionsRsimpsmarshalsposixssignalssysRs	zipimportN(Rt
getabsfileRRRtversion_infoRtenvironRvRtexec_prefixtversionRRR
R[RR](RR"RoRtdocloctbasedirthtmlfile((s!/usr/local/lib/python2.5/pydoc.pyt	getdoclocTs* 

 
N(R
RR]RRRRRRRRR(((s!/usr/local/lib/python2.5/pydoc.pyR9stHTMLReprcBsPeZdZdZdZdZdZdZeZdZ	eZ
RS(sBClass for safely making an HTML representation of a Python object.cCs:ti|d|_|_d|_d|_|_dS(Nii
id(RRgtmaxlisttmaxtupletmaxdictt	maxstringtmaxother(R((s!/usr/local/lib/python2.5/pydoc.pyRgts
	cCst|ddddddS(Nt&s&amp;t<s&lt;t>s&gt;(R4(RR2((s!/usr/local/lib/python2.5/pydoc.pytescapezscCsti||S(N(RR<(RR"((s!/usr/local/lib/python2.5/pydoc.pyR<}scCstt|doPdttt|id}t||ot||||Sqfn|ittt	||i
S(NR
trepr_RZ(thasattrRRRR
RHRR9R>R<R(RRRtlevelt
methodname((s!/usr/local/lib/python2.5/pydoc.pytrepr1s
"cCst||i}t|}d|jo>dt|ddjo%d|d|i||dSntidd|i|S(Ns\s\\RRis-((\\[\\abfnrtv\'"]|\\[0-9]..|\\x..|\\u....)+)s<font color="#c040c0">\1</font>(R9RR<R4RR R!(RRRRttestttestrepr((s!/usr/local/lib/python2.5/pydoc.pytrepr_strings&%	cCsNy)|ittt||iSWn|id|iiSnXdS(Ns
<%s instance>(RR9R>R<Rt	__class__R
(RRRR((s!/usr/local/lib/python2.5/pydoc.pyt
repr_instances)(R
RRURgRR<RRtrepr_strRtrepr_unicode(((s!/usr/local/lib/python2.5/pydoc.pyRrs						tHTMLDoccBsOeZdZeZeiZeiZdZddZdddddZ
dZdZd	d
Z
dZdZd
ZdZdZdhhhdZddZdddZddhhdZdZddhhhddZdZddddZdddZddddZddZRS(s'Formatter class for HTML documentation.cCsd||fS(sFormat an HTML page.s
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: %s</title>
</head><body bgcolor="#f0f0f8">
%s
</body></html>((Rttitletcontents((s!/usr/local/lib/python2.5/pydoc.pytpagesRcCsd|||||pdfS(sFormat a page heading.s'
<table width="100%%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="%s">
<td valign=bottom>&nbsp;<br>
<font color="%s" face="helvetica, arial">&nbsp;<br>%s</font></td
><td align=right valign=bottom
><font color="%s" face="helvetica, arial">%s</font></td></tr></table>
    s&nbsp;((RRtfgcoltbgcoltextras((s!/usr/local/lib/python2.5/pydoc.pytheadings	is&nbsp;c	
Cs~|djodd|d}nd|||f}	|o|	d||||f}	n|	d|||f}	|	d|S(	s Format a section with a heading.s<tt>s&nbsp;s</tt>s<p>
<table width="100%%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="%s">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="%s" face="helvetica, arial">%s</font></td></tr>
    sR
<tr bgcolor="%s"><td rowspan=2>%s</td>
<td colspan=2>%s</td></tr>
<tr><td>%s</td>s(
<tr><td bgcolor="%s">%s</td><td>%s</td>s'
<td width="100%%">%s</td></tr></table>N(R](
RRRRRtwidthtpreludet
marginaliatgapR#((s!/usr/local/lib/python2.5/pydoc.pytsections
cGsd|}|i||S(s$Format a section with a big heading.s<big><strong>%s</strong></big>(R(RRR((s!/usr/local/lib/python2.5/pydoc.pyt
bigsections
c
Cs7|it|}t|dddddddd	S(s!Format literal preformatted text.s

s
 
Rs&nbsp;s
s<br>
(RRR4(RR2((s!/usr/local/lib/python2.5/pydoc.pyt	preformatsicCsd}t||d|}xt|D]w}|dd|}xRt|||||D]5}|t|jo||||d}q_q_W|d}q+Wd|S(s0Format a list of items into a multi-column list.Ris<td width="%d%%" valign=top>ids<br>
s</td>s7<table width="100%%" summary="list"><tr>%s</tr></table>(R$trange(RtlisttformattcolsR#trowstcolti((s!/usr/local/lib/python2.5/pydoc.pytmulticolumns
 cCsd|S(Ns<font color="#909090">%s</font>((RR2((s!/usr/local/lib/python2.5/pydoc.pytgreyscGs8x1|D])}||jod|||fSqqW|S(s:Make a link for an identifier, given name-to-URL mappings.s<a href="%s">%s</a>((RR)tdictstdict((s!/usr/local/lib/python2.5/pydoc.pytnamelinks

cCss|itii|i}}t||o7t|||jo!d|i|t||fSnt||S(sMake a link for a class.s<a href="%s.html#%s">%s</a>(R
RR}RvRRRHR*(RR"R(R)R((s!/usr/local/lib/python2.5/pydoc.pyt	classlinks
&cCsd|i|ifS(sMake a link for a module.s<a href="%s.html">%s</a>(R
(RR"((s!/usr/local/lib/python2.5/pydoc.pyt
modulelinkscCsx|\}}}}|o|i|Sn|od||f}nd|}|od|}n|}d||fS(s;Make a link for a module or package to display in an index.s
%s.%s.htmls%s.htmls"<strong>%s</strong>&nbsp;(package)s<a href="%s">%s</a>(R(Rt.1R)RRltshadowedturlR2((s!/usr/local/lib/python2.5/pydoc.pyt
modpkglinks
cCs|p|i}g}d}tid}xto|i||}	|	pPn|	i\}
}|i||||
!|	i\}}
}}}}|
o3||idd}|id||fn|o1dt	|}|id|||fn|o1dt	|}|id|||fnq|||d!d	jo#|i|i
||||n6|o|id
|n|i|i
|||}q.W|i|||t|dS(sMark up some plain text, given a context of symbols to look for.
        Each context dictionary maps object names to anchor names.isD\b((http|ftp)://\S+[\w/]|RFC[- ]?(\d+)|PEP[- ]?(\d+)|(self\.)?(\w+))t"s&quot;s<a href="%s">%s</a>s'http://www.rfc-editor.org/rfc/rfc%d.txts(http://www.python.org/peps/pep-%04d.htmlit(sself.<strong>%s</strong>R(RR tcompileRiR;tspanRtgroupsR4tintRR(RR2RtfuncstclassesRJtresultstheretpatterntmatchtstarttendR^tschemetrfctpeptselfdotR)R((s!/usr/local/lib/python2.5/pydoc.pytmarkup	s:!!#c
Csd}x|D]}t|td	jo|\}}|d}||i||}|o_||fjoOg}x'|D]}	|i|i|	|q|W|dt|dd}n|d}q
t|tgjo!|d|i|||}q
q
Wd|S(
sAProduce HTML for a class tree as given by inspect.getclasstree().Rs"<dt><font face="helvetica, arial">Rs, t)s

</font></dt>s
<dd>
%s</dd>
s
<dl>
%s</dl>
((RRRRt
formattree(
RttreeR(tparentR#tentrytctbasestparentsRM((s!/usr/local/lib/python2.5/pydoc.pyR/s$
c$%Gs|i}y
|i}Wntj
o
d}nXt|d}g}xJtt|dD]2}|idt||d d||fq^Wt||dd}	d|	}
yXt	i
|}|}tidjoddk
}
|
i|}nd||f}Wntj
o
d	}nXg}t|d
oft|i}|d d/jo(|ddjot|dd!}n|id|i|nt|do#|i|it|in|o|
dt|d}
n|i|}|dj	odt}nd}|i|
ddd||}t	i|t	i}gh}}xt	i|t	iD]w\}}|dj	pt	i|p||joAt||o-|i||fd|||<||<qqqWx|D]\}}x|iD]}|i|i}}ti i!|}||jo`|oYt||oIt"|||jo/||jo|d|||<||<qqqqWqWgh}}xt	i|t	i#D]\}}|dj	p&t	i$|pt	i||jo[t||oG|i||fd|||<t	i%|o||||<qvqzqqWg}xGt	i|t&D]3\}}t||o|i||fqqW|i't(||i)||}|od|}|d|}t|dog}x<t*i+|i,D](\} }}!|i|||!dfq7W|i-|i.||i/}"||i0ddd|"}n@|o8|i.||d }"||i0d!d"d|"}n|ot1d#|}#|i2t	i3|#d|g}"x6|D].\}}|"i|i4|||||q"W||i0d$dd%t|"}n|oeg}"x6|D].\}}|"i|i4|||||qW||i0d&dd't|"}n|o_g}"x-|D]%\}}|"i|i4||qW||i0d(dd)t|"d*}nt|d+o>|i't|i5|i)}"||i0d,dd|"}nt|d-o>|i't|i6|i)}"||i0d.dd|"}n|S(0s/Produce HTML documentation for a module object.Ris5<a href="%s.html"><font color="#ffffff">%s</font></a>is)<big><big><strong>%s</strong></big></big>twin32Ns<a href="file:%s">%s</a>s
(built-in)t__version__it$s
Revision: s
version %st__date__s (%s)s, s(<br><a href="%(docloc)s">Module Docs</a>Rs#ffffffs#7799ees<a href=".">index</a><br>Rms.html#s#-s<tt>%s</tt>s
<p>%s</p>
RWisPackage Contentss#aa55cccSs|\}}|i|S((R(RaRNRKRL((s!/usr/local/lib/python2.5/pydoc.pyt<lambda>stModuless#fffffcSs|\}}|S(((RaRKRL((s!/usr/local/lib/python2.5/pydoc.pyR!stClassess#ee77aat	Functionss#eeaa77tDatas#55aa55s<br>
t
__author__tAuthort__credits__tCreditss$Revision: (7R
t__all__RR]RRR$RRRRRtplatformt
nturl2pathtpathname2urlRRRRRRR RtlocalsRRCR+R,t	getmoduleR_RDRR}RvRHR-t	isbuiltint
isfunctionR1RRRtpkgutiltiter_modulesRWtsortRRRReRtgetclasstreeRR&R(($RR"R)tmodtignoredR^tpartstlinksRt
linkednametheadRRR,tfilelinkRRRR#R}R	tcdictRKRLRMR(RRtfdicttdataR%tmodpkgstimportertispkgRt	classlist((s!/usr/local/lib/python2.5/pydoc.pyRBs	
'
"#
	

"
$
.

&!
		!&	&		 		csi}|p|}i}g}	|	idd(fdY}
|
tti}t|djoPidx+|D]#}di|i	qWdnfd}
fd}fd	}t
d
t}hxg|D]_\}}}}d|d||<}t|}y||<WqMt
j
oqMXqMWxz|or|o|in|d
dt|fd\}}tijo
|}qn1jo
d}ndii	}|d7}y|iddWn#t
j
o|idnX|
d||d}|
d||d}|
d||d}|d||d}|d||d}|gjpt|}qWdi|	}	||jod ||f}nd!|||f}|oNg}x*|D]"}|ii|i	qW|d"t|d#}niti}|od$|}i|d%d&|	d'|S()s.Produce HTML documentation for a class object.tHorizontalRulecs eZdZfdZRS(cSs
d|_dS(Ni(tneedone(R((s!/usr/local/lib/python2.5/pydoc.pyRgscs%|iodnd|_dS(Ns<hr>
i(RE(R(tpush(s!/usr/local/lib/python2.5/pydoc.pytmaybes
(R
RRgRG((RF(s!/usr/local/lib/python2.5/pydoc.pyRDs	is&<dl><dt>Method resolution order:</dt>
s<dd>%s</dd>
s</dl>
c
st||\}}|omi|xV|D]J\}}}}it||dq7Wn|S(Ns
(RSRGRRH(tmsgtattrsROtokR)RbthomeclsRL(RtmdictthrRR"RFR	R6(s!/usr/local/lib/python2.5/pydoc.pytspills

csnt||\}}|oNi|x7|D]+\}}}}i||q7Wn|S(N(RSRGt_docdescriptor(RHRIRORJR)RbRKRL(RMRRFR6(s!/usr/local/lib/python2.5/pydoc.pytspilldescriptorss

!c
st||\}}|oi|x|D]\}}}}it||}t|pti|ot|dd}	nd}	|	djod|nCit	|i
}	d|	}	d||	fdq7Wn|S(NRUs<dl><dt>%s</dl>
s<dd><tt>%s</tt>s<dl><dt>%s%s</dl>
s
(RSRGRRHtcallableRR`R]RRR(
RHRIRORJR)RbRKRLRMR%(RRLRR"RMR6R	RF(s!/usr/local/lib/python2.5/pydoc.pyt	spilldatas$



cSs|\}}}}t|S((R_(RaR)RbRcRL((s!/usr/local/lib/python2.5/pydoc.pyR!sRmt-ics|djS(i((tt(t	thisclass(s!/usr/local/lib/python2.5/pydoc.pyR!ssdefined heresinherited from %ss:<br>
RKcSs|dS(i((RT((s!/usr/local/lib/python2.5/pydoc.pyR!%scSst|d|dS(i(tcmp(tt1tt2((s!/usr/local/lib/python2.5/pydoc.pyR!'ss
Methods %scSs|ddjS(itmethod((RT((s!/usr/local/lib/python2.5/pydoc.pyR!+ssClass methods %scSs|ddjS(isclass method((RT((s!/usr/local/lib/python2.5/pydoc.pyR!-ssStatic methods %scSs|ddjS(is
static method((RT((s!/usr/local/lib/python2.5/pydoc.pyR!/ssData descriptors %scSs|ddjS(isdata descriptor((RT((s!/usr/local/lib/python2.5/pydoc.pyR!1ssData and other attributes %scSs|ddjS(iR?((RT((s!/usr/local/lib/python2.5/pydoc.pyR!3sRs*<a name="%s">class <strong>%s</strong></a>s/<strong>%s</strong> = <a name="%s">class %s</a>s(%s)s, s<tt>%s<br>&nbsp;</tt>s#000000s#ffc8d8i((R
RDRR	RtgetmroR$RGRRtfilterRfRHRRRSt__builtin__R"R4tAssertionErrorRRRRR(RR"R)R6RR	R7trealnameRRRDtmroRMRNRPRRRIRKRbRKRLtanchort	inheritedttagRRR%((	RRLRURR6R"RMRFR	s!/usr/local/lib/python2.5/pydoc.pyRs	
			

$	$		









 $cCs|id|i|S(s)Format an argument default value as text.t=(RR<(RR"((s!/usr/local/lib/python2.5/pydoc.pytformatvalueIscCsc|i}|p|}|o
|ipdd|}	d}
d}ti|o|i}|o+||j	od|i||}
qnG|idj	o d|i|ii|}
nd|i||}
|i}n||jod|	|f}
nj|oI||i	jo9|i	||jo%d|id||f}d	}n|}d
|	||f}
ti
|ohti|\}}}}ti||||d|i
}|djod
|}
|d	d!}qnd}|
||
o|id|
}|od|SnD|it||i|||}|od|}d||fSdS(s;Produce HTML documentation for a function or method object.RRSis from s method of %s instances unbound %s methods$<a name="%s"><strong>%s</strong></a>s<a href="#%s">%s</a>is)<a name="%s"><strong>%s</strong></a> = %sRds<lambda>s$<strong>%s</strong> <em>lambda</em> is(...)s'<font face="helvetica, arial">%s</font>s<dl><dt>%s</dt></dl>
s<dd><tt>%s</tt></dd>s<dl><dt>%s</dt>%s</dl>
N(R
RR?tim_classRtim_selfR]Rtim_funct__dict__R1t
getargspect
formatargspecRdRRRR(RR"R)R6RR	RJRIR^R`tnotetskipdocstimclassRtreallinkRtvarargstvarkwtdefaultstargspectdeclR%((s!/usr/local/lib/python2.5/pydoc.pyRMsR	
	
	




cCs|g}|i}|o|d|n|idj	o-|it||i}|d|n|ddi|S(Ns!<dl><dt><strong>%s</strong></dt>
s<dd><tt>%s</tt></dd>
s</dl>
R(RRUR]RRRR(RR)RLR6R
RFR%((s!/usr/local/lib/python2.5/pydoc.pyROs	
cCs|i|||S(s*Produce html documentation for a property.(RO(RR"R)R6RI((s!/usr/local/lib/python2.5/pydoc.pyRscGs)|od|pd}||i|S(s-Produce HTML documentation for a data object.s<strong>%s</strong> = R(R<(RR"R)R6R7tlhs((s!/usr/local/lib/python2.5/pydoc.pyRscCs|i|||S(s1Produce html documentation for a data descriptor.(RO(RR"R)R6RI((s!/usr/local/lib/python2.5/pydoc.pyRscCsg}|djo
h}nxLti|gD]8\}}}|i|d|||jfd||<q0W|i|i||i}|i|dd|S(s2Generate an HTML index for a directory of modules.Ris#ffffffs#ee77aaN(R]R2R3RR4RRR(RRRR@RAR)RBR((s!/usr/local/lib/python2.5/pydoc.pytindexs


N(R
RRURt_repr_instanceR<RRRR]RRRRRRRRRRRRRRdRRORRRRu(((s!/usr/local/lib/python2.5/pydoc.pyRs8												&|	5	
tTextReprcBs8eZdZdZdZdZeZdZRS(sAClass for safely making a text representation of a Python object.cCs:ti|d|_|_d|_d|_|_dS(Nii
id(RRgRRRRR(R((s!/usr/local/lib/python2.5/pydoc.pyRgs
	cCstt|doPdttt|id}t||ot||||Sqfnttt||i	S(NR
RRZ(
RRRRR
RHR9R>R<R(RRRRR((s!/usr/local/lib/python2.5/pydoc.pyRs
"cCsdt||i}t|}d|jo5dt|ddjod|d||dSn|S(Ns\s\\RRi(R9RR<R4(RRRRRR((s!/usr/local/lib/python2.5/pydoc.pyRs
&cCs<y ttt||iSWnd|iiSnXdS(Ns
<%s instance>(R9R>R<RRR
(RRRR((s!/usr/local/lib/python2.5/pydoc.pyRs (R
RRURgRRRR(((s!/usr/local/lib/python2.5/pydoc.pyRws				tTextDoccBseZdZeZeiZdZddZdZdddZ
dddZdddZd	Z
dddd
ZdZddddZdddd
ZddddddZRS(s'Formatter class for text documentation.cCsttd|dS(s(Format a string in bold by overstriking.cSs|d|S(s((tch((s!/usr/local/lib/python2.5/pydoc.pyR!sR(RRe(RR2((s!/usr/local/lib/python2.5/pydoc.pytboldss    cCs_|pdSnt|d}t|d|}|ot|d|d<nt|dS(s6Indent text by prepending a given prefix to each line.Rs
cSs||S(((Rptprefix((s!/usr/local/lib/python2.5/pydoc.pyR!si(RReRR(RR2R{R&((s!/usr/local/lib/python2.5/pydoc.pytindentscCs(|i|dt|i|dS(s&Format a section with a given heading.s
s

(RzRR|(RRR((s!/usr/local/lib/python2.5/pydoc.pyRsRc
Csd}x|D]}t|tdjox|\}}||t||}|o@||fjo0t|d|}	|dt|	d}n|d}q
t|tgjo$||i||||d}q
q
W|S(sBRender in text a class tree as returned by inspect.getclasstree().RcSs
t||S((R*(RR((s!/usr/local/lib/python2.5/pydoc.pyR!ss(%s)s, s
s    ((RR*ReRR(
RRR(RR{R#RRRR((s!/usr/local/lib/python2.5/pydoc.pyRs	cCs_|i}tt|\}}|id||od|}y
|i}Wntj
o
d}nXyti|}Wnt	j
o
d}nX||id|}|i
|}	|	dj	o||id|	}n|o||id|}ng}
xxti|tiD]a\}}|dj	pti
|p||jo+t||o|
i||fqq#q#Wg}
xti|tiD]j\}}|dj	p&ti|pti
||jo+t||o|
i||fqqqWg}xGti|tD]3\}}t||o|i||fq+q+Wt|dog}xLti|iD]8\}}}|o|i|dq|i|qW|i||id	t|d
}n|
otd|
}|iti|d|g}x0|
D](\}}|i|i|||q5W||id
t|d
}n|
o\g}x0|
D](\}}|i|i|||qW||idt|d
}n|obg}x6|D].\}}|i|i|||ddqW||idt|d
}nt|dobt|i}|d djo(|ddjot |dd!}n||id|}nt|do#||idt|i!}nt|do#||idt|i"}nt|do#||idt|i#}n|S( s5Produce text documentation for a given module object.tNAMEs - s
(built-in)tFILEsMODULE DOCStDESCRIPTIONRWs
 (package)sPACKAGE CONTENTSs
cSs|\}}|S(((RaRKRL((s!/usr/local/lib/python2.5/pydoc.pyR!-sitCLASSESt	FUNCTIONSR6iFtDATARiRs
Revision: itVERSIONR tDATER&tAUTHORR(tCREDITSNs$Revision: ($R
R'RRR*RR]RRRRRCR,R/R_RR-R0R1RR2R3RWR4RReRR5RRRRRR R&R((RR"R)R6tsynoptdescR#R^RoRR	RKRLRR?R@RAR(RBRCRR((s!/usr/local/lib/python2.5/pydoc.pyRs	!



&
	 # #&#"###csHi}|p|}i}id}||jodi|}ni|d|}|o*t||}|dt|d}nt}	|	o|	dgpg}
|
itt	i
}t|djo=dx"|D]}d	||qWd
ndd!fdY}
|
fd
}fd}fd}tdt
}xJ|oB|o|in|ddt|fd\}}tijo
|}qn.jo
d}ndti}td||i|d||d}|d||d}|d||d}|d||d}|d||d}|gjpt|}qWdi|
}
|
p|dSn|dit|
d dS("s4Produce text documentation for a given class object.cSs
t||S(N(R*(RR((s!/usr/local/lib/python2.5/pydoc.pytmakenameSssclass s	 = class s(%s)s, s
isMethod resolution order:s    RRDcs eZdZfdZRS(cSs
d|_dS(Ni(RE(R((s!/usr/local/lib/python2.5/pydoc.pyRglscs)|ioddnd|_dS(NRSiFi(RE(R(RF(s!/usr/local/lib/python2.5/pydoc.pyRGns
(R
RRgRG((RF(s!/usr/local/lib/python2.5/pydoc.pyRDks	cszt||\}}|oZi|xC|D]7\}}}}it||q7Wn|S(N(RSRGRRH(RHRIRORJR)RbRKRL(RMRR"RFR6(s!/usr/local/lib/python2.5/pydoc.pyRNts

csnt||\}}|oNi|x7|D]+\}}}}i||q7Wn|S(N(RSRGRO(RHRIRORJR)RbRKRL(RMRRFR6(s!/usr/local/lib/python2.5/pydoc.pyRP~s

!c	
st||\}}|oi|x|D]w\}}}}t|pti|ot|}nd}it||ddd|dq7Wn|S(NR6iFR%s
(	RSRGRQRR`RR]RRH(	RHRIRORJR)RbRKRLR%(R"RMRRFR6(s!/usr/local/lib/python2.5/pydoc.pyRRs

%cSs|\}}}}t|S((R_(RaR)RbRcRL((s!/usr/local/lib/python2.5/pydoc.pyR!sics|djS(i((RT(RU(s!/usr/local/lib/python2.5/pydoc.pyR!ssdefined heresinherited from %scSs|didS(iRZ(R[(RT((s!/usr/local/lib/python2.5/pydoc.pyR!ssMethods %s:
cSs|ddjS(iRY((RT((s!/usr/local/lib/python2.5/pydoc.pyR!ssClass methods %s:
cSs|ddjS(isclass method((RT((s!/usr/local/lib/python2.5/pydoc.pyR!ssStatic methods %s:
cSs|ddjS(is
static method((RT((s!/usr/local/lib/python2.5/pydoc.pyR!ssData descriptors %s:
cSs|ddjS(isdata descriptor((RT((s!/usr/local/lib/python2.5/pydoc.pyR!ssData and other attributes %s:
cSs|ddjS(iR?((RT((s!/usr/local/lib/python2.5/pydoc.pyR!ss |  ((R
RDRRzReRRRR	RRZR$R[RfRRSR\R"R*R4R]R|R(RR"R)R6R^RRRRR%RR_RMRDRNRPRRRIRaRb((RURR"RMR6RFs!/usr/local/lib/python2.5/pydoc.pyRMst	
	
	
	
		

	






cCsd|i|S(s)Format an argument default value as text.Rc(R<(RR"((s!/usr/local/lib/python2.5/pydoc.pyRdscCs|i}|p|}d}d}ti|o|i}|o(||j	odt||}qnA|idj	odt|ii|}ndt||}|i}n||jo|i	|}	nM|o.||i
jo|i
||jo
d}n|i	|d|}	ti|oqti|\}
}}}
ti
|
|||
d|i}|d	jo$|i	|d
}	|dd!}qnd}|	||}|o|d
Sn:t|pd}|d
|ot|i|d
SdS(s;Produce text documentation for a function or method object.Ris from s method of %s instances unbound %s methodis = Rds<lambda>s lambda is(...)s
N(R
RR?ReR*RfR]RRgRzRhR1RiRjRdRRR|(RR"R)R6RIR^RkRlRmRRRoRpRqRrRsR%((s!/usr/local/lib/python2.5/pydoc.pyRsB	
	




cCsg}|i}|o!||i||dnt|pd}|o!||i||dndi|S(Ns
R(RRzRR|R(RR)RLR6R
RFR%((s!/usr/local/lib/python2.5/pydoc.pyROs	cCs|i|||S(s*Produce text documentation for a property.(RO(RR"R)R6RI((s!/usr/local/lib/python2.5/pydoc.pyRscCs|i|||S(s1Produce text documentation for a data descriptor.(RO(RR"R)R6RI((s!/usr/local/lib/python2.5/pydoc.pyRsc
Cs|i|}|oO|o|dpd|}|t|}	|	djo||	 d}qen|o|i|dpd|}|dj	o!|d|it|7}n|S(s-Produce text documentation for a data object.s = Ris...s
N(R<R$RzR]R|R(
RR"R)R6RR6R%R<Rptchop((s!/usr/local/lib/python2.5/pydoc.pyRs
%
!N(R
RRURwRvR<RzR|RR]RRRRdRRORRR(((s!/usr/local/lib/python2.5/pydoc.pyRxs				Xq	+	
cCstat|dS(sCThe first time this is called, determine what kind of pager to use.N(tgetpagertpager(R2((s!/usr/local/lib/python2.5/pydoc.pyRs	cCsttitij	otSntiiptiiotSndti	joJti
djodSqti	iddjodSqdSnti	iddjotSnti
djpti
id	od
Snt
tdo!tidd
jodSnddk}|i\}}ti|z=t
tdo%tid|d
jodSntSWdti|XdS(s2Decide what method to use for paging through text.tPAGERRcSstt|tidS(R(t
tempfilepagertplainRR(R2((s!/usr/local/lib/python2.5/pydoc.pyR!stTERMtdumbtemacscSstt|tidS(R(t	pipepagerRRR(R2((s!/usr/local/lib/python2.5/pydoc.pyR! scSst|tidS(R(RRR(R2((s!/usr/local/lib/python2.5/pydoc.pyR!"stos2cSstt|dS(smore <(RR(R2((s!/usr/local/lib/python2.5/pydoc.pyR!&stsystems(less) 2>/dev/nullicSs
t|dS(tless(R(R2((s!/usr/local/lib/python2.5/pydoc.pyR!(siNsmore %scSs
t|dS(tmore(R(R2((s!/usr/local/lib/python2.5/pydoc.pyR!/s(RR(RR(RRtstdoutRtFileTypet
plainpagertstdintisattyRRR+RvR[RRttempfiletmkstempR~tttypagertunlink(RtfdR((s!/usr/local/lib/python2.5/pydoc.pyRs0"#&
*cCstidd|S(s%Remove boldface formatting from text.s.R(R R!(R2((s!/usr/local/lib/python2.5/pydoc.pyR5scCsGti|d}y|i||iWntj
onXdS(s3Page through text by feeding it to another program.twN(RtpopentwriteR~Ry(R2tcmdtpipe((s!/usr/local/lib/python2.5/pydoc.pyR9s
cCslddk}|i}t|d}|i||izti|d|Wdti|XdS(s<Page through text by invoking a program on a temporary file.iNRR(RtmktempRxRR~RRR(R2RRRRo((s!/usr/local/lib/python2.5/pydoc.pyRBs

c	Cstt|d}yDddk}tii}|i|}|i|d}Wn(tt	fj
od}d}nXzCtii
ddd}}tiit|| ddx||otiid	tii|}|djotiidPn;|djo-tiid||d|d}qn|djo)|||}|djo
d}qntiidt||||!dd||}qWWd|o|i||i|nXdS(s%Page through text on a text terminal.s
iNcSstiidS(i(RRR(((s!/usr/local/lib/python2.5/pydoc.pyR!VscSstiid d S(ii(RRRn(((s!/usr/local/lib/python2.5/pydoc.pyR!YstLINESiis
-- more --tqtQs
          
s
RrtBsi(RR(s
s
(RrRs(RRtttyRRtfilenot	tcgetattrt	setcbreakRRR]RRRvRRRtflusht	tcsetattrt	TCSAFLUSH(	R2R&RRtoldtgetcharRtincR((s!/usr/local/lib/python2.5/pydoc.pyRNsB

!
	




,cCstiit|dS(s>Simply print unformatted text.  This is the ultimate fallback.N(RRRR(R2((s!/usr/local/lib/python2.5/pydoc.pyRtscCsyti|oP|itijod|iSnt|dod|iSq`d|iSnti|od|iSnti|o$d|ii	|ii|ifSnti
|o$d|ii	|ii|ifSnti|od|iSnti|od	|iSnti
|od
|iSnt|tijod|iiSnt|iS(s/Produce a short description of the given thing.sbuilt-in module RWspackage smodule sbuilt-in function sgetset descriptor %s.%s.%ssmember descriptor %s.%s.%ssclass s	function smethod sinstance of (RR+R
RRRR0Rt__objclass__RRR,R1R?RRtInstanceTypeR(tthing((s!/usr/local/lib/python2.5/pydoc.pytdescribexs2c	
Csg}t|dD]}|o||qq~}d\}}xU|t|joAtt||d d|}|o||d}}qDPqDW|oP|}x?||D]3}yt||}Wqtj
odSqXqW|Sn"tt|ott|SndS(s@Locate an object by name or dotted path, importing as necessary.RiiN(Ni(	RR]R$RRRHRRR\(	RRRRR8Rtnt
nextmoduleR"((s!/usr/local/lib/python2.5/pydoc.pytlocates&5 
cCs_t|to5t||}|ptd|n||fSn|t|ddfSdS(sDGiven an object or a path to an object, get the object and its name.s$no Python documentation found for %rR
N(RRRRRHR](RRR"((s!/usr/local/lib/python2.5/pydoc.pytresolvess Python Library Documentation: %sc	CsSy,t||\}}t|}ti|}|o,d|jo|d||id 7}n*|o"||j	o|d|i7}nti|pMti|p=ti|p-ti	|pti
|p
t|tpt
|}|d7}nt||dti||Wn ttfj
o}|GHnXdS(sCDisplay text documentation, given an object or a path to an object.Rs in s in module s objects

N(RRRR/RR
R+R,R-RRRRRRR2RRR(RRRR"R)RRRL((s!/usr/local/lib/python2.5/pydoc.pyR%s&&cCsytt||\}}tit|ti||}t|dd}|i||idG|dGHWn tt	fj
o}|GHnXdS(s<Write HTML documentation to a file in the current directory.s.htmlRtwroteN(
RthtmlRRRRxRR~RR(RRR"R)RRoRL((s!/usr/local/lib/python2.5/pydoc.pytwritedocs$

RcCsN|djo
h}nx0ti|g|D]\}}}t|q-WdS(sAWrite out HTML documentation for all modules in a directory tree.N(R]R2t
walk_packagesR(RtpkgpathtdoneRAR(RB((s!/usr/local/lib/python2.5/pydoc.pyt	writedocss

tHelpercBsaeZhdd<dd<dd<dd	<dd<dd<dd<dd<dd<dd<dd<dd<dd<dd<d d!<dd$<dd<dd <dd*<d+d,<dd/<dd0<dd1<dd3<dd5<dd8<dd:<d	d<d
d><dd<ddB<Zhd
dE<ddH<ddK<ddN<ddP<ddS<ddV<ddY<dd\<dd_<d`da<dd.<ddf<ddi<ddl<dEdm<dEdn<ddp<dds<ddu<ddw<ddy<d d'<d d{<d!d~<d~dM<d~d<d"d<d#d<d$d<d%d<d&d<d'd<d(d)<d)d<d*d<d+d<d,d#<d-d<d#d<d#d<d.d7<d/d<d0d<d1d<d2d<d3d<d4d<d_d<d5d<d6d<d7d<d8d`<d9d<d:d<d;d<d<d<d=dr<d>d<d?d<d@d<dAd<dBd<dCd<dDd+<dEd<dd<dFd<dGd<dd<d5d<d:d<d d<dd<dHd<dId%<dJd<dKd<ZdZdZdLdZdZdZ	dZ
dZdddZdZ
dZdZddZRS(MtBOOLEANtandtwithtass
ref/assertRtasserts	ref/breaks	while fortbreaks	ref/classsCLASSES SPECIALMETHODStclasssref/continuetcontinuesref/functiontdefsref/deltBASICMETHODStdeltiftelifsref/iftelsettrytexceptsref/exectexectfinallysref/forsbreak continue whiletfortimporttfroms
ref/globalt
NAMESPACEStglobalt
TRUTHVALUEs
ref/importtMODULESsref/comparisonstSEQUENCEMETHODS2tint
COMPARISONtissref/lambdasRtlambdatnottorsref/passtpasss	ref/printtprints	ref/raiset
EXCEPTIONStraises
ref/returntreturnsref/trys	ref/whilesbreak continue if TRUTHVALUEtwhilesref/withs CONTEXTMANAGERS EXCEPTIONS yields	ref/yieldtyields	ref/typessRSTRINGS UNICODE NUMBERS SEQUENCES MAPPINGS FUNCTIONS CLASSES MODULES FILES inspecttTYPESsref/stringss4str UNICODE SEQUENCES STRINGMETHODS FORMATTING TYPEStSTRINGSslib/string-methodssSTRINGS FORMATTINGt
STRINGMETHODSslib/typesseq-stringst	OPERATORSt
FORMATTINGs:encodings unicode SEQUENCES STRINGMETHODS FORMATTING TYPEStUNICODEsref/numberssINTEGER FLOAT COMPLEX TYPEStNUMBERSsref/integerss	int rangetINTEGERsref/floatings
float mathtFLOATs
ref/imaginarys
complex cmathtCOMPLEXslib/typesseqs%STRINGMETHODS FORMATTING xrange LISTSt	SEQUENCEStDICTIONARIEStMAPPINGSslib/typesfunctionss	def TYPESslib/typesmethodssclass def CLASSES TYPEStMETHODSslib/bltin-code-objectsscompile FUNCTIONS TYPEStCODEOBJECTSslib/bltin-type-objectsstypes TYPEStTYPEOBJECTStFRAMEOBJECTSt
TRACEBACKSslib/bltin-null-objecttNONEslib/bltin-ellipsis-objecttSLICINGStELLIPSISslib/bltin-file-objectstFILESslib/specialattrstSPECIALATTRIBUTESs!class SPECIALMETHODS PRIVATENAMESRslib/typesmodulestPACKAGESsref/summaryslambda or and not in is BOOLEAN COMPARISON BITWISE SHIFTING BINARY FORMATTING POWER UNARY ATTRIBUTES SUBSCRIPTS SLICINGS CALLS TUPLES LISTS DICTIONARIES BACKQUOTEStEXPRESSIONSt
PRECEDENCEsref/objectstOBJECTSsref/specialnamesstBASICMETHODS ATTRIBUTEMETHODS CALLABLEMETHODS SEQUENCEMETHODS1 MAPPINGMETHODS SEQUENCEMETHODS2 NUMBERMETHODS CLASSEStSPECIALMETHODSsref/customizations cmp hash repr str SPECIALMETHODSsref/attribute-accesssATTRIBUTES SPECIALMETHODStATTRIBUTEMETHODSsref/callable-typessCALLS SPECIALMETHODStCALLABLEMETHODSsref/sequence-typess)SEQUENCES SEQUENCEMETHODS2 SPECIALMETHODStSEQUENCEMETHODS1sref/sequence-methodss)SEQUENCES SEQUENCEMETHODS1 SPECIALMETHODSsMAPPINGS SPECIALMETHODStMAPPINGMETHODSsref/numeric-typess*NUMBERS AUGMENTEDASSIGNMENT SPECIALMETHODSt
NUMBERMETHODSs
ref/execmodels%NAMESPACES DYNAMICFEATURES EXCEPTIONSt	EXECUTIONs
ref/namings*global ASSIGNMENT DELETION DYNAMICFEATURESsref/dynamic-featurestDYNAMICFEATUREStSCOPINGtFRAMESsref/exceptionsstry except finally raisesref/coercion-rulestCONVERSIONSt	COERCIONSsref/conversionssref/identifiersskeywords SPECIALIDENTIFIERStIDENTIFIERSsref/id-classestSPECIALIDENTIFIERSsref/atom-identifierstPRIVATENAMESsref/atom-literalssHSTRINGS BACKQUOTES NUMBERS TUPLELITERALS LISTLITERALS DICTIONARYLITERALStLITERALStTUPLESs
ref/exprlistssTUPLES LITERALSt
TUPLELITERALSslib/typesseq-mutabletLISTLITERALStLISTSs	ref/listssLISTS LITERALSslib/typesmappingtDICTIONARYLITERALSsref/dictsDICTIONARIES LITERALSsref/string-conversionssrepr str STRINGS LITERALSt
BACKQUOTESsref/attribute-referencess(getattr hasattr setattr ATTRIBUTEMETHODSt
ATTRIBUTESsref/subscriptionst
SUBSCRIPTSsref/slicingss	ref/callstCALLSs	ref/powertPOWERs	ref/unarytUNARYs
ref/binarytBINARYsref/shiftingtSHIFTINGsref/bitwisetBITWISEsEXPRESSIONS BASICMETHODSsref/BooleanssEXPRESSIONS TRUTHVALUEt	ASSERTIONsref/assignmenttAUGMENTEDASSIGNMENTt
ASSIGNMENTs
ref/augassigntDELETIONtPRINTINGt	RETURNINGt	IMPORTINGtCONDITIONALsref/compoundsfor while break continuetLOOPINGs	lib/truths if while and or not BASICMETHODSslib/module-pdbtpdbt	DEBUGGINGsref/context-managerstCONTEXTMANAGERScCs ||_||_d|_tiiti}ti	i
d}xti	i
d|otii|dtii|ddtti
ddtti
ddti
d dti
d tiitidgD]<}|o/tiitii|d	o
||_qqWdS(
Nt
PYTHONHOMERR%s/usr/local/share/doc/pythonis/usr/doc/python-is%Resources/English.lproj/DocumentationR(tinputtoutputR]tdocdirRRtdirnameRt
executableRRvRRRR{R(RR3R4texecdirthomedirR((s!/usr/local/lib/python2.5/pydoc.pyRgUs 			)cCs.tidddjo|dSndS(Niit?Rs<pydoc.Helper instance>(Rtstack(R((s!/usr/local/lib/python2.5/pydoc.pyt__repr__fscCsF|dj	o|i|n%|i|i|iiddS(Ns
You are now leaving help and returning to the Python interpreter.
If you want to ask for help on a particular object directly from the
interpreter, you can type "help(object)".  Executing "help('string')"
has the same effect as typing a particular string at the help> prompt.
(R]thelptintrotinteractR4R(Rtrequest((s!/usr/local/lib/python2.5/pydoc.pyt__call__ls


	c
Cs|iidxtoy|id}|pPnWnttfj
oPnXtt|dddd}t|djoPn|i	|qWdS(	Ns
shelp> RRt'Rtquit(Rsquit(
R4RRitgetlinetKeyboardInterrupttEOFErrorRR4RR=(RR@((s!/usr/local/lib/python2.5/pydoc.pyR?ys	cCsO|itijot|Sn+|ii||ii|iiSdS(s.Read one line, using raw_input when available.N(R3RRt	raw_inputR4RRRn(Rtprompt((s!/usr/local/lib/python2.5/pydoc.pyRDs

cCsKt|tdjo|djo|iq7|djo|iq7|djo|iq7|djo|iq7|d djo|it|dq7||ijo|i|q7||ijo|i|q7|ot	|d	q7n)t
|to|nt	|d	|ii
d
dS(NRR=tkeywordsttopicsR}ismodules isHelp on %s:s
(RR>tlistkeywordst
listtopicstlistmodulesRRIt	showtopicRJR%RRR4R(RR@((s!/usr/local/lib/python2.5/pydoc.pyR=s*




cCs|iidtid dS(Ns
Welcome to Python %s!  This is the online help utility.

If this is your first time using Python, you should definitely check out
the tutorial on the Internet at http://www.python.org/doc/tut/.

Enter the name of any module, keyword, or topic to get help on writing
Python programs and using Python modules.  To quit this help utility and
return to the interpreter, just type "quit".

To get a list of available modules, keywords, or topics, type "modules",
"keywords", or "topics".  Each module also comes with a one-line summary
of what it does; to list the modules whose summaries contain a given word
such as "spam", type "modules spam".
i(R4RRR(R((s!/usr/local/lib/python2.5/pydoc.pyR>s	iiPc	
Cs|}|i||}t||d|}xt|D]}xt|D]~}|||}|t|joW|ii||||djo.|iidd|dt||qqSqSW|iidq@WdS(NiRs
(R4R$RR4R(	RtitemstcolumnsRtcolwRtrowRR((s!/usr/local/lib/python2.5/pydoc.pyRs



6cCs*|iid|i|iidS(NsN
Here is a list of the Python keywords.  Enter any keyword to get more help.

(R4RRRIRG(R((s!/usr/local/lib/python2.5/pydoc.pyRKs	cCs*|iid|i|iidS(NsN
Here is a list of available topics.  Enter any topic name to get more help.

(R4RRRJRG(R((s!/usr/local/lib/python2.5/pydoc.pyRLs	cCs|ip|iiddSn|ii||ii|}|p"|iidt|dSnt|tdjo|i|Sn|\}}|id|d}yt	|}Wn|iid|dSnXt
idt
it
i
B}t
idt
it
i
B}t
i|dt
i|d|i}|id	dk}	d	dk}
d	dk}|i}|	i|
i|
i|}
|
i|
_|
d
|
_|
i|
_|d|
_|
_|
i|t|i dd
dd}t!dt"|d|oW|i}|
i|i#dt$t%|dd|iid|i ndS(Nsq
Sorry, topic and keyword documentation is not available because the Python
HTML documentation files could not be found.  If you have installed them,
please set the environment variable PYTHONDOCS to indicate their location.

On the Microsoft Windows operating system, the files can be built by
running "hh -decompile . PythonNN.chm" in the C:\PythonNN\Doc> directory.
sno documentation found for %s
RRs.htmlscould not read docs from %s
s<div[^>]*navigat.*?</div.*?>s<address.*?>.*?</address.*?>icSs
|ihS((tdo_p(tparser((s!/usr/local/lib/python2.5/pydoc.pyR!scSs
|idS(s	(R(taRr((s!/usr/local/lib/python2.5/pydoc.pyR!ssRs
s
  s  sRelated help topics: s, s
%s
(&R5R4RRJRvRIR<RRNRxR RtItSR!RR~thtmllibt	formattertStringIOt
HTMLParsertAbstractFormattert
DumbWriterRStstart_tablet	end_tabletdo_brtstart_trtstart_tdtstart_thtfeedR4tgetvalueRRtsend_flowing_dataRR(RttopicttargetRtxrefsRotdivpattaddrpatRRXRYRZtbufferRT((s!/usr/local/lib/python2.5/pydoc.pyRNsJ
	!*
$
cCs~|o|iidt|nV|iidh}|d}ti||i|i|iiddS(NsO
Here is a list of matching modules.  Enter any module name to get more help.

sI
Please wait a moment while I gather a list of all available modules...

cSsR|o#|ddjo|d d}nt|ddjod||<ndS(Nis	.__init__s
 (package)Rii(R(RR(RR}((s!/usr/local/lib/python2.5/pydoc.pytcallbackss
Enter any module name to get more help.  Or, type "modules spam" to search
for modules whose descriptions contain the word "spam".
(R4Rtapropost
ModuleScannertrunRRG(RRKR}Rm((s!/usr/local/lib/python2.5/pydoc.pyRMs			(s
ref/assertR(s	ref/breaks	while for(s	ref/classsCLASSES SPECIALMETHODS(sref/continues	while for(sref/functionR(sref/delR(sref/ifs	while for(sref/execR(sref/forsbreak continue while(s
ref/globalR(sref/ifR(s
ref/importR(sref/comparisonsR(sref/lambdass	FUNCTIONS(sref/passR(s	ref/printR(s	ref/raiseR(s
ref/returns	FUNCTIONS(sref/tryR(s	ref/whilesbreak continue if TRUTHVALUE(sref/withs CONTEXTMANAGERS EXCEPTIONS yield(s	ref/yieldR(s	ref/typessRSTRINGS UNICODE NUMBERS SEQUENCES MAPPINGS FUNCTIONS CLASSES MODULES FILES inspect(sref/stringss4str UNICODE SEQUENCES STRINGMETHODS FORMATTING TYPES(slib/string-methodssSTRINGS FORMATTING(slib/typesseq-stringsR(sref/stringss:encodings unicode SEQUENCES STRINGMETHODS FORMATTING TYPES(sref/numberssINTEGER FLOAT COMPLEX TYPES(sref/integerss	int range(sref/floatings
float math(s
ref/imaginarys
complex cmath(slib/typesseqs%STRINGMETHODS FORMATTING xrange LISTS(slib/typesfunctionss	def TYPES(slib/typesmethodssclass def CLASSES TYPES(slib/bltin-code-objectsscompile FUNCTIONS TYPES(slib/bltin-type-objectsstypes TYPES(slib/bltin-null-objectR(slib/bltin-ellipsis-objectR(slib/bltin-file-objectsR(slib/specialattrsR(s	ref/typess!class SPECIALMETHODS PRIVATENAMES(slib/typesmodulessimport(sref/summaryslambda or and not in is BOOLEAN COMPARISON BITWISE SHIFTING BINARY FORMATTING POWER UNARY ATTRIBUTES SUBSCRIPTS SLICINGS CALLS TUPLES LISTS DICTIONARIES BACKQUOTES(sref/objectsR(sref/specialnamesstBASICMETHODS ATTRIBUTEMETHODS CALLABLEMETHODS SEQUENCEMETHODS1 MAPPINGMETHODS SEQUENCEMETHODS2 NUMBERMETHODS CLASSES(sref/customizations cmp hash repr str SPECIALMETHODS(sref/attribute-accesssATTRIBUTES SPECIALMETHODS(sref/callable-typessCALLS SPECIALMETHODS(sref/sequence-typess)SEQUENCES SEQUENCEMETHODS2 SPECIALMETHODS(sref/sequence-methodss)SEQUENCES SEQUENCEMETHODS1 SPECIALMETHODS(sref/sequence-typessMAPPINGS SPECIALMETHODS(sref/numeric-typess*NUMBERS AUGMENTEDASSIGNMENT SPECIALMETHODS(s
ref/execmodels%NAMESPACES DYNAMICFEATURES EXCEPTIONS(s
ref/namings*global ASSIGNMENT DELETION DYNAMICFEATURES(sref/dynamic-featuresR(sref/exceptionsstry except finally raise(sref/coercion-rulesR(sref/conversionsR(sref/identifiersskeywords SPECIALIDENTIFIERS(sref/id-classesR(sref/atom-identifiersR(sref/atom-literalssHSTRINGS BACKQUOTES NUMBERS TUPLELITERALS LISTLITERALS DICTIONARYLITERALS(s
ref/exprlistssTUPLES LITERALS(slib/typesseq-mutableR(s	ref/listssLISTS LITERALS(slib/typesmappingR(sref/dictsDICTIONARIES LITERALS(sref/string-conversionssrepr str STRINGS LITERALS(sref/attribute-referencess(getattr hasattr setattr ATTRIBUTEMETHODS(sref/subscriptionsR(sref/slicingsR(s	ref/callsR(s	ref/powerR(s	ref/unaryR(s
ref/binaryR(sref/shiftingR(sref/bitwiseR(sref/comparisonssEXPRESSIONS BASICMETHODS(sref/BooleanssEXPRESSIONS TRUTHVALUE(sref/assignmentR'(s
ref/augassignR
(sref/compoundsfor while break continue(s	lib/truths if while and or not BASICMETHODS(slib/module-pdbR/(sref/context-managersRN(R
RRIRJRgR<R]RAR?RDR=R>RRKRLRNRM(((s!/usr/local/lib/python2.5/pydoc.pyRs																																																																																																													
								0tScannercBs eZdZdZdZRS(sA generic tree iterator.cCs)||_g|_||_||_dS(N(trootststatetchildrentdescendp(RRrRtRu((s!/usr/local/lib/python2.5/pydoc.pyRgs
		cCs|ipC|ipdSn|iid}||i|fg|_n|id\}}|p|ii|iSn|id}|i|o#|ii||i|fn|S(Nii(RsRrR]R
RttnextRuR(RtroottnodeRttchild((s!/usr/local/lib/python2.5/pydoc.pyRvs


#(R
RRURgRv(((s!/usr/local/lib/python2.5/pydoc.pyRqs	RocBseZdZdddZRS(s7An interruptible scanner that searches module synopses.c
Cs'|ot|}nt|_h}xtiD]}|djod||<|djo|d|dqtt|ipddd}t	t|d||djo|d||qq0q0Wx=t
iD]/\}}}|ioPn|djo|d|dq|i|}	t
|	do^ddk}
t|
i|	i|pd}t
|	d	o|	i|}qd}n<|	i|}|ipdid}t|d
d}t	t|d||djo||||qqW|o|ndS(Nt__main__iRs
is - t
get_sourceitget_filenameRV(RRjRCRRR]RRRURR2Rtfind_moduleRRZRqR{R|R{R|RH(
RRmRKt	completertseenR(RRARBtloaderRZRR((s!/usr/local/lib/python2.5/pydoc.pyRp0sF	



#$



$N(R
RRUR]Rp(((s!/usr/local/lib/python2.5/pydoc.pyRo-scCsSd}yddk}Wntj
onX|idti||dS(sAPrint all the one-line module summaries that contain a substring.cSs;|ddjo|d d}n|G|od|GHdS(Nis	.__init__s
 (package)s- ((RR(R((s!/usr/local/lib/python2.5/pydoc.pyRm[siNtignore(twarningsRtfilterwarningsRoRp(RKRmR((s!/usr/local/lib/python2.5/pydoc.pyRnYs	
c	Csddk}ddk}ddk}d|ifdY}d|ifdY}d|ifdY}|i|_||_||_z:y|||i	Wnt
|ifj
onXWd|o|nXdS(NitMessagecBseZddZRS(icSsf|i}|ididi||||id|_|id|_|i|idS(Niscontent-transfer-encodingscontent-type(RRDRgt	getheadertencodingheadert
typeheadert	parsetypet
parseplist(RtfptseekableR((s!/usr/local/lib/python2.5/pydoc.pyRgks	!
(R
RRg(((s!/usr/local/lib/python2.5/pydoc.pyRjst
DocHandlercBs#eZdZdZdZRS(cSsayG|id|idd|i|iiti||Wntj
onXdS(NisContent-Types	text/html(t
send_responsetsend_headertend_headerstwfileRRRRy(RRR((s!/usr/local/lib/python2.5/pydoc.pyt
send_documentts

 cSs|i}|ddjo|d }n|d djo|d}n|o|djoyt|dd}Wn8tj
o,}|i|tit|dSnX|o&|it|ti||q|i|dt	|nti
dd	d
}d}tdti
}ti||}d
tidd	d|g}h}	x*tiD]}
|iti|
|	qkW|t|d}|id|dS(Nis.htmliRRRs$no Python documentation found for %ss?<big><big><strong>Python: Index of Modules</strong></big></big>s#ffffffs#7799eecSsd||fS(Ns<a href="%s.html">%s</a>((R)((s!/usr/local/lib/python2.5/pydoc.pyt	bltinlinkscSs
|djS(Rz((RR((s!/usr/local/lib/python2.5/pydoc.pyR!ss<p>sBuilt-in Moduless#ee77aas<p align=right>
<font color="#909090" face="helvetica, arial"><strong>
pydoc</strong> by Ka-Ping Yee &lt;ping@lfw.org&gt;</font>sIndex of Modules(RRRRRRRRRR<RR[RRRRRRuR(RRRARLRRtnamesRtindicesRR((s!/usr/local/lib/python2.5/pydoc.pytdo_GET|s>		&				

cWsdS(N((RR((s!/usr/local/lib/python2.5/pydoc.pytlog_messages(R
RRRR(((s!/usr/local/lib/python2.5/pydoc.pyRss		#t	DocServercBs#eZdZdZdZRS(cSshtidjodpd}d|f|_d||f|_||_|ii||i|idS(Ntmacs	127.0.0.1t	localhostRs
http://%s:%d/(RR+taddressRRmRMRgthandler(RtportRmthost((s!/usr/local/lib/python2.5/pydoc.pyRgs
	cSsmddk}t|_xQ|ipF|i|iigggd\}}}|o|iqqWdS(Nii(tselectRjRCtsocketRthandle_request(RRtrdtwrtex((s!/usr/local/lib/python2.5/pydoc.pytserve_until_quits	
-cSs/|ii||io|i|ndS(N(RMtserver_activateRm(R((s!/usr/local/lib/python2.5/pydoc.pyRs
(R
RRgRR(((s!/usr/local/lib/python2.5/pydoc.pyRs		(tBaseHTTPServert	mimetoolsRRtBaseHTTPRequestHandlert
HTTPServerRMRtMessageClassRREterror(	RRmR~RRRRRR((s!/usr/local/lib/python2.5/pydoc.pytservefs$	.			c	CsqdddY}ddk}y8|i}z||}|iWd|iXWntj
onXdS(sEGraphical interface (starts web server and pops up a control window).tGUIcBseZddZdZdddZddZddZdZddZ	dZ
dd	Zdd
ZdZ
dZdd
ZRS(i(cSs||_d|_d|_ddk}|i||_|i|idd|_|i	|iddd|i
dd|_|i	|iddd|idd|_
|i||_|i|idd	|_|i|i|_|iid
|i|i	|idddd
d|idd|_tidjo|iiddn|iid|iid|i|iidddd|iidddddd|i
idddddd|iidddd|iidd|iidddddd|iidddd|iidtidjodpdf}|i|d|dd|_|iid|i|iid |i|i |d!d"d|ii!|_"|ii#d#|i"i$|i||_%|i	|i%dd$d|i|_&|i	|i%dd%d|i'|_(|i&idddddd|i(idddddd|ii)|ii*|_+|ii,|_-|ii.|ii.|ii.|i%i.|_/|i+|i/|_0|_1d
|_2|ii3d&|i+|i-f|ii4|i+|i-|ii5i6ddk7}|i8d't9d(||i:|ifi;dS()NiR2sStarting server...
 sopen browsertcommandRstdisabledsquit servings
Search fors<Return>tstoptpadyiRtsidetrighttpydoctWM_DELETE_WINDOWttoptfillRRtlefttexpandit	helveticaii
tfonttheightis
<Button-1>s<Double-Button-1>torienttverticaltyscrollcommandsgo to selectedshide resultss%dx%dRhR(<twindowR]tservertscannertTkintertFramet
server_frmtLabelt	title_lbltButtonRxtopen_btnRCtquit_btnt
search_frmt
search_lbltEntryt
search_enttbindR;Rtstop_btnRR+tpackRtprotocolt	focus_settListboxt
result_lstRtgotot	Scrollbartyviewt
result_scrtconfigtsett
result_frmtgoto_btnthidethide_btnREtwinfo_widthtminwidthtwinfo_heightt	minheighttwinfo_reqheighttbigminheighttbigwidtht	bigheighttexpandedtwm_geometryt
wm_minsizettktwilldispatcht	threadingtThreadRtreadyR(RRRRRR((s!/usr/local/lib/python2.5/pydoc.pyRgsp			!
#
&	 	cSsM||_|iidd|i|iidd|iidddS(NR2sPython documentation server at
Rstnormal(RRRRRR(RR((s!/usr/local/lib/python2.5/pydoc.pyR	s
	cSs|p
|ii}yddk}|i|Wntj
otidjotid|qtidjo7yddk	}Wntj
oqX|i
|qtid|}|otid|qnXdS(NiRs
start "%s"Rs netscape -remote "openURL(%s)" &snetscape "%s" &(RRt
webbrowserRxRRR+RRtict	launchurl(RteventRRRtrc((s!/usr/local/lib/python2.5/pydoc.pyRxs cSs+|iod|i_n|iidS(Ni(RRCR(RR((s!/usr/local/lib/python2.5/pydoc.pyRC s
cSs|ii}|iidd|iidd|iidd||ii|iidd|iidd	|i	idd
|i
ddk}|iod|i_
nt|_|id
|iid|i||ifidS(NRRRsRR2sSearching for "%s"...RiRRiiRhR(RRvRRRRtforgetRtdeleteRRRRRCRoRRpRERR(RRRKR((s!/usr/local/lib/python2.5/pydoc.pyR;%s


cSsI|ddjo|d d}n|iid|d|pddS(Nis	.__init__s
 (package)Rs - s(no description)(Rtinsert(RRR(R((s!/usr/local/lib/python2.5/pydoc.pyRE7scSs'|iod|i_d|_ndS(Ni(RRCR](RR((s!/usr/local/lib/python2.5/pydoc.pyR=s
cSsd|_|iidd|iidd|iidddddd	tid
jo|ii	n|iidddS(
NR2s
Search forRRRRRRRiRRsR(
R]RRRRRRR+RR(R((s!/usr/local/lib/python2.5/pydoc.pyRBs	cSs|iidddS(NRsR(RR(RR((s!/usr/local/lib/python2.5/pydoc.pyRJscSs\|ii}|oBt|ii|dd}|id|ii|dndS(NiRs.html(RtcurselectionRRvRxRR(RRt	selectionR(((s!/usr/local/lib/python2.5/pydoc.pyRMs cSs|ipdSn|ii|ii|ii|ii|_|ii|_	|ii
d|i|if|ii
|i|id|_dS(Ns%dx%di(RRRRRRRRRRRRRR(R((s!/usr/local/lib/python2.5/pydoc.pytcollapseSs



 cSs|iodSn|iidddd|iidddd|iiddddd	d
|iid|i|if|ii	|i
|id
|_dS(NRtbottomRRRRtyRtbothRis%dx%d(RRRRRRRRRRRR(R((s!/usr/local/lib/python2.5/pydoc.pyR^s
 cSs|i|idS(N(RR(RR((s!/usr/local/lib/python2.5/pydoc.pyRgs
N(R
RRgRR]RxRCR;RERRRRRRR(((s!/usr/local/lib/python2.5/pydoc.pyRsE						iN((RtTktmainlooptdestroyRE(RRRwtgui((s!/usr/local/lib/python2.5/pydoc.pyRscCs&t|tot|tidjS(Ni(RRRRtsep(RR((s!/usr/local/lib/python2.5/pydoc.pytispath|sc
Csddk}dddY}tiitid}|tijotii|ntiiddy|itidd\}}d}x|D]\}}|d	jotdSn|d
jot	|dSn|djoVyt
|}Wntj
o
|nXd}	d
}
t||	|
dSn|djo
d}qqW|p
|nx|D]}t
|o"tii|od|GHPnyt
|o#tii|ot|}n|o<t
|o!tii|ot|q3t|nti|Wq{tj
o}|GHq{Xq{WWnY|i|fj
oDtiitid}
d|
ti|
|
|
|
tifGHnXdS(s@Command-line interface (looks at sys.argv to decide what to do).iNtBadUsagecBseZRS((R
R(((s!/usr/local/lib/python2.5/pydoc.pyRsiRisgk:p:ws-gs-ks-pcSsd|iGHdS(Nspydoc server ready at %s(R(R((s!/usr/local/lib/python2.5/pydoc.pyRscSs	dGHdS(Nspydoc server stopped((((s!/usr/local/lib/python2.5/pydoc.pytstoppedss-wsfile %r does not existspydoc - the Python documentation tool

%s <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 '%s', 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.

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

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

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

%s -w <name> ...
    Write out the HTML documentation for a module to a file in the current
    directory.  If <name> contains a '%s', it is treated as a filename; if
    it names a directory, documentation is written for all the contents.
((tgetoptRRR6RtargvtremoveRRRnRt
ValueErrorRRtexistsRhRRRRR=RRRR(RRt	scriptdirtoptsRtwritingtopttvalRRRtargRLR((s!/usr/local/lib/python2.5/pydoc.pytclis`



		

!	  Rz(TRUR&R RR(RRzRR RRR\R2R<RtstringRRRRRRRRtcollectionsR	RRRRR'R*R1R4R9Rt
IGNORECASER:R>RBRFRSR]R_RfRlRqRR=RRRRRRRwRxRRRRRRRRRR2RRR%RRRRRR=RqRoRnRRRRR
(((s!/usr/local/lib/python2.5/pydoc.pys<module>#s
`:											
	
	
			29* F							&				
3,	
[			Q

Man Man