blob: 49d8275550ffec4bdf58daf817dda7de9242bcce [file] [log] [blame]
Georg Brandl700cf282009-01-04 10:23:49 +00001c-api/arg,,:ref,"PyArg_ParseTuple(args, ""O|O:ref"", &object, &callback)"
2c-api/list,,:high,list[low:high]
Georg Brandl700cf282009-01-04 10:23:49 +00003c-api/sequence,,:i2,o[i1:i2]
Georg Brandl700cf282009-01-04 10:23:49 +00004c-api/unicode,,:end,str[start:end]
Georg Brandl700cf282009-01-04 10:23:49 +00005distutils/setupscript,,::,
6extending/embedding,,:numargs,"if(!PyArg_ParseTuple(args, "":numargs""))"
7extending/extending,,:set,"if (PyArg_ParseTuple(args, ""O:set_callback"", &temp)) {"
8extending/extending,,:myfunction,"PyArg_ParseTuple(args, ""D:myfunction"", &c);"
9extending/newtypes,,:call,"if (!PyArg_ParseTuple(args, ""sss:call"", &arg1, &arg2, &arg3)) {"
Georg Brandld061efa2013-11-25 08:34:24 +010010faq/programming,,:reduce,"print (lambda Ru,Ro,Iu,Io,IM,Sx,Sy:reduce(lambda x,y:x+y,map(lambda y,"
11faq/programming,,:reduce,"Sx=Sx,Sy=Sy:reduce(lambda x,y:x+y,map(lambda x,xc=Ru,yc=yc,Ru=Ru,Ro=Ro,"
12faq/programming,,: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("
13faq/programming,,::,for x in sequence[::-1]:
Georg Brandl700cf282009-01-04 10:23:49 +000014howto/cporting,,:encode,"if (!PyArg_ParseTuple(args, ""O:encode_object"", &myobj))"
15howto/cporting,,:say,"if (!PyArg_ParseTuple(args, ""U:say_hello"", &name))"
16howto/curses,,:black,"They are: 0:black, 1:red, 2:green, 3:yellow, 4:blue, 5:magenta, 6:cyan, and"
17howto/curses,,:blue,"They are: 0:black, 1:red, 2:green, 3:yellow, 4:blue, 5:magenta, 6:cyan, and"
18howto/curses,,:cyan,"They are: 0:black, 1:red, 2:green, 3:yellow, 4:blue, 5:magenta, 6:cyan, and"
19howto/curses,,:green,"They are: 0:black, 1:red, 2:green, 3:yellow, 4:blue, 5:magenta, 6:cyan, and"
20howto/curses,,:magenta,"They are: 0:black, 1:red, 2:green, 3:yellow, 4:blue, 5:magenta, 6:cyan, and"
21howto/curses,,:red,"They are: 0:black, 1:red, 2:green, 3:yellow, 4:blue, 5:magenta, 6:cyan, and"
22howto/curses,,:white,"7:white."
23howto/curses,,:yellow,"They are: 0:black, 1:red, 2:green, 3:yellow, 4:blue, 5:magenta, 6:cyan, and"
Ezio Melotti93324d72013-03-28 05:47:31 +020024howto/logging,,:root,WARNING:root:Watch out!
25howto/logging,,:Watch,WARNING:root:Watch out!
26howto/logging,,:root,DEBUG:root:This message should go to the log file
27howto/logging,,:root,INFO:root:So should this
28howto/logging,,:So,INFO:root:So should this
29howto/logging,,:root,"WARNING:root:And this, too"
30howto/logging,,:And,"WARNING:root:And this, too"
31howto/logging,,:root,INFO:root:Started
32howto/logging,,:Started,INFO:root:Started
33howto/logging,,:root,INFO:root:Doing something
34howto/logging,,:Doing,INFO:root:Doing something
35howto/logging,,:root,INFO:root:Finished
36howto/logging,,:Finished,INFO:root:Finished
37howto/logging,,:root,WARNING:root:Look before you leap!
38howto/logging,,:Look,WARNING:root:Look before you leap!
39howto/logging,,:This,DEBUG:This message should appear on the console
40howto/logging,,:So,INFO:So should this
41howto/logging,,:And,"WARNING:And this, too"
42howto/logging,,:logger,severity:logger name:message
43howto/logging,,:message,severity:logger name:message
44howto/logging,,:This,DEBUG:root:This message should go to the log file
Georg Brandl0913bff2014-03-28 20:07:35 +010045howto/pyporting,,::,Programming Language :: Python :: 2
46howto/pyporting,,::,Programming Language :: Python :: 3
Georg Brandl700cf282009-01-04 10:23:49 +000047howto/regex,,::,
48howto/regex,,:foo,(?:foo)
49howto/urllib2,,:example,"for example ""joe@password:example.com"""
Georg Brandl700cf282009-01-04 10:23:49 +000050library/audioop,,:ipos,"# factor = audioop.findfactor(in_test[ipos*2:ipos*2+len(out_test)],"
Georg Brandld061efa2013-11-25 08:34:24 +010051library/bisect,,:hi,all(val >= x for val in a[i:hi])
52library/bisect,,:hi,all(val > x for val in a[i:hi])
Ezio Melotti93324d72013-03-28 05:47:31 +020053library/cookie,,`,!#$%&'*+-.^_`|~
Georg Brandl700cf282009-01-04 10:23:49 +000054library/datetime,,:MM,
55library/datetime,,:SS,
56library/decimal,,:optional,"trailneg:optional trailing minus indicator"
57library/difflib,,:ahi,a[alo:ahi]
58library/difflib,,:bhi,b[blo:bhi]
59library/difflib,,:i2,
60library/difflib,,:j2,
61library/difflib,,:i1,
62library/dis,,:TOS,
63library/dis,,`,TOS = `TOS`
64library/doctest,,`,``factorial`` from the ``example`` module:
65library/doctest,,`,The ``example`` module
66library/doctest,,`,Using ``factorial``
Ezio Melotti93324d72013-03-28 05:47:31 +020067library/exceptions,,:err,err.object[err.start:err.end]
Georg Brandl700cf282009-01-04 10:23:49 +000068library/functions,,:step,a[start:stop:step]
69library/functions,,:stop,"a[start:stop, i]"
70library/functions,,:stop,a[start:stop:step]
71library/hotshot,,:lineno,"ncalls tottime percall cumtime percall filename:lineno(function)"
72library/httplib,,:port,host:port
Ezio Melotti93324d72013-03-28 05:47:31 +020073library/imaplib,,:MM,"""DD-Mmm-YYYY HH:MM:SS"
74library/imaplib,,:SS,"""DD-Mmm-YYYY HH:MM:SS"
Georg Brandl1e97cb22009-04-08 16:39:04 +000075library/itertools,,:stop,elements from seq[start:stop:step]
76library/itertools,,:step,elements from seq[start:stop:step]
Georg Brandl700cf282009-01-04 10:23:49 +000077library/linecache,,:sys,"sys:x:3:3:sys:/dev:/bin/sh"
Ezio Melotti93324d72013-03-28 05:47:31 +020078library/logging.handlers,,:port,host:port
Georg Brandl700cf282009-01-04 10:23:49 +000079library/mmap,,:i2,obj[i1:i2]
80library/multiprocessing,,:queue,">>> QueueManager.register('get_queue', callable=lambda:queue)"
81library/multiprocessing,,`,">>> l._callmethod('__getitem__', (20,)) # equiv to `l[20]`"
82library/multiprocessing,,`,">>> l._callmethod('__getslice__', (2, 7)) # equiv to `l[2:7]`"
83library/multiprocessing,,`,# `BaseManager`.
84library/multiprocessing,,`,# `Pool.imap()` (which will save on the amount of code needed anyway).
85library/multiprocessing,,`,# A test file for the `multiprocessing` package
86library/multiprocessing,,`,# A test of `multiprocessing.Pool` class
87library/multiprocessing,,`,# Add more tasks using `put()`
Georg Brandl700cf282009-01-04 10:23:49 +000088library/multiprocessing,,`,# in the original order then consider using `Pool.map()` or
89library/multiprocessing,,`,# Not sure if we should synchronize access to `socket.accept()` method by
90library/multiprocessing,,`,# object. (We import `multiprocessing.reduction` to enable this pickling.)
91library/multiprocessing,,`,# register the Foo class; make `f()` and `g()` accessible via proxy
92library/multiprocessing,,`,# register the Foo class; make `g()` and `_h()` accessible via proxy
93library/multiprocessing,,`,# register the generator function baz; use `GeneratorProxy` to make proxies
Georg Brandl700cf282009-01-04 10:23:49 +000094library/optparse,,:len,"del parser.rargs[:len(value)]"
95library/os.path,,:foo,c:foo
Ezio Melotti93324d72013-03-28 05:47:31 +020096library/pdb,,:lineno,filename:lineno
Georg Brandl700cf282009-01-04 10:23:49 +000097library/posix,,`,"CFLAGS=""`getconf LFS_CFLAGS`"" OPT=""-g -O2 $CFLAGS"""
98library/profile,,:lineno,ncalls tottime percall cumtime percall filename:lineno(function)
99library/profile,,:lineno,filename:lineno(function)
100library/pyexpat,,:elem1,<py:elem1 />
101library/pyexpat,,:py,"xmlns:py = ""http://www.python.org/ns/"">"
Georg Brandld061efa2013-11-25 08:34:24 +0100102library/smtplib,,:port,method must support that as well as a regular host:port
Georg Brandl700cf282009-01-04 10:23:49 +0000103library/socket,,::,'5aef:2b::8'
104library/sqlite3,,:memory,
Ezio Melotti93324d72013-03-28 05:47:31 +0200105library/sqlite3,,:who,"cur.execute(""select * from people where name_last=:who and age=:age"", {""who"": who, ""age"": age})"
106library/sqlite3,,:age,"cur.execute(""select * from people where name_last=:who and age=:age"", {""who"": who, ""age"": age})"
Georg Brandl700cf282009-01-04 10:23:49 +0000107library/ssl,,:My,"Organization Name (eg, company) [Internet Widgits Pty Ltd]:My Organization, Inc."
108library/ssl,,:My,"Organizational Unit Name (eg, section) []:My Group"
109library/ssl,,:myserver,"Common Name (eg, YOUR name) []:myserver.mygroup.myorganization.com"
110library/ssl,,:MyState,State or Province Name (full name) [Some-State]:MyState
111library/ssl,,:ops,Email Address []:ops@myserver.mygroup.myorganization.com
112library/ssl,,:Some,"Locality Name (eg, city) []:Some City"
113library/ssl,,:US,Country Name (2 letter code) [AU]:US
114library/stdtypes,,:len,s[len(s):len(s)]
Georg Brandld061efa2013-11-25 08:34:24 +0100115library/stdtypes,,:end,s[start:end]
Georg Brandl700cf282009-01-04 10:23:49 +0000116library/string,,:end,s[start:end]
117library/subprocess,,`,"output=`mycmd myarg`"
118library/subprocess,,`,"output=`dmesg | grep hda`"
119library/tarfile,,:compression,filemode[:compression]
120library/tarfile,,:gz,
121library/tarfile,,:bz2,
122library/time,,:mm,
123library/time,,:ss,
124library/turtle,,::,Example::
125library/urllib,,:port,:port
126library/urllib2,,:password,"""joe:password@python.org"""
Georg Brandld061efa2013-11-25 08:34:24 +0100127library/urllib2,,:close,Connection:close
Georg Brandl700cf282009-01-04 10:23:49 +0000128library/uuid,,:uuid,urn:uuid:12345678-1234-5678-1234-567812345678
Zachary Waree6f87fc2015-07-06 00:08:15 -0500129library/xml.etree.elementtree,,:sometag,prefix:sometag
130library/xml.etree.elementtree,,:fictional,"<actors xmlns:fictional=""http://characters.example.com"""
131library/xml.etree.elementtree,,:character,<fictional:character>Lancelot</fictional:character>
132library/xml.etree.elementtree,,:character,<fictional:character>Archie Leach</fictional:character>
133library/xml.etree.elementtree,,:character,<fictional:character>Sir Robin</fictional:character>
134library/xml.etree.elementtree,,:character,<fictional:character>Gunther</fictional:character>
135library/xml.etree.elementtree,,:character,<fictional:character>Commander Clement</fictional:character>
136library/xml.etree.elementtree,,:actor,"for actor in root.findall('real_person:actor', ns):"
137library/xml.etree.elementtree,,:name,"name = actor.find('real_person:name', ns)"
138library/xml.etree.elementtree,,:character,"for char in actor.findall('role:character', ns):"
Georg Brandl700cf282009-01-04 10:23:49 +0000139library/xmlrpclib,,:pass,http://user:pass@host:port/path
140library/xmlrpclib,,:pass,user:pass
141library/xmlrpclib,,:port,http://user:pass@host:port/path
142license,,`,THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
143license,,:zooko,mailto:zooko@zooko.com
144license,,`,THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
Georg Brandld061efa2013-11-25 08:34:24 +0100145license,,`,* THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
146license,,`,* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
147license,,`,"``Software''), to deal in the Software without restriction, including"
148license,,`,"THE SOFTWARE IS PROVIDED ``AS IS'', WITHOUT WARRANTY OF ANY KIND,"
Georg Brandl700cf282009-01-04 10:23:49 +0000149reference/datamodel,,:step,a[i:j:step]
150reference/datamodel,,:max,
151reference/expressions,,:index,x[index:index]
Georg Brandl700cf282009-01-04 10:23:49 +0000152reference/expressions,,`,`expressions...`
Ezio Melotti93324d72013-03-28 05:47:31 +0200153reference/expressions,,`,"""`"""
Georg Brandl700cf282009-01-04 10:23:49 +0000154reference/grammar,,`,'`' testlist1 '`'
155reference/lexical_analysis,,:fileencoding,# vim:fileencoding=<encoding-name>
156reference/lexical_analysis,,`,", : . ` = ;"
157tutorial/datastructures,,:value,key:value pairs within the braces adds initial key:value pairs
158tutorial/datastructures,,:value,It is also possible to delete a key:value
159tutorial/stdlib2,,:start,"fields = struct.unpack('<IIIHH', data[start:start+16])"
160tutorial/stdlib2,,:start,extra = data[start:start+extra_size]
161tutorial/stdlib2,,:start,filename = data[start:start+filenamesize]
162tutorial/stdlib2,,:config,"logging.warning('Warning:config file %s not found', 'server.conf')"
163tutorial/stdlib2,,:config,WARNING:root:Warning:config file server.conf not found
164tutorial/stdlib2,,:Critical,CRITICAL:root:Critical error -- shutting down
165tutorial/stdlib2,,:Error,ERROR:root:Error occurred
166tutorial/stdlib2,,:root,CRITICAL:root:Critical error -- shutting down
167tutorial/stdlib2,,:root,ERROR:root:Error occurred
168tutorial/stdlib2,,:root,WARNING:root:Warning:config file server.conf not found
169tutorial/stdlib2,,:Warning,WARNING:root:Warning:config file server.conf not found
170using/cmdline,,:line,file:line: category: message
171using/cmdline,,:category,action:message:category:module:line
172using/cmdline,,:line,action:message:category:module:line
173using/cmdline,,:message,action:message:category:module:line
174using/cmdline,,:module,action:message:category:module:line
175using/cmdline,,:errorhandler,:errorhandler
Georg Brandld061efa2013-11-25 08:34:24 +0100176using/unix,,:Packaging,http://en.opensuse.org/Portal:Packaging
Georg Brandl700cf282009-01-04 10:23:49 +0000177whatsnew/2.0,418,:len,
178whatsnew/2.3,,::,
179whatsnew/2.3,,:config,
180whatsnew/2.3,,:Critical,
181whatsnew/2.3,,:Error,
182whatsnew/2.3,,:Problem,
183whatsnew/2.3,,:root,
184whatsnew/2.3,,:Warning,
185whatsnew/2.4,,::,
186whatsnew/2.4,,:System,
187whatsnew/2.5,,:memory,:memory:
188whatsnew/2.5,,:step,[start:stop:step]
189whatsnew/2.5,,:stop,[start:stop:step]
Zachary Waree6f87fc2015-07-06 00:08:15 -0500190whatsnew/2.7,,:Sunday,'2009:4:Sunday'
191whatsnew/2.7,,::,"export PYTHONWARNINGS=all,error:::Cookie:0"
192whatsnew/2.7,,:Cookie,"export PYTHONWARNINGS=all,error:::Cookie:0"
Georg Brandl24710632010-10-06 10:47:20 +0000193whatsnew/2.7,,::,>>> urlparse.urlparse('http://[1080::8:800:200C:417A]/foo')
194whatsnew/2.7,,::,"ParseResult(scheme='http', netloc='[1080::8:800:200C:417A]',"