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