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