blob: 61c489b01a1e8a298396d066f1546eb0ae6333a9 [file] [log] [blame]
Benjamin Peterson28d88b42009-01-09 03:03:23 +00001c-api/arg,,:ref,"PyArg_ParseTuple(args, ""O|O:ref"", &object, &callback)"
2c-api/list,,:high,list[low:high]
3c-api/list,,:high,list[low:high] = itemlist
4c-api/sequence,,:i2,o[i1:i2]
5c-api/sequence,,:i2,o[i1:i2] = v
6c-api/sequence,,:i2,del o[i1:i2]
7c-api/unicode,,:end,str[start:end]
8distutils/apiref,,:action,http://pypi.python.org/pypi?:action=list_classifiers
9distutils/setupscript,,::,
10extending/embedding,,:numargs,"if(!PyArg_ParseTuple(args, "":numargs""))"
11extending/extending,,:set,"if (PyArg_ParseTuple(args, ""O:set_callback"", &temp)) {"
12extending/extending,,:myfunction,"PyArg_ParseTuple(args, ""D:myfunction"", &c);"
13extending/newtypes,,:call,"if (!PyArg_ParseTuple(args, ""sss:call"", &arg1, &arg2, &arg3)) {"
14extending/windows,,:initspam,/export:initspam
15howto/cporting,,:add,"if (!PyArg_ParseTuple(args, ""ii:add_ints"", &one, &two))"
16howto/cporting,,:encode,"if (!PyArg_ParseTuple(args, ""O:encode_object"", &myobj))"
17howto/cporting,,:say,"if (!PyArg_ParseTuple(args, ""U:say_hello"", &name))"
18howto/curses,,:black,"They are: 0:black, 1:red, 2:green, 3:yellow, 4:blue, 5:magenta, 6:cyan, and"
19howto/curses,,:blue,"They are: 0:black, 1:red, 2:green, 3:yellow, 4:blue, 5:magenta, 6:cyan, and"
20howto/curses,,:cyan,"They are: 0:black, 1:red, 2:green, 3:yellow, 4:blue, 5:magenta, 6:cyan, and"
21howto/curses,,:green,"They are: 0:black, 1:red, 2:green, 3:yellow, 4:blue, 5:magenta, 6:cyan, and"
22howto/curses,,:magenta,"They are: 0:black, 1:red, 2:green, 3:yellow, 4:blue, 5:magenta, 6:cyan, and"
23howto/curses,,:red,"They are: 0:black, 1:red, 2:green, 3:yellow, 4:blue, 5:magenta, 6:cyan, and"
24howto/curses,,:white,"7:white."
25howto/curses,,:yellow,"They are: 0:black, 1:red, 2:green, 3:yellow, 4:blue, 5:magenta, 6:cyan, and"
26howto/regex,,::,
27howto/regex,,:foo,(?:foo)
28howto/urllib2,,:example,"for example ""joe@password:example.com"""
29howto/webservers,,.. image:,.. image:: http.png
30library/audioop,,:ipos,"# factor = audioop.findfactor(in_test[ipos*2:ipos*2+len(out_test)],"
31library/datetime,,:MM,
32library/datetime,,:SS,
33library/decimal,,:optional,"trailneg:optional trailing minus indicator"
34library/difflib,,:ahi,a[alo:ahi]
35library/difflib,,:bhi,b[blo:bhi]
36library/difflib,,:i2,
37library/difflib,,:j2,
38library/difflib,,:i1,
39library/dis,,:TOS,
40library/dis,,`,TOS = `TOS`
41library/doctest,,`,``factorial`` from the ``example`` module:
42library/doctest,,`,The ``example`` module
43library/doctest,,`,Using ``factorial``
44library/functions,,:step,a[start:stop:step]
45library/functions,,:stop,"a[start:stop, i]"
46library/functions,,:stop,a[start:stop:step]
47library/hotshot,,:lineno,"ncalls tottime percall cumtime percall filename:lineno(function)"
48library/httplib,,:port,host:port
49library/imaplib,,:MM,"""DD-Mmm-YYYY HH:MM:SS +HHMM"""
50library/imaplib,,:SS,"""DD-Mmm-YYYY HH:MM:SS +HHMM"""
Benjamin Petersonef3e4c22009-04-11 19:48:14 +000051library/itertools,,:stop,elements from seq[start:stop:step]
52library/itertools,,:step,elements from seq[start:stop:step]
Benjamin Peterson28d88b42009-01-09 03:03:23 +000053library/linecache,,:sys,"sys:x:3:3:sys:/dev:/bin/sh"
54library/logging,,:And,
55library/logging,,:package1,
56library/logging,,:package2,
57library/logging,,:root,
58library/logging,,:This,
59library/logging,,:port,host:port
60library/mmap,,:i2,obj[i1:i2]
61library/multiprocessing,,:queue,">>> QueueManager.register('get_queue', callable=lambda:queue)"
62library/multiprocessing,,`,">>> l._callmethod('__getitem__', (20,)) # equiv to `l[20]`"
63library/multiprocessing,,`,">>> l._callmethod('__getslice__', (2, 7)) # equiv to `l[2:7]`"
64library/multiprocessing,,`,# `BaseManager`.
65library/multiprocessing,,`,# `Pool.imap()` (which will save on the amount of code needed anyway).
66library/multiprocessing,,`,# A test file for the `multiprocessing` package
67library/multiprocessing,,`,# A test of `multiprocessing.Pool` class
68library/multiprocessing,,`,# Add more tasks using `put()`
69library/multiprocessing,,`,# create server for a `HostManager` object
70library/multiprocessing,,`,# Depends on `multiprocessing` package -- tested with `processing-0.60`
71library/multiprocessing,,`,# in the original order then consider using `Pool.map()` or
72library/multiprocessing,,`,# Not sure if we should synchronize access to `socket.accept()` method by
73library/multiprocessing,,`,# object. (We import `multiprocessing.reduction` to enable this pickling.)
74library/multiprocessing,,`,# register the Foo class; make `f()` and `g()` accessible via proxy
75library/multiprocessing,,`,# register the Foo class; make `g()` and `_h()` accessible via proxy
76library/multiprocessing,,`,# register the generator function baz; use `GeneratorProxy` to make proxies
77library/multiprocessing,,`,`Cluster` is a subclass of `SyncManager` so it allows creation of
78library/multiprocessing,,`,`hostname` gives the name of the host. If hostname is not
79library/multiprocessing,,`,`slots` is used to specify the number of slots for processes on
80library/optparse,,:len,"del parser.rargs[:len(value)]"
81library/os.path,,:foo,c:foo
82library/parser,,`,"""Make a function that raises an argument to the exponent `exp`."""
83library/posix,,`,"CFLAGS=""`getconf LFS_CFLAGS`"" OPT=""-g -O2 $CFLAGS"""
84library/profile,,:lineno,ncalls tottime percall cumtime percall filename:lineno(function)
85library/profile,,:lineno,filename:lineno(function)
86library/pyexpat,,:elem1,<py:elem1 />
87library/pyexpat,,:py,"xmlns:py = ""http://www.python.org/ns/"">"
88library/repr,,`,"return `obj`"
89library/smtplib,,:port,"as well as a regular host:port server."
90library/socket,,::,'5aef:2b::8'
91library/sqlite3,,:memory,
92library/sqlite3,,:age,"select name_last, age from people where name_last=:who and age=:age"
93library/sqlite3,,:who,"select name_last, age from people where name_last=:who and age=:age"
94library/ssl,,:My,"Organization Name (eg, company) [Internet Widgits Pty Ltd]:My Organization, Inc."
95library/ssl,,:My,"Organizational Unit Name (eg, section) []:My Group"
96library/ssl,,:myserver,"Common Name (eg, YOUR name) []:myserver.mygroup.myorganization.com"
97library/ssl,,:MyState,State or Province Name (full name) [Some-State]:MyState
98library/ssl,,:ops,Email Address []:ops@myserver.mygroup.myorganization.com
99library/ssl,,:Some,"Locality Name (eg, city) []:Some City"
100library/ssl,,:US,Country Name (2 letter code) [AU]:US
101library/stdtypes,,:len,s[len(s):len(s)]
102library/stdtypes,,:len,s[len(s):len(s)]
103library/string,,:end,s[start:end]
104library/string,,:end,s[start:end]
105library/subprocess,,`,"output=`mycmd myarg`"
106library/subprocess,,`,"output=`dmesg | grep hda`"
107library/tarfile,,:compression,filemode[:compression]
108library/tarfile,,:gz,
109library/tarfile,,:bz2,
110library/time,,:mm,
111library/time,,:ss,
112library/turtle,,::,Example::
113library/urllib,,:port,:port
114library/urllib2,,:password,"""joe:password@python.org"""
115library/uuid,,:uuid,urn:uuid:12345678-1234-5678-1234-567812345678
116library/xmlrpclib,,:pass,http://user:pass@host:port/path
117library/xmlrpclib,,:pass,user:pass
118library/xmlrpclib,,:port,http://user:pass@host:port/path
119license,,`,THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
120license,,:zooko,mailto:zooko@zooko.com
121license,,`,THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
122reference/datamodel,,:step,a[i:j:step]
123reference/datamodel,,:max,
124reference/expressions,,:index,x[index:index]
125reference/expressions,,:datum,{key:datum...}
126reference/expressions,,`,`expressions...`
127reference/grammar,,:output,#diagram:output
128reference/grammar,,:rules,#diagram:rules
129reference/grammar,,:token,#diagram:token
130reference/grammar,,`,'`' testlist1 '`'
131reference/lexical_analysis,,:fileencoding,# vim:fileencoding=<encoding-name>
132reference/lexical_analysis,,`,", : . ` = ;"
133tutorial/datastructures,,:value,key:value pairs within the braces adds initial key:value pairs
134tutorial/datastructures,,:value,It is also possible to delete a key:value
135tutorial/stdlib2,,:start,"fields = struct.unpack('<IIIHH', data[start:start+16])"
136tutorial/stdlib2,,:start,extra = data[start:start+extra_size]
137tutorial/stdlib2,,:start,filename = data[start:start+filenamesize]
138tutorial/stdlib2,,:config,"logging.warning('Warning:config file %s not found', 'server.conf')"
139tutorial/stdlib2,,:config,WARNING:root:Warning:config file server.conf not found
140tutorial/stdlib2,,:Critical,CRITICAL:root:Critical error -- shutting down
141tutorial/stdlib2,,:Error,ERROR:root:Error occurred
142tutorial/stdlib2,,:root,CRITICAL:root:Critical error -- shutting down
143tutorial/stdlib2,,:root,ERROR:root:Error occurred
144tutorial/stdlib2,,:root,WARNING:root:Warning:config file server.conf not found
145tutorial/stdlib2,,:Warning,WARNING:root:Warning:config file server.conf not found
146using/cmdline,,:line,file:line: category: message
147using/cmdline,,:category,action:message:category:module:line
148using/cmdline,,:line,action:message:category:module:line
149using/cmdline,,:message,action:message:category:module:line
150using/cmdline,,:module,action:message:category:module:line
151using/cmdline,,:errorhandler,:errorhandler
152using/windows,162,`,`` this fixes syntax highlighting errors in some editors due to the \\\\ hackery
153using/windows,170,`,``
154whatsnew/2.0,418,:len,
155whatsnew/2.3,,::,
156whatsnew/2.3,,:config,
157whatsnew/2.3,,:Critical,
158whatsnew/2.3,,:Error,
159whatsnew/2.3,,:Problem,
160whatsnew/2.3,,:root,
161whatsnew/2.3,,:Warning,
162whatsnew/2.4,,::,
163whatsnew/2.4,,:System,
164whatsnew/2.5,,:memory,:memory:
165whatsnew/2.5,,:step,[start:stop:step]
166whatsnew/2.5,,:stop,[start:stop:step]
Georg Brandl19b3e002010-10-06 10:35:24 +0000167distutils/examples,267,`,This is the description of the ``foobar`` package.
168documenting/fromlatex,39,:func,:func:`str(object)`
169documenting/fromlatex,39,`,:func:`str(object)`
170documenting/fromlatex,39,`,``str(object)``
171documenting/fromlatex,55,.. deprecated:,.. deprecated:: 2.5
172documenting/fromlatex,66,.. note:,.. note::
173documenting/fromlatex,76,:samp,":samp:`open({filename}, {mode})`"
174documenting/fromlatex,76,`,":samp:`open({filename}, {mode})`"
175documenting/fromlatex,80,`,``'c'``
176documenting/fromlatex,80,`,`Title <URL>`_
177documenting/fromlatex,80,`,``code``
178documenting/fromlatex,80,`,`Title <URL>`_
179documenting/fromlatex,99,:file,:file:`C:\\Temp\\my.tmp`
180documenting/fromlatex,99,`,:file:`C:\\Temp\\my.tmp`
181documenting/fromlatex,99,`,"``open(""C:\Temp\my.tmp"")``"
182documenting/fromlatex,129,.. function:,.. function:: do_foo(bar)
183documenting/fromlatex,141,.. function:,".. function:: open(filename[, mode[, buffering]])"
184documenting/fromlatex,152,.. function:,.. function:: foo_*
185documenting/fromlatex,152,:noindex,:noindex:
186documenting/fromlatex,162,.. describe:,.. describe:: a == b
187documenting/fromlatex,168,.. cmdoption:,.. cmdoption:: -O
188documenting/fromlatex,168,.. envvar:,.. envvar:: PYTHONINSPECT
189documenting/markup,33,.. sectionauthor:,.. sectionauthor:: Guido van Rossum <guido@python.org>
190documenting/markup,42,:mod,:mod:`parrot` -- Dead parrot access
191documenting/markup,42,`,:mod:`parrot` -- Dead parrot access
192documenting/markup,42,.. module:,.. module:: parrot
193documenting/markup,42,:platform,":platform: Unix, Windows"
194documenting/markup,42,:synopsis,:synopsis: Analyze and reanimate dead parrots.
195documenting/markup,42,.. moduleauthor:,.. moduleauthor:: Eric Cleese <eric@python.invalid>
196documenting/markup,42,.. moduleauthor:,.. moduleauthor:: John Idle <john@python.invalid>
197documenting/markup,88,:noindex,:noindex:
198documenting/markup,95,.. function:,.. function:: spam(eggs)
199documenting/markup,95,:noindex,:noindex:
200documenting/markup,101,.. method:,.. method:: FileInput.input(...)
201documenting/markup,121,:function,c:function
202documenting/markup,121,.. c:,".. c:function:: PyObject* PyType_GenericAlloc(PyTypeObject *type, Py_ssize_t nitems)"
203documenting/markup,121,::,".. c:function:: PyObject* PyType_GenericAlloc(PyTypeObject *type, Py_ssize_t nitems)"
204documenting/markup,131,:member,c:member
205documenting/markup,131,.. c:,.. c:member:: PyObject* PyTypeObject.tp_bases
206documenting/markup,131,::,.. c:member:: PyObject* PyTypeObject.tp_bases
207documenting/markup,139,:macro,c:macro
208documenting/markup,143,:type,c:type
209documenting/markup,150,:var,c:var
210documenting/markup,150,.. cvar:,.. cvar:: PyObject* PyClass_Type
211documenting/markup,179,.. function:,".. function:: Timer.repeat([repeat=3[, number=1000000]])"
212documenting/markup,210,.. decorator:,.. decorator:: removename
213documenting/markup,210,.. decorator:,.. decorator:: setnewname(name)
214documenting/markup,210,:func,:func:
215documenting/markup,233,:meth,:meth:
216documenting/markup,246,.. cmdoption:,.. cmdoption:: -m <module>
217documenting/markup,264,.. describe:,.. describe:: opcode
218documenting/markup,293,.. highlightlang:,.. highlightlang:: c
219documenting/markup,313,.. literalinclude:,.. literalinclude:: example.py
220documenting/markup,328,:rolename,:rolename:`content`
221documenting/markup,328,`,:rolename:`content`
222documenting/markup,333,:role,:role:`title <target>`
223documenting/markup,333,`,:role:`title <target>`
224documenting/markup,339,:meth,:meth:`~Queue.Queue.get`
225documenting/markup,339,`,:meth:`~Queue.Queue.get`
226documenting/markup,387,:func,:func:`filter`
227documenting/markup,387,`,:func:`filter`
228documenting/markup,387,:func,:func:`foo.filter`
229documenting/markup,387,`,:func:`foo.filter`
230documenting/markup,393,:func,:func:`open`
231documenting/markup,393,`,:func:`open`
232documenting/markup,393,:func,:func:`.open`
233documenting/markup,393,`,:func:`.open`
234documenting/markup,409,:data,c:data
235documenting/markup,413,:func,c:func
236documenting/markup,417,:macro,c:macro
237documenting/markup,421,:type,c:type
238documenting/markup,426,:member,c:member
239documenting/markup,476,:file,... is installed in :file:`/usr/lib/python2.{x}/site-packages` ...
240documenting/markup,476,`,... is installed in :file:`/usr/lib/python2.{x}/site-packages` ...
241documenting/markup,495,:kbd,:kbd:`C-x C-f`
242documenting/markup,495,`,:kbd:`C-x C-f`
243documenting/markup,495,:kbd,:kbd:`Control-x Control-f`
244documenting/markup,495,`,:kbd:`Control-x Control-f`
245documenting/markup,509,:mailheader,:mailheader:`Content-Type`
246documenting/markup,509,`,:mailheader:`Content-Type`
247documenting/markup,518,:manpage,:manpage:`ls(1)`
248documenting/markup,518,`,:manpage:`ls(1)`
249documenting/markup,534,:menuselection,:menuselection:`Start --> Programs`
250documenting/markup,534,`,:menuselection:`Start --> Programs`
251documenting/markup,549,`,``code``
252documenting/markup,567,:file,:file:
253documenting/markup,567,`,``code``
254documenting/markup,602,:ref,:ref:`label-name`
255documenting/markup,602,`,:ref:`label-name`
256documenting/markup,606,:ref,"It refers to the section itself, see :ref:`my-reference-label`."
257documenting/markup,606,`,"It refers to the section itself, see :ref:`my-reference-label`."
258documenting/markup,615,:ref,:ref:
259documenting/markup,636,.. note:,.. note::
260documenting/markup,663,.. versionadded:,.. versionadded:: 3.1
261documenting/markup,688,::,.. impl-detail::
262documenting/markup,688,::,.. impl-detail:: This shortly mentions an implementation detail.
263documenting/markup,708,.. seealso:,.. seealso::
264documenting/markup,708,:mod,Module :mod:`zipfile`
265documenting/markup,708,`,Module :mod:`zipfile`
266documenting/markup,708,:mod,Documentation of the :mod:`zipfile` standard module.
267documenting/markup,708,`,Documentation of the :mod:`zipfile` standard module.
268documenting/markup,708,`,"`GNU tar manual, Basic Tar Format <http://link>`_"
269documenting/markup,722,.. centered:,.. centered::
270documenting/markup,767,.. toctree:,.. toctree::
271documenting/markup,767,:maxdepth,:maxdepth: 2
272documenting/markup,783,.. index:,.. index::
273documenting/markup,813,.. index:,".. index:: BNF, grammar, syntax, notation"
274documenting/markup,844,`,"unaryneg ::= ""-"" `integer`"
275documenting/markup,849,.. productionlist:,.. productionlist::
276documenting/markup,849,`,"try1_stmt: ""try"" "":"" `suite`"
277documenting/markup,849,`,": (""except"" [`expression` ["","" `target`]] "":"" `suite`)+"
278documenting/markup,849,`,": [""else"" "":"" `suite`]"
279documenting/markup,849,`,": [""finally"" "":"" `suite`]"
280documenting/markup,849,`,"try2_stmt: ""try"" "":"" `suite`"
281documenting/markup,849,`,": ""finally"" "":"" `suite`"
282documenting/rest,33,`,``text``
283documenting/rest,47,:rolename,:rolename:`content`
284documenting/rest,47,`,:rolename:`content`
285documenting/rest,103,::,This is a normal text paragraph. The next paragraph is a code sample::
286documenting/rest,130,`,`Link text <http://target>`_
287documenting/rest,187,.. function:,.. function:: foo(x)
288documenting/rest,187,:bar,:bar: no
289documenting/rest,208,.. rubric:,.. rubric:: Footnotes
290faq/programming,762,:reduce,"print((lambda Ru,Ro,Iu,Io,IM,Sx,Sy:reduce(lambda x,y:x+y,map(lambda y,"
291faq/programming,762,:reduce,"Sx=Sx,Sy=Sy:reduce(lambda x,y:x+y,map(lambda x,xc=Ru,yc=yc,Ru=Ru,Ro=Ro,"
292faq/programming,762,:chr,">=4.0) or 1+f(xc,yc,x*x-y*y+xc,2.0*x*y+yc,k-1,f):f(xc,yc,x,y,k,f):chr("
293faq/programming,1047,::,for x in sequence[::-1]:
294faq/windows,229,:EOF,@setlocal enableextensions & python -x %~f0 %* & goto :EOF
295faq/windows,393,:REG,.py :REG_SZ: c:\<path to python>\python.exe -u %s %s
296library/bisect,32,:hi,all(val >= x for val in a[i:hi])
297library/bisect,42,:hi,all(val > x for val in a[i:hi])
298library/http.client,52,:port,host:port
299library/nntplib,272,:bytes,:bytes
300library/nntplib,272,:lines,:lines
301library/nntplib,272,:lines,"['xref', 'from', ':lines', ':bytes', 'references', 'date', 'message-id', 'subject']"
302library/nntplib,272,:bytes,"['xref', 'from', ':lines', ':bytes', 'references', 'date', 'message-id', 'subject']"
303library/pickle,567,:memory,"conn = sqlite3.connect("":memory:"")"
304library/profile,293,:lineno,"(sort by filename:lineno),"
305library/socket,261,::,"(10, 1, 6, '', ('2001:888:2000:d::a2', 80, 0, 0))]"
306library/stdtypes,1026,:end,s[start:end]
307library/stdtypes,1195,:end,s[start:end]
308library/urllib.request,64,:close,Connection:close
309library/urllib.request,901,:password,"""joe:password@python.org"""
310library/urllib.request,1064,:lang,"xmlns=""http://www.w3.org/1999/xhtml"" xml:lang=""en"" lang=""en"">\n\n<head>\n"
311library/xmlrpc.client,103,:pass,http://user:pass@host:port/path
312library/xmlrpc.client,103,:port,http://user:pass@host:port/path
313library/xmlrpc.client,103,:pass,user:pass
314license,717,`,* THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
315license,717,`,* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
316license,879,`,"``Software''), to deal in the Software without restriction, including"
317license,879,`,"THE SOFTWARE IS PROVIDED ``AS IS'', WITHOUT WARRANTY OF ANY KIND,"
318reference/lexical_analysis,704,`,$ ? `
319whatsnew/2.7,735,:Sunday,'2009:4:Sunday'
320whatsnew/2.7,862,::,"export PYTHONWARNINGS=all,error:::Cookie:0"
321whatsnew/2.7,862,:Cookie,"export PYTHONWARNINGS=all,error:::Cookie:0"
322whatsnew/2.7,1619,::,>>> urlparse.urlparse('http://[1080::8:800:200C:417A]/foo')
323whatsnew/2.7,1619,::,"ParseResult(scheme='http', netloc='[1080::8:800:200C:417A]',"