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