1
c-api/arg,,:ref,"PyArg_ParseTuple(args, ""O|O:ref"", &object, &callback)"
2
c-api/list,,:high,list[low:high]
3
c-api/sequence,,:i2,del o[i1:i2]
4
c-api/sequence,,:i2,o[i1:i2]
5
c-api/unicode,,:end,str[start:end]
6
c-api/unicode,,:start,unicode[start:start+length]
7
distutils/examples,267,`,This is the description of the ``foobar`` package.
8
distutils/setupscript,,::,
9
extending/embedding,,:numargs,"if(!PyArg_ParseTuple(args, "":numargs""))"
10
extending/extending,,:myfunction,"PyArg_ParseTuple(args, ""D:myfunction"", &c);"
11
extending/extending,,:set,"if (PyArg_ParseTuple(args, ""O:set_callback"", &temp)) {"
12
extending/newtypes,,:call,"if (!PyArg_ParseTuple(args, ""sss:call"", &arg1, &arg2, &arg3)) {"
13
extending/windows,,:initspam,/export:initspam
14
faq/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("
15
faq/programming,,::,for x in sequence[::-1]:
16
faq/programming,,:reduce,"print((lambda Ru,Ro,Iu,Io,IM,Sx,Sy:reduce(lambda x,y:x+y,map(lambda y,"
17
faq/programming,,:reduce,"Sx=Sx,Sy=Sy:reduce(lambda x,y:x+y,map(lambda x,xc=Ru,yc=yc,Ru=Ru,Ro=Ro,"
18
faq/windows,,:bd8afb90ebf2,"Python 3.3.0 (v3.3.0:bd8afb90ebf2, Sep 29 2012, 10:55:48) [MSC v.1600 32 bit (Intel)] on win32"
19
howto/cporting,,:encode,"if (!PyArg_ParseTuple(args, ""O:encode_object"", &myobj))"
20
howto/cporting,,:say,"if (!PyArg_ParseTuple(args, ""U:say_hello"", &name))"
21
howto/curses,,:black,"colors when it activates color mode. They are: 0:black, 1:red,"
22
howto/curses,,:red,"colors when it activates color mode. They are: 0:black, 1:red,"
23
howto/curses,,:green,"2:green, 3:yellow, 4:blue, 5:magenta, 6:cyan, and 7:white. The"
24
howto/curses,,:yellow,"2:green, 3:yellow, 4:blue, 5:magenta, 6:cyan, and 7:white. The"
25
howto/curses,,:blue,"2:green, 3:yellow, 4:blue, 5:magenta, 6:cyan, and 7:white. The"
26
howto/curses,,:magenta,"2:green, 3:yellow, 4:blue, 5:magenta, 6:cyan, and 7:white. The"
27
howto/curses,,:cyan,"2:green, 3:yellow, 4:blue, 5:magenta, 6:cyan, and 7:white. The"
28
howto/curses,,:white,"2:green, 3:yellow, 4:blue, 5:magenta, 6:cyan, and 7:white. The"
29
howto/ipaddress,,:DB8,>>> ipaddress.ip_address('2001:DB8::1')
30
howto/ipaddress,,::,>>> ipaddress.ip_address('2001:DB8::1')
31
howto/ipaddress,,:db8,IPv6Address('2001:db8::1')
32
howto/ipaddress,,::,IPv6Address('2001:db8::1')
33
howto/ipaddress,,::,IPv6Address('::1')
34
howto/ipaddress,,:db8,>>> ipaddress.ip_network('2001:db8::0/96')
35
howto/ipaddress,,::,>>> ipaddress.ip_network('2001:db8::0/96')
36
howto/ipaddress,,:db8,IPv6Network('2001:db8::/96')
37
howto/ipaddress,,::,IPv6Network('2001:db8::/96')
38
howto/ipaddress,,:db8,IPv6Network('2001:db8::/128')
39
howto/ipaddress,,::,IPv6Network('2001:db8::/128')
40
howto/ipaddress,,:db8,IPv6Interface('2001:db8::1/96')
41
howto/ipaddress,,::,IPv6Interface('2001:db8::1/96')
42
howto/ipaddress,,:db8,>>> addr6 = ipaddress.ip_address('2001:db8::1')
43
howto/ipaddress,,::,>>> addr6 = ipaddress.ip_address('2001:db8::1')
44
howto/ipaddress,,:db8,>>> host6 = ipaddress.ip_interface('2001:db8::1/96')
45
howto/ipaddress,,::,>>> host6 = ipaddress.ip_interface('2001:db8::1/96')
46
howto/ipaddress,,:db8,>>> net6 = ipaddress.ip_network('2001:db8::0/96')
47
howto/ipaddress,,::,>>> net6 = ipaddress.ip_network('2001:db8::0/96')
48
howto/ipaddress,,:ffff,IPv6Address('ffff:ffff:ffff:ffff:ffff:ffff::')
49
howto/ipaddress,,::,IPv6Address('ffff:ffff:ffff:ffff:ffff:ffff::')
50
howto/ipaddress,,::,IPv6Address('::ffff:ffff')
51
howto/ipaddress,,:ffff,IPv6Address('::ffff:ffff')
52
howto/ipaddress,,:db8,'2001:db8::/96'
53
howto/ipaddress,,::,'2001:db8::/96'
54
howto/ipaddress,,:db8,>>> ipaddress.ip_interface('2001:db8::1/96')
55
howto/ipaddress,,::,>>> ipaddress.ip_interface('2001:db8::1/96')
56
howto/ipaddress,,:db8,'2001:db8::1'
57
howto/ipaddress,,::,'2001:db8::1'
58
howto/ipaddress,,:db8,IPv6Address('2001:db8::ffff:ffff')
59
howto/ipaddress,,::,IPv6Address('2001:db8::ffff:ffff')
60
howto/ipaddress,,:ffff,IPv6Address('2001:db8::ffff:ffff')
61
howto/logging,,:And,"WARNING:And this, too"
62
howto/logging,,:And,"WARNING:root:And this, too"
63
howto/logging,,:Doing,INFO:root:Doing something
64
howto/logging,,:Finished,INFO:root:Finished
65
howto/logging,,:logger,severity:logger name:message
66
howto/logging,,:Look,WARNING:root:Look before you leap!
67
howto/logging,,:message,severity:logger name:message
68
howto/logging,,:root,DEBUG:root:This message should go to the log file
69
howto/logging,,:root,INFO:root:Doing something
70
howto/logging,,:root,INFO:root:Finished
71
howto/logging,,:root,INFO:root:So should this
72
howto/logging,,:root,INFO:root:Started
73
howto/logging,,:root,"WARNING:root:And this, too"
74
howto/logging,,:root,WARNING:root:Look before you leap!
75
howto/logging,,:root,WARNING:root:Watch out!
76
howto/logging,,:So,INFO:root:So should this
77
howto/logging,,:So,INFO:So should this
78
howto/logging,,:Started,INFO:root:Started
79
howto/logging,,:This,DEBUG:root:This message should go to the log file
80
howto/logging,,:This,DEBUG:This message should appear on the console
81
howto/logging,,:Watch,WARNING:root:Watch out!
82
howto/pyporting,75,::,# make sure to use :: Python *and* :: Python :: 3 so
83
howto/pyporting,75,::,"'Programming Language :: Python',"
84
howto/pyporting,75,::,'Programming Language :: Python :: 3'
86
howto/regex,,:foo,(?:foo)
87
howto/urllib2,,:example,"for example ""joe@password:example.com"""
88
library/audioop,,:ipos,"# factor = audioop.findfactor(in_test[ipos*2:ipos*2+len(out_test)],"
89
library/bisect,32,:hi,all(val >= x for val in a[i:hi])
90
library/bisect,42,:hi,all(val > x for val in a[i:hi])
91
library/configparser,,:home,my_dir: ${Common:home_dir}/twosheds
92
library/configparser,,:option,${section:option}
93
library/configparser,,:path,python_dir: ${Frameworks:path}/Python/Versions/${Frameworks:Python}
94
library/configparser,,:Python,python_dir: ${Frameworks:path}/Python/Versions/${Frameworks:Python}
95
library/configparser,,:system,path: ${Common:system_dir}/Library/Frameworks/
96
library/datetime,,:MM,
97
library/datetime,,:SS,
98
library/decimal,,:optional,"trailneg:optional trailing minus indicator"
99
library/difflib,,:ahi,a[alo:ahi]
100
library/difflib,,:bhi,b[blo:bhi]
101
library/difflib,,:i1,
102
library/difflib,,:i2,
103
library/difflib,,:j2,
104
library/doctest,,`,``factorial`` from the ``example`` module:
105
library/doctest,,`,The ``example`` module
106
library/doctest,,`,Using ``factorial``
107
library/exceptions,,:err,err.object[err.start:err.end]
108
library/functions,,:step,a[start:stop:step]
109
library/functions,,:stop,"a[start:stop, i]"
110
library/functions,,:stop,a[start:stop:step]
111
library/http.client,,:port,host:port
112
library/http.cookies,,`,!#$%&'*+-.^_`|~:
113
library/imaplib,,:MM,"""DD-Mmm-YYYY HH:MM:SS"
114
library/imaplib,,:SS,"""DD-Mmm-YYYY HH:MM:SS"
115
library/inspect,,:int,">>> def foo(a, *, b:int, **kwargs):"
116
library/inspect,,:int,"'(a, *, b:int, **kwargs)'"
117
library/inspect,,:int,'b:int'
118
library/ipaddress,,:db8,>>> ipaddress.ip_address('2001:db8::')
119
library/ipaddress,,::,>>> ipaddress.ip_address('2001:db8::')
120
library/ipaddress,,:db8,IPv6Address('2001:db8::')
121
library/ipaddress,,::,IPv6Address('2001:db8::')
122
library/ipaddress,,:db8,>>> ipaddress.IPv6Address('2001:db8::1000')
123
library/ipaddress,,::,>>> ipaddress.IPv6Address('2001:db8::1000')
124
library/ipaddress,,:db8,IPv6Address('2001:db8::1000')
125
library/ipaddress,,::,IPv6Address('2001:db8::1000')
126
library/ipaddress,,::,"""::abc:7:def"""
127
library/ipaddress,,:def,"""::abc:7:def"""
128
library/ipaddress,,::,::FFFF/96
129
library/ipaddress,,::,2002::/16
130
library/ipaddress,,::,2001::/32
131
library/ipaddress,,::,>>> str(ipaddress.IPv6Address('::1'))
132
library/ipaddress,,::,'::1'
133
library/ipaddress,,:ff00,ffff:ff00::
134
library/ipaddress,,:db00,2001:db00::0/24
135
library/ipaddress,,::,2001:db00::0/24
136
library/ipaddress,,:db00,2001:db00::0/ffff:ff00::
137
library/ipaddress,,::,2001:db00::0/ffff:ff00::
138
library/itertools,,:step,elements from seq[start:stop:step]
139
library/itertools,,:stop,elements from seq[start:stop:step]
140
library/linecache,,:sys,"sys:x:3:3:sys:/dev:/bin/sh"
141
library/logging.handlers,,:port,host:port
142
library/mmap,,:i2,obj[i1:i2]
143
library/multiprocessing,,`,# Add more tasks using `put()`
144
library/multiprocessing,,`,# A test file for the `multiprocessing` package
145
library/multiprocessing,,`,# A test of `multiprocessing.Pool` class
146
library/multiprocessing,,`,# `BaseManager`.
147
library/multiprocessing,,`,# in the original order then consider using `Pool.map()` or
148
library/multiprocessing,,`,">>> l._callmethod('__getitem__', (20,)) # equiv to `l[20]`"
149
library/multiprocessing,,`,">>> l._callmethod('__getslice__', (2, 7)) # equiv to `l[2:7]`"
150
library/multiprocessing,,`,# Not sure if we should synchronize access to `socket.accept()` method by
151
library/multiprocessing,,`,# object. (We import `multiprocessing.reduction` to enable this pickling.)
152
library/multiprocessing,,`,# `Pool.imap()` (which will save on the amount of code needed anyway).
153
library/multiprocessing,,:queue,">>> QueueManager.register('get_queue', callable=lambda:queue)"
154
library/multiprocessing,,`,# register the Foo class; make `f()` and `g()` accessible via proxy
155
library/multiprocessing,,`,# register the Foo class; make `g()` and `_h()` accessible via proxy
156
library/multiprocessing,,`,# register the generator function baz; use `GeneratorProxy` to make proxies
157
library/nntplib,,:bytes,:bytes
158
library/nntplib,,:lines,:lines
159
library/optparse,,:len,"del parser.rargs[:len(value)]"
160
library/os.path,,:foo,c:foo
161
library/pdb,,:lineno,filename:lineno
162
library/pickle,,:memory,"conn = sqlite3.connect("":memory:"")"
163
library/posix,,`,"CFLAGS=""`getconf LFS_CFLAGS`"" OPT=""-g -O2 $CFLAGS"""
164
library/pprint,,::,"'Programming Language :: Python :: 2 :: Only'],"
165
library/pprint,,::,"'Programming Language :: Python :: 2.6',"
166
library/pprint,,::,"'Programming Language :: Python :: 2.7',"
167
library/profile,,:lineno,filename:lineno(function)
168
library/pyexpat,,:elem1,<py:elem1 />
169
library/pyexpat,,:py,"xmlns:py = ""http://www.python.org/ns/"">"
170
library/smtplib,,:port,method must support that as well as a regular host:port
171
library/socket,,::,"(10, 1, 6, '', ('2001:888:2000:d::a2', 80, 0, 0))]"
172
library/socket,,::,'5aef:2b::8'
173
library/socket,,:can,"return (can_id, can_dlc, data[:can_dlc])"
174
library/socket,,:len,fds.fromstring(cmsg_data[:len(cmsg_data) - (len(cmsg_data) % fds.itemsize)])
175
library/sqlite3,,:age,"cur.execute(""select * from people where name_last=:who and age=:age"", {""who"": who, ""age"": age})"
176
library/sqlite3,,:memory,
177
library/sqlite3,,:who,"cur.execute(""select * from people where name_last=:who and age=:age"", {""who"": who, ""age"": age})"
178
library/sqlite3,,:path,"db = sqlite3.connect('file:path/to/database?mode=ro', uri=True)"
179
library/ssl,,:My,"Organizational Unit Name (eg, section) []:My Group"
180
library/ssl,,:My,"Organization Name (eg, company) [Internet Widgits Pty Ltd]:My Organization, Inc."
181
library/ssl,,:myserver,"Common Name (eg, YOUR name) []:myserver.mygroup.myorganization.com"
182
library/ssl,,:MyState,State or Province Name (full name) [Some-State]:MyState
183
library/ssl,,:ops,Email Address []:ops@myserver.mygroup.myorganization.com
184
library/ssl,,:Some,"Locality Name (eg, city) []:Some City"
185
library/ssl,,:US,Country Name (2 letter code) [AU]:US
186
library/stdtypes,,::,>>> a[::-1].tolist()
187
library/stdtypes,,::,>>> a[::2].tolist()
188
library/stdtypes,,:end,s[start:end]
189
library/stdtypes,,::,>>> hash(v[::-2]) == hash(b'abcefg'[::-2])
190
library/stdtypes,,:len,s[len(s):len(s)]
191
library/stdtypes,,::,>>> y = m[::2]
192
library/stdtypes,,::,>>> z = y[::-2]
193
library/subprocess,,`,"output=`dmesg | grep hda`"
194
library/subprocess,,`,"output=`mycmd myarg`"
195
library/tarfile,,:bz2,
196
library/tarfile,,:compression,filemode[:compression]
197
library/tarfile,,:gz,
198
library/tarfile,,:xz,'a:xz'
199
library/tarfile,,:xz,'r:xz'
200
library/tarfile,,:xz,'w:xz'
203
library/turtle,,::,Example::
204
library/urllib.request,,:close,Connection:close
205
library/urllib.request,,:lang,"xmlns=""http://www.w3.org/1999/xhtml"" xml:lang=""en"" lang=""en"">\n\n<head>\n"
206
library/urllib.request,,:password,"""joe:password@python.org"""
207
library/uuid,,:uuid,urn:uuid:12345678-1234-5678-1234-567812345678
208
library/venv,,:param,":param nodist: If True, setuptools and pip are not installed into the"
209
library/venv,,:param,":param progress: If setuptools or pip are installed, the progress of the"
210
library/venv,,:param,":param nopip: If True, pip is not installed into the created"
211
library/venv,,:param,:param context: The information for the environment creation request
212
library/xmlrpc.client,,:pass,http://user:pass@host:port/path
213
library/xmlrpc.client,,:pass,user:pass
214
library/xmlrpc.client,,:port,http://user:pass@host:port/path
215
license,,`,"``Software''), to deal in the Software without restriction, including"
216
license,,`,"THE SOFTWARE IS PROVIDED ``AS IS'', WITHOUT WARRANTY OF ANY KIND,"
217
license,,`,* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
218
license,,`,THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
219
license,,`,* THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
220
license,,`,THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
221
license,,:zooko,mailto:zooko@zooko.com
222
reference/expressions,,:index,x[index:index]
223
reference/lexical_analysis,,`,$ ? `
224
reference/lexical_analysis,,:fileencoding,# vim:fileencoding=<encoding-name>
225
tutorial/datastructures,,:value,It is also possible to delete a key:value
226
tutorial/datastructures,,:value,key:value pairs within the braces adds initial key:value pairs
227
tutorial/stdlib2,,:config,"logging.warning('Warning:config file %s not found', 'server.conf')"
228
tutorial/stdlib2,,:config,WARNING:root:Warning:config file server.conf not found
229
tutorial/stdlib2,,:Critical,CRITICAL:root:Critical error -- shutting down
230
tutorial/stdlib2,,:Error,ERROR:root:Error occurred
231
tutorial/stdlib2,,:root,CRITICAL:root:Critical error -- shutting down
232
tutorial/stdlib2,,:root,ERROR:root:Error occurred
233
tutorial/stdlib2,,:root,WARNING:root:Warning:config file server.conf not found
234
tutorial/stdlib2,,:start,extra = data[start:start+extra_size]
235
tutorial/stdlib2,,:start,"fields = struct.unpack('<IIIHH', data[start:start+16])"
236
tutorial/stdlib2,,:start,filename = data[start:start+filenamesize]
237
tutorial/stdlib2,,:Warning,WARNING:root:Warning:config file server.conf not found
238
using/cmdline,,:category,action:message:category:module:line
239
using/cmdline,,:errorhandler,:errorhandler
240
using/cmdline,,:line,action:message:category:module:line
241
using/cmdline,,:line,file:line: category: message
242
using/cmdline,,:message,action:message:category:module:line
243
using/cmdline,,:module,action:message:category:module:line
244
using/unix,,:Packaging,http://en.opensuse.org/Portal:Packaging
245
whatsnew/2.0,418,:len,
247
whatsnew/2.3,,:config,
248
whatsnew/2.3,,:Critical,
249
whatsnew/2.3,,:Error,
250
whatsnew/2.3,,:Problem,
252
whatsnew/2.3,,:Warning,
254
whatsnew/2.4,,:System,
255
whatsnew/2.5,,:memory,:memory:
256
whatsnew/2.5,,:step,[start:stop:step]
257
whatsnew/2.5,,:stop,[start:stop:step]
258
whatsnew/2.7,1619,::,"ParseResult(scheme='http', netloc='[1080::8:800:200C:417A]',"
259
whatsnew/2.7,1619,::,>>> urlparse.urlparse('http://[1080::8:800:200C:417A]/foo')
260
whatsnew/2.7,735,:Sunday,'2009:4:Sunday'
261
whatsnew/2.7,862,:Cookie,"export PYTHONWARNINGS=all,error:::Cookie:0"
262
whatsnew/2.7,862,::,"export PYTHONWARNINGS=all,error:::Cookie:0"
263
whatsnew/3.2,,:affe,"netloc='[dead:beef:cafe:5417:affe:8FA3:deaf:feed]',"
264
whatsnew/3.2,,:affe,>>> urllib.parse.urlparse('http://[dead:beef:cafe:5417:affe:8FA3:deaf:feed]/foo/')
265
whatsnew/3.2,,:beef,"netloc='[dead:beef:cafe:5417:affe:8FA3:deaf:feed]',"
266
whatsnew/3.2,,:beef,>>> urllib.parse.urlparse('http://[dead:beef:cafe:5417:affe:8FA3:deaf:feed]/foo/')
267
whatsnew/3.2,,:cafe,"netloc='[dead:beef:cafe:5417:affe:8FA3:deaf:feed]',"
268
whatsnew/3.2,,:cafe,>>> urllib.parse.urlparse('http://[dead:beef:cafe:5417:affe:8FA3:deaf:feed]/foo/')
269
whatsnew/3.2,,:deaf,"netloc='[dead:beef:cafe:5417:affe:8FA3:deaf:feed]',"
270
whatsnew/3.2,,:deaf,>>> urllib.parse.urlparse('http://[dead:beef:cafe:5417:affe:8FA3:deaf:feed]/foo/')
271
whatsnew/3.2,,:directory,${buildout:directory}/downloads/dist
272
whatsnew/3.2,,::,"$ export PYTHONWARNINGS='ignore::RuntimeWarning::,once::UnicodeWarning::'"
273
whatsnew/3.2,,:feed,"netloc='[dead:beef:cafe:5417:affe:8FA3:deaf:feed]',"
274
whatsnew/3.2,,:feed,>>> urllib.parse.urlparse('http://[dead:beef:cafe:5417:affe:8FA3:deaf:feed]/foo/')
275
whatsnew/3.2,,:gz,">>> with tarfile.open(name='myarchive.tar.gz', mode='w:gz') as tf:"
276
whatsnew/3.2,,:location,zope9-location = ${zope9:location}
277
whatsnew/3.2,,:prefix,zope-conf = ${custom:prefix}/etc/zope.conf
278
whatsnew/changelog,,:platform,:platform:
279
whatsnew/changelog,,:PythonCmd,"With Tk < 8.5 _tkinter.c:PythonCmd() raised UnicodeDecodeError, caused"
280
whatsnew/changelog,,::,": Fix FTP tests for IPv6, bind to ""::1"" instead of ""localhost""."
281
whatsnew/changelog,,::,": Use ""127.0.0.1"" or ""::1"" instead of ""localhost"" as much as"
282
whatsnew/changelog,,:password,user:password