• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1c-api/arg,,:ref,"PyArg_ParseTuple(args, ""O|O:ref"", &object, &callback)"
2c-api/list,,:high,list[low:high]
3c-api/sequence,,:i2,o[i1:i2]
4c-api/unicode,,:end,str[start:end]
5distutils/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)) {"
10faq/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]:
14howto/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"
24howto/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
45howto/pyporting,,::,Programming Language :: Python :: 2
46howto/pyporting,,::,Programming Language :: Python :: 3
47howto/regex,,::,
48howto/regex,,:foo,(?:foo)
49howto/urllib2,,:password,"""joe:password@example.com"""
50library/audioop,,:ipos,"# factor = audioop.findfactor(in_test[ipos*2:ipos*2+len(out_test)],"
51library/bisect,,:hi,all(val >= x for val in a[i:hi])
52library/bisect,,:hi,all(val > x for val in a[i:hi])
53library/cookie,,`,!#$%&'*+-.^_`|~
54library/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``
67library/exceptions,,:err,err.object[err.start:err.end]
68library/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
73library/imaplib,,:MM,"""DD-Mmm-YYYY HH:MM:SS"
74library/imaplib,,:SS,"""DD-Mmm-YYYY HH:MM:SS"
75library/itertools,,:stop,elements from seq[start:stop:step]
76library/itertools,,:step,elements from seq[start:stop:step]
77library/linecache,,:sys,"sys:x:3:3:sys:/dev:/bin/sh"
78library/logging.handlers,,:port,host:port
79library/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()`
88library/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
94library/optparse,,:len,"del parser.rargs[:len(value)]"
95library/os.path,,:foo,c:foo
96library/pdb,,:lineno,filename:lineno
97library/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/"">"
102library/re,,`,!#$%&'*+-.^_`|~:
103library/re,,`,[abcdefghijklmnopqrstuvwxyz0123456789\!\#\$\%\&\'\*\+\-\.\^\_\`\|\~\:]+
104library/smtplib,,:port,method must support that as well as a regular host:port
105library/socket,,::,'5aef:2b::8'
106library/sqlite3,,:memory,
107library/sqlite3,,:who,"cur.execute(""select * from people where name_last=:who and age=:age"", {""who"": who, ""age"": age})"
108library/sqlite3,,:age,"cur.execute(""select * from people where name_last=:who and age=:age"", {""who"": who, ""age"": age})"
109library/ssl,,:My,"Organization Name (eg, company) [Internet Widgits Pty Ltd]:My Organization, Inc."
110library/ssl,,:My,"Organizational Unit Name (eg, section) []:My Group"
111library/ssl,,:myserver,"Common Name (eg, YOUR name) []:myserver.mygroup.myorganization.com"
112library/ssl,,:MyState,State or Province Name (full name) [Some-State]:MyState
113library/ssl,,:ops,Email Address []:ops@myserver.mygroup.myorganization.com
114library/ssl,,:Some,"Locality Name (eg, city) []:Some City"
115library/ssl,,:US,Country Name (2 letter code) [AU]:US
116library/stdtypes,,:len,s[len(s):len(s)]
117library/stdtypes,,:end,s[start:end]
118library/string,,:end,s[start:end]
119library/subprocess,,`,"output=`mycmd myarg`"
120library/subprocess,,`,"output=`dmesg | grep hda`"
121library/tarfile,,:compression,filemode[:compression]
122library/tarfile,,:gz,
123library/tarfile,,:bz2,
124library/time,,:mm,
125library/time,,:ss,
126library/turtle,,::,Example::
127library/urllib,,:port,:port
128library/urllib2,,:password,"""joe:password@python.org"""
129library/urllib2,,:close,Connection:close
130library/uuid,,:uuid,urn:uuid:12345678-1234-5678-1234-567812345678
131library/xml.etree.elementtree,,:sometag,prefix:sometag
132library/xml.etree.elementtree,,:fictional,"<actors xmlns:fictional=""http://characters.example.com"""
133library/xml.etree.elementtree,,:character,<fictional:character>Lancelot</fictional:character>
134library/xml.etree.elementtree,,:character,<fictional:character>Archie Leach</fictional:character>
135library/xml.etree.elementtree,,:character,<fictional:character>Sir Robin</fictional:character>
136library/xml.etree.elementtree,,:character,<fictional:character>Gunther</fictional:character>
137library/xml.etree.elementtree,,:character,<fictional:character>Commander Clement</fictional:character>
138library/xml.etree.elementtree,,:actor,"for actor in root.findall('real_person:actor', ns):"
139library/xml.etree.elementtree,,:name,"name = actor.find('real_person:name', ns)"
140library/xml.etree.elementtree,,:character,"for char in actor.findall('role:character', ns):"
141library/xmlrpclib,,:pass,http://user:pass@host:port/path
142library/xmlrpclib,,:pass,user:pass
143library/xmlrpclib,,:port,http://user:pass@host:port/path
144license,,`,THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
145license,,:zooko,mailto:zooko@zooko.com
146license,,`,THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
147license,,`,* THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
148license,,`,* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
149license,,`,"``Software''), to deal in the Software without restriction, including"
150license,,`,"THE SOFTWARE IS PROVIDED ``AS IS'', WITHOUT WARRANTY OF ANY KIND,"
151reference/datamodel,,:step,a[i:j:step]
152reference/datamodel,,:max,
153reference/expressions,,:index,x[index:index]
154reference/expressions,,`,`expressions...`
155reference/expressions,350,`,`
156reference/grammar,,`,'`' testlist1 '`'
157reference/lexical_analysis,,:fileencoding,# vim:fileencoding=<encoding-name>
158reference/lexical_analysis,,`,",       :       .       `       =       ;"
159tutorial/datastructures,,:value,key:value pairs within the braces adds initial key:value pairs
160tutorial/datastructures,,:value,It is also possible to delete a key:value
161tutorial/stdlib2,,:start,"fields = struct.unpack('<IIIHH', data[start:start+16])"
162tutorial/stdlib2,,:start,extra = data[start:start+extra_size]
163tutorial/stdlib2,,:start,filename = data[start:start+filenamesize]
164tutorial/stdlib2,,:config,"logging.warning('Warning:config file %s not found', 'server.conf')"
165tutorial/stdlib2,,:config,WARNING:root:Warning:config file server.conf not found
166tutorial/stdlib2,,:Critical,CRITICAL:root:Critical error -- shutting down
167tutorial/stdlib2,,:Error,ERROR:root:Error occurred
168tutorial/stdlib2,,:root,CRITICAL:root:Critical error -- shutting down
169tutorial/stdlib2,,:root,ERROR:root:Error occurred
170tutorial/stdlib2,,:root,WARNING:root:Warning:config file server.conf not found
171tutorial/stdlib2,,:Warning,WARNING:root:Warning:config file server.conf not found
172using/cmdline,,:line,file:line: category: message
173using/cmdline,,:category,action:message:category:module:line
174using/cmdline,,:line,action:message:category:module:line
175using/cmdline,,:message,action:message:category:module:line
176using/cmdline,,:module,action:message:category:module:line
177using/cmdline,,:errorhandler,:errorhandler
178using/unix,,:Packaging,https://en.opensuse.org/Portal:Packaging
179whatsnew/2.0,418,:len,
180whatsnew/2.3,,::,
181whatsnew/2.3,,:config,
182whatsnew/2.3,,:Critical,
183whatsnew/2.3,,:Error,
184whatsnew/2.3,,:Problem,
185whatsnew/2.3,,:root,
186whatsnew/2.3,,:Warning,
187whatsnew/2.4,,::,
188whatsnew/2.4,,:System,
189whatsnew/2.5,,:memory,:memory:
190whatsnew/2.5,,:step,[start:stop:step]
191whatsnew/2.5,,:stop,[start:stop:step]
192whatsnew/2.7,,:Sunday,'2009:4:Sunday'
193whatsnew/2.7,,::,"export PYTHONWARNINGS=all,error:::Cookie:0"
194whatsnew/2.7,,:Cookie,"export PYTHONWARNINGS=all,error:::Cookie:0"
195whatsnew/2.7,,::,>>> urlparse.urlparse('http://[1080::8:800:200C:417A]/foo')
196whatsnew/2.7,,::,"ParseResult(scheme='http', netloc='[1080::8:800:200C:417A]',"
197