Benjamin Peterson | 28d88b4 | 2009-01-09 03:03:23 +0000 | [diff] [blame] | 1 | c-api/arg,,:ref,"PyArg_ParseTuple(args, ""O|O:ref"", &object, &callback)" |
| 2 | c-api/list,,:high,list[low:high] |
Georg Brandl | 0e475c3 | 2012-03-04 16:22:05 +0100 | [diff] [blame] | 3 | c-api/sequence,,:i2,del o[i1:i2] |
Benjamin Peterson | 28d88b4 | 2009-01-09 03:03:23 +0000 | [diff] [blame] | 4 | c-api/sequence,,:i2,o[i1:i2] |
Benjamin Peterson | 28d88b4 | 2009-01-09 03:03:23 +0000 | [diff] [blame] | 5 | c-api/unicode,,:end,str[start:end] |
Georg Brandl | 0e475c3 | 2012-03-04 16:22:05 +0100 | [diff] [blame] | 6 | c-api/unicode,,:start,unicode[start:start+length] |
| 7 | distutils/examples,267,`,This is the description of the ``foobar`` package. |
Benjamin Peterson | 28d88b4 | 2009-01-09 03:03:23 +0000 | [diff] [blame] | 8 | distutils/setupscript,,::, |
| 9 | extending/embedding,,:numargs,"if(!PyArg_ParseTuple(args, "":numargs""))" |
Benjamin Peterson | 28d88b4 | 2009-01-09 03:03:23 +0000 | [diff] [blame] | 10 | extending/extending,,:myfunction,"PyArg_ParseTuple(args, ""D:myfunction"", &c);" |
Georg Brandl | 0e475c3 | 2012-03-04 16:22:05 +0100 | [diff] [blame] | 11 | extending/extending,,:set,"if (PyArg_ParseTuple(args, ""O:set_callback"", &temp)) {" |
Benjamin Peterson | 28d88b4 | 2009-01-09 03:03:23 +0000 | [diff] [blame] | 12 | extending/newtypes,,:call,"if (!PyArg_ParseTuple(args, ""sss:call"", &arg1, &arg2, &arg3)) {" |
Georg Brandl | 0e475c3 | 2012-03-04 16:22:05 +0100 | [diff] [blame] | 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 | faq/programming,,:reduce,"print((lambda Ru,Ro,Iu,Io,IM,Sx,Sy:reduce(lambda x,y:x+y,map(lambda y," |
| 16 | faq/programming,,:reduce,"Sx=Sx,Sy=Sy:reduce(lambda x,y:x+y,map(lambda x,xc=Ru,yc=yc,Ru=Ru,Ro=Ro," |
Ezio Melotti | e5caf29 | 2013-03-28 04:54:58 +0200 | [diff] [blame] | 17 | 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" |
Benjamin Peterson | 28d88b4 | 2009-01-09 03:03:23 +0000 | [diff] [blame] | 18 | howto/cporting,,:encode,"if (!PyArg_ParseTuple(args, ""O:encode_object"", &myobj))" |
| 19 | howto/cporting,,:say,"if (!PyArg_ParseTuple(args, ""U:say_hello"", &name))" |
Georg Brandl | 325a1c2 | 2013-10-27 09:16:01 +0100 | [diff] [blame] | 20 | howto/curses,,:black,"colors when it activates color mode. They are: 0:black, 1:red," |
| 21 | howto/curses,,:red,"colors when it activates color mode. They are: 0:black, 1:red," |
| 22 | howto/curses,,:green,"2:green, 3:yellow, 4:blue, 5:magenta, 6:cyan, and 7:white. The" |
| 23 | howto/curses,,:yellow,"2:green, 3:yellow, 4:blue, 5:magenta, 6:cyan, and 7:white. The" |
| 24 | howto/curses,,:blue,"2:green, 3:yellow, 4:blue, 5:magenta, 6:cyan, and 7:white. The" |
| 25 | howto/curses,,:magenta,"2:green, 3:yellow, 4:blue, 5:magenta, 6:cyan, and 7:white. The" |
| 26 | howto/curses,,:cyan,"2:green, 3:yellow, 4:blue, 5:magenta, 6:cyan, and 7:white. The" |
| 27 | howto/curses,,:white,"2:green, 3:yellow, 4:blue, 5:magenta, 6:cyan, and 7:white. The" |
Georg Brandl | 3539afd | 2012-05-30 22:03:20 +0200 | [diff] [blame] | 28 | howto/ipaddress,,:DB8,>>> ipaddress.ip_address('2001:DB8::1') |
| 29 | howto/ipaddress,,::,>>> ipaddress.ip_address('2001:DB8::1') |
| 30 | howto/ipaddress,,:db8,IPv6Address('2001:db8::1') |
| 31 | howto/ipaddress,,::,IPv6Address('2001:db8::1') |
Georg Brandl | 3539afd | 2012-05-30 22:03:20 +0200 | [diff] [blame] | 32 | howto/ipaddress,,::,IPv6Address('::1') |
| 33 | howto/ipaddress,,:db8,>>> ipaddress.ip_network('2001:db8::0/96') |
| 34 | howto/ipaddress,,::,>>> ipaddress.ip_network('2001:db8::0/96') |
| 35 | howto/ipaddress,,:db8,IPv6Network('2001:db8::/96') |
| 36 | howto/ipaddress,,::,IPv6Network('2001:db8::/96') |
| 37 | howto/ipaddress,,:db8,IPv6Network('2001:db8::/128') |
| 38 | howto/ipaddress,,::,IPv6Network('2001:db8::/128') |
Georg Brandl | 3539afd | 2012-05-30 22:03:20 +0200 | [diff] [blame] | 39 | howto/ipaddress,,:db8,IPv6Interface('2001:db8::1/96') |
| 40 | howto/ipaddress,,::,IPv6Interface('2001:db8::1/96') |
| 41 | howto/ipaddress,,:db8,>>> addr6 = ipaddress.ip_address('2001:db8::1') |
| 42 | howto/ipaddress,,::,>>> addr6 = ipaddress.ip_address('2001:db8::1') |
| 43 | howto/ipaddress,,:db8,>>> host6 = ipaddress.ip_interface('2001:db8::1/96') |
| 44 | howto/ipaddress,,::,>>> host6 = ipaddress.ip_interface('2001:db8::1/96') |
Georg Brandl | 3539afd | 2012-05-30 22:03:20 +0200 | [diff] [blame] | 45 | howto/ipaddress,,:db8,>>> net6 = ipaddress.ip_network('2001:db8::0/96') |
| 46 | howto/ipaddress,,::,>>> net6 = ipaddress.ip_network('2001:db8::0/96') |
| 47 | howto/ipaddress,,:ffff,IPv6Address('ffff:ffff:ffff:ffff:ffff:ffff::') |
| 48 | howto/ipaddress,,::,IPv6Address('ffff:ffff:ffff:ffff:ffff:ffff::') |
| 49 | howto/ipaddress,,::,IPv6Address('::ffff:ffff') |
| 50 | howto/ipaddress,,:ffff,IPv6Address('::ffff:ffff') |
Georg Brandl | a81b481 | 2012-08-11 08:43:59 +0200 | [diff] [blame] | 51 | howto/ipaddress,,:db8,'2001:db8::/96' |
| 52 | howto/ipaddress,,::,'2001:db8::/96' |
Ezio Melotti | e5caf29 | 2013-03-28 04:54:58 +0200 | [diff] [blame] | 53 | howto/ipaddress,,:db8,>>> ipaddress.ip_interface('2001:db8::1/96') |
| 54 | howto/ipaddress,,::,>>> ipaddress.ip_interface('2001:db8::1/96') |
| 55 | howto/ipaddress,,:db8,'2001:db8::1' |
| 56 | howto/ipaddress,,::,'2001:db8::1' |
| 57 | howto/ipaddress,,:db8,IPv6Address('2001:db8::ffff:ffff') |
| 58 | howto/ipaddress,,::,IPv6Address('2001:db8::ffff:ffff') |
| 59 | howto/ipaddress,,:ffff,IPv6Address('2001:db8::ffff:ffff') |
Georg Brandl | 0e475c3 | 2012-03-04 16:22:05 +0100 | [diff] [blame] | 60 | howto/logging,,:And,"WARNING:And this, too" |
| 61 | howto/logging,,:And,"WARNING:root:And this, too" |
| 62 | howto/logging,,:Doing,INFO:root:Doing something |
| 63 | howto/logging,,:Finished,INFO:root:Finished |
| 64 | howto/logging,,:logger,severity:logger name:message |
| 65 | howto/logging,,:Look,WARNING:root:Look before you leap! |
| 66 | howto/logging,,:message,severity:logger name:message |
| 67 | howto/logging,,:root,DEBUG:root:This message should go to the log file |
| 68 | howto/logging,,:root,INFO:root:Doing something |
| 69 | howto/logging,,:root,INFO:root:Finished |
| 70 | howto/logging,,:root,INFO:root:So should this |
| 71 | howto/logging,,:root,INFO:root:Started |
| 72 | howto/logging,,:root,"WARNING:root:And this, too" |
| 73 | howto/logging,,:root,WARNING:root:Look before you leap! |
| 74 | howto/logging,,:root,WARNING:root:Watch out! |
| 75 | howto/logging,,:So,INFO:root:So should this |
| 76 | howto/logging,,:So,INFO:So should this |
| 77 | howto/logging,,:Started,INFO:root:Started |
| 78 | howto/logging,,:This,DEBUG:root:This message should go to the log file |
| 79 | howto/logging,,:This,DEBUG:This message should appear on the console |
| 80 | howto/logging,,:Watch,WARNING:root:Watch out! |
Larry Hastings | 0e25410 | 2014-01-26 00:42:02 -0800 | [diff] [blame] | 81 | howto/pyporting,,::,Programming Language :: Python :: 2 |
| 82 | howto/pyporting,,::,Programming Language :: Python :: 3 |
Benjamin Peterson | 28d88b4 | 2009-01-09 03:03:23 +0000 | [diff] [blame] | 83 | howto/regex,,::, |
| 84 | howto/regex,,:foo,(?:foo) |
Martin Panter | d5db147 | 2016-02-08 01:34:09 +0000 | [diff] [blame] | 85 | howto/urllib2,,:password,"for example ""joe:password@example.com""" |
Benjamin Peterson | 28d88b4 | 2009-01-09 03:03:23 +0000 | [diff] [blame] | 86 | library/audioop,,:ipos,"# factor = audioop.findfactor(in_test[ipos*2:ipos*2+len(out_test)]," |
Georg Brandl | 0e475c3 | 2012-03-04 16:22:05 +0100 | [diff] [blame] | 87 | library/bisect,32,:hi,all(val >= x for val in a[i:hi]) |
| 88 | library/bisect,42,:hi,all(val > x for val in a[i:hi]) |
| 89 | library/configparser,,:home,my_dir: ${Common:home_dir}/twosheds |
| 90 | library/configparser,,:option,${section:option} |
| 91 | library/configparser,,:path,python_dir: ${Frameworks:path}/Python/Versions/${Frameworks:Python} |
| 92 | library/configparser,,:Python,python_dir: ${Frameworks:path}/Python/Versions/${Frameworks:Python} |
Georg Brandl | 0e475c3 | 2012-03-04 16:22:05 +0100 | [diff] [blame] | 93 | library/configparser,,:system,path: ${Common:system_dir}/Library/Frameworks/ |
Benjamin Peterson | 28d88b4 | 2009-01-09 03:03:23 +0000 | [diff] [blame] | 94 | library/datetime,,:MM, |
| 95 | library/datetime,,:SS, |
| 96 | library/decimal,,:optional,"trailneg:optional trailing minus indicator" |
| 97 | library/difflib,,:ahi,a[alo:ahi] |
| 98 | library/difflib,,:bhi,b[blo:bhi] |
Georg Brandl | 0e475c3 | 2012-03-04 16:22:05 +0100 | [diff] [blame] | 99 | library/difflib,,:i1, |
Benjamin Peterson | 28d88b4 | 2009-01-09 03:03:23 +0000 | [diff] [blame] | 100 | library/difflib,,:i2, |
| 101 | library/difflib,,:j2, |
Benjamin Peterson | 28d88b4 | 2009-01-09 03:03:23 +0000 | [diff] [blame] | 102 | library/doctest,,`,``factorial`` from the ``example`` module: |
| 103 | library/doctest,,`,The ``example`` module |
| 104 | library/doctest,,`,Using ``factorial`` |
Ezio Melotti | e5caf29 | 2013-03-28 04:54:58 +0200 | [diff] [blame] | 105 | library/exceptions,,:err,err.object[err.start:err.end] |
Benjamin Peterson | 28d88b4 | 2009-01-09 03:03:23 +0000 | [diff] [blame] | 106 | library/functions,,:step,a[start:stop:step] |
| 107 | library/functions,,:stop,"a[start:stop, i]" |
| 108 | library/functions,,:stop,a[start:stop:step] |
Ezio Melotti | be54d6d | 2012-09-20 08:46:06 +0300 | [diff] [blame] | 109 | library/http.client,,:port,host:port |
Georg Brandl | ebb2964 | 2012-05-01 09:29:56 +0200 | [diff] [blame] | 110 | library/http.cookies,,`,!#$%&'*+-.^_`|~: |
Georg Brandl | d3b41c6 | 2011-07-09 11:48:50 +0200 | [diff] [blame] | 111 | library/imaplib,,:MM,"""DD-Mmm-YYYY HH:MM:SS" |
| 112 | library/imaplib,,:SS,"""DD-Mmm-YYYY HH:MM:SS" |
Ezio Melotti | 6f69fb1 | 2012-08-22 08:38:04 +0300 | [diff] [blame] | 113 | library/inspect,,:int,">>> def foo(a, *, b:int, **kwargs):" |
| 114 | library/inspect,,:int,"'(a, *, b:int, **kwargs)'" |
| 115 | library/inspect,,:int,'b:int' |
Georg Brandl | 3f81ba8 | 2012-06-26 09:12:26 +0200 | [diff] [blame] | 116 | library/ipaddress,,:db8,>>> ipaddress.ip_address('2001:db8::') |
| 117 | library/ipaddress,,::,>>> ipaddress.ip_address('2001:db8::') |
| 118 | library/ipaddress,,:db8,IPv6Address('2001:db8::') |
| 119 | library/ipaddress,,::,IPv6Address('2001:db8::') |
| 120 | library/ipaddress,,:db8,>>> ipaddress.IPv6Address('2001:db8::1000') |
| 121 | library/ipaddress,,::,>>> ipaddress.IPv6Address('2001:db8::1000') |
| 122 | library/ipaddress,,:db8,IPv6Address('2001:db8::1000') |
| 123 | library/ipaddress,,::,IPv6Address('2001:db8::1000') |
Georg Brandl | db3f318 | 2014-10-31 08:03:20 +0100 | [diff] [blame] | 124 | library/ipaddress,,:db8,">>> ipaddress.ip_address(""2001:db8::1"").reverse_pointer" |
| 125 | library/ipaddress,,::,">>> ipaddress.ip_address(""2001:db8::1"").reverse_pointer" |
Georg Brandl | a81b481 | 2012-08-11 08:43:59 +0200 | [diff] [blame] | 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' |
Georg Brandl | a81b481 | 2012-08-11 08:43:59 +0200 | [diff] [blame] | 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:: |
Benjamin Peterson | ef3e4c2 | 2009-04-11 19:48:14 +0000 | [diff] [blame] | 138 | library/itertools,,:step,elements from seq[start:stop:step] |
Georg Brandl | 0e475c3 | 2012-03-04 16:22:05 +0100 | [diff] [blame] | 139 | library/itertools,,:stop,elements from seq[start:stop:step] |
Georg Brandl | 0e475c3 | 2012-03-04 16:22:05 +0100 | [diff] [blame] | 140 | library/logging.handlers,,:port,host:port |
Benjamin Peterson | 28d88b4 | 2009-01-09 03:03:23 +0000 | [diff] [blame] | 141 | library/mmap,,:i2,obj[i1:i2] |
Georg Brandl | 0e475c3 | 2012-03-04 16:22:05 +0100 | [diff] [blame] | 142 | library/multiprocessing,,`,# Add more tasks using `put()` |
Georg Brandl | 0e475c3 | 2012-03-04 16:22:05 +0100 | [diff] [blame] | 143 | library/multiprocessing,,:queue,">>> QueueManager.register('get_queue', callable=lambda:queue)" |
Benjamin Peterson | 28d88b4 | 2009-01-09 03:03:23 +0000 | [diff] [blame] | 144 | library/multiprocessing,,`,# register the Foo class; make `f()` and `g()` accessible via proxy |
| 145 | library/multiprocessing,,`,# register the Foo class; make `g()` and `_h()` accessible via proxy |
| 146 | library/multiprocessing,,`,# register the generator function baz; use `GeneratorProxy` to make proxies |
Georg Brandl | 0e475c3 | 2012-03-04 16:22:05 +0100 | [diff] [blame] | 147 | library/nntplib,,:bytes,:bytes |
Georg Brandl | 0e475c3 | 2012-03-04 16:22:05 +0100 | [diff] [blame] | 148 | library/nntplib,,:lines,:lines |
Benjamin Peterson | 28d88b4 | 2009-01-09 03:03:23 +0000 | [diff] [blame] | 149 | library/optparse,,:len,"del parser.rargs[:len(value)]" |
| 150 | library/os.path,,:foo,c:foo |
Georg Brandl | ed007d5 | 2013-11-24 16:09:26 +0100 | [diff] [blame] | 151 | library/pathlib,,:bar,">>> PureWindowsPath('c:/Windows', 'd:bar')" |
| 152 | library/pathlib,,:bar,PureWindowsPath('d:bar') |
| 153 | library/pathlib,,:Program,>>> PureWindowsPath('c:Program Files/').root |
| 154 | library/pathlib,,:Program,>>> PureWindowsPath('c:Program Files/').anchor |
Georg Brandl | 0e475c3 | 2012-03-04 16:22:05 +0100 | [diff] [blame] | 155 | library/pdb,,:lineno,filename:lineno |
Georg Brandl | 0e475c3 | 2012-03-04 16:22:05 +0100 | [diff] [blame] | 156 | library/pickle,,:memory,"conn = sqlite3.connect("":memory:"")" |
Benjamin Peterson | 28d88b4 | 2009-01-09 03:03:23 +0000 | [diff] [blame] | 157 | library/posix,,`,"CFLAGS=""`getconf LFS_CFLAGS`"" OPT=""-g -O2 $CFLAGS""" |
Ezio Melotti | f92b063 | 2013-03-28 05:12:31 +0200 | [diff] [blame] | 158 | library/pprint,,::,"'Programming Language :: Python :: 2 :: Only']," |
Ezio Melotti | f2c64ed | 2013-03-28 17:46:20 +0200 | [diff] [blame] | 159 | library/pprint,,::,"'Programming Language :: Python :: 2.6'," |
| 160 | library/pprint,,::,"'Programming Language :: Python :: 2.7'," |
Benjamin Peterson | 28d88b4 | 2009-01-09 03:03:23 +0000 | [diff] [blame] | 161 | library/profile,,:lineno,filename:lineno(function) |
| 162 | library/pyexpat,,:elem1,<py:elem1 /> |
| 163 | library/pyexpat,,:py,"xmlns:py = ""http://www.python.org/ns/"">" |
Georg Brandl | 0e475c3 | 2012-03-04 16:22:05 +0100 | [diff] [blame] | 164 | library/smtplib,,:port,method must support that as well as a regular host:port |
Benjamin Peterson | 28d88b4 | 2009-01-09 03:03:23 +0000 | [diff] [blame] | 165 | library/socket,,::,'5aef:2b::8' |
Georg Brandl | 0e475c3 | 2012-03-04 16:22:05 +0100 | [diff] [blame] | 166 | library/socket,,:can,"return (can_id, can_dlc, data[:can_dlc])" |
| 167 | library/socket,,:len,fds.fromstring(cmsg_data[:len(cmsg_data) - (len(cmsg_data) % fds.itemsize)]) |
| 168 | library/sqlite3,,:age,"cur.execute(""select * from people where name_last=:who and age=:age"", {""who"": who, ""age"": age})" |
Georg Brandl | 0e475c3 | 2012-03-04 16:22:05 +0100 | [diff] [blame] | 169 | library/sqlite3,,:memory, |
| 170 | library/sqlite3,,:who,"cur.execute(""select * from people where name_last=:who and age=:age"", {""who"": who, ""age"": age})" |
Ezio Melotti | f92b063 | 2013-03-28 05:12:31 +0200 | [diff] [blame] | 171 | library/sqlite3,,:path,"db = sqlite3.connect('file:path/to/database?mode=ro', uri=True)" |
Benjamin Peterson | 28d88b4 | 2009-01-09 03:03:23 +0000 | [diff] [blame] | 172 | library/ssl,,:My,"Organizational Unit Name (eg, section) []:My Group" |
Georg Brandl | 0e475c3 | 2012-03-04 16:22:05 +0100 | [diff] [blame] | 173 | library/ssl,,:My,"Organization Name (eg, company) [Internet Widgits Pty Ltd]:My Organization, Inc." |
Benjamin Peterson | 28d88b4 | 2009-01-09 03:03:23 +0000 | [diff] [blame] | 174 | library/ssl,,:myserver,"Common Name (eg, YOUR name) []:myserver.mygroup.myorganization.com" |
| 175 | library/ssl,,:MyState,State or Province Name (full name) [Some-State]:MyState |
| 176 | library/ssl,,:ops,Email Address []:ops@myserver.mygroup.myorganization.com |
| 177 | library/ssl,,:Some,"Locality Name (eg, city) []:Some City" |
| 178 | library/ssl,,:US,Country Name (2 letter code) [AU]:US |
Georg Brandl | 0e475c3 | 2012-03-04 16:22:05 +0100 | [diff] [blame] | 179 | library/stdtypes,,:end,s[start:end] |
| 180 | library/stdtypes,,::,>>> hash(v[::-2]) == hash(b'abcefg'[::-2]) |
Benjamin Peterson | 28d88b4 | 2009-01-09 03:03:23 +0000 | [diff] [blame] | 181 | library/stdtypes,,:len,s[len(s):len(s)] |
Georg Brandl | 0e475c3 | 2012-03-04 16:22:05 +0100 | [diff] [blame] | 182 | library/stdtypes,,::,>>> y = m[::2] |
Georg Brandl | d183f0b | 2012-08-25 12:14:59 +0200 | [diff] [blame] | 183 | library/stdtypes,,::,>>> z = y[::-2] |
Benjamin Peterson | 28d88b4 | 2009-01-09 03:03:23 +0000 | [diff] [blame] | 184 | library/subprocess,,`,"output=`dmesg | grep hda`" |
Georg Brandl | 0e475c3 | 2012-03-04 16:22:05 +0100 | [diff] [blame] | 185 | library/subprocess,,`,"output=`mycmd myarg`" |
| 186 | library/tarfile,,:bz2, |
Benjamin Peterson | 28d88b4 | 2009-01-09 03:03:23 +0000 | [diff] [blame] | 187 | library/tarfile,,:compression,filemode[:compression] |
| 188 | library/tarfile,,:gz, |
Georg Brandl | 0e475c3 | 2012-03-04 16:22:05 +0100 | [diff] [blame] | 189 | library/tarfile,,:xz,'a:xz' |
| 190 | library/tarfile,,:xz,'r:xz' |
| 191 | library/tarfile,,:xz,'w:xz' |
Benjamin Peterson | 28d88b4 | 2009-01-09 03:03:23 +0000 | [diff] [blame] | 192 | library/time,,:mm, |
| 193 | library/time,,:ss, |
Georg Brandl | ed007d5 | 2013-11-24 16:09:26 +0100 | [diff] [blame] | 194 | library/tracemalloc,,:limit,"for index, stat in enumerate(top_stats[:limit], 1):" |
Benjamin Peterson | 28d88b4 | 2009-01-09 03:03:23 +0000 | [diff] [blame] | 195 | library/turtle,,::,Example:: |
Robert Collins | 80e4f30 | 2015-07-23 08:08:38 +1200 | [diff] [blame] | 196 | library/unittest,,:foo,"self.assertEqual(cm.output, ['INFO:foo:first message'," |
| 197 | library/unittest,,:first,"self.assertEqual(cm.output, ['INFO:foo:first message'," |
| 198 | library/unittest,,:foo,'ERROR:foo.bar:second message']) |
| 199 | library/unittest,,:second,'ERROR:foo.bar:second message']) |
Georg Brandl | 0e475c3 | 2012-03-04 16:22:05 +0100 | [diff] [blame] | 200 | library/urllib.request,,:close,Connection:close |
Martin Panter | 887bc96 | 2016-04-24 04:06:15 +0000 | [diff] [blame] | 201 | library/urllib.request,,:port,:port |
Georg Brandl | 0e475c3 | 2012-03-04 16:22:05 +0100 | [diff] [blame] | 202 | library/urllib.request,,:lang,"xmlns=""http://www.w3.org/1999/xhtml"" xml:lang=""en"" lang=""en"">\n\n<head>\n" |
| 203 | library/urllib.request,,:password,"""joe:password@python.org""" |
Benjamin Peterson | 28d88b4 | 2009-01-09 03:03:23 +0000 | [diff] [blame] | 204 | library/uuid,,:uuid,urn:uuid:12345678-1234-5678-1234-567812345678 |
Georg Brandl | 325a1c2 | 2013-10-27 09:16:01 +0100 | [diff] [blame] | 205 | library/venv,,:param,":param nodist: If True, setuptools and pip are not installed into the" |
| 206 | library/venv,,:param,":param progress: If setuptools or pip are installed, the progress of the" |
Ezio Melotti | e5caf29 | 2013-03-28 04:54:58 +0200 | [diff] [blame] | 207 | library/venv,,:param,":param nopip: If True, pip is not installed into the created" |
Ezio Melotti | e5caf29 | 2013-03-28 04:54:58 +0200 | [diff] [blame] | 208 | library/venv,,:param,:param context: The information for the environment creation request |
Georg Brandl | 0e475c3 | 2012-03-04 16:22:05 +0100 | [diff] [blame] | 209 | library/xmlrpc.client,,:pass,http://user:pass@host:port/path |
| 210 | library/xmlrpc.client,,:pass,user:pass |
| 211 | library/xmlrpc.client,,:port,http://user:pass@host:port/path |
| 212 | license,,`,"``Software''), to deal in the Software without restriction, including" |
| 213 | license,,`,"THE SOFTWARE IS PROVIDED ``AS IS'', WITHOUT WARRANTY OF ANY KIND," |
| 214 | license,,`,* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND |
| 215 | license,,`,THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND |
| 216 | license,,`,* THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY |
Benjamin Peterson | 28d88b4 | 2009-01-09 03:03:23 +0000 | [diff] [blame] | 217 | license,,`,THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND |
| 218 | license,,:zooko,mailto:zooko@zooko.com |
Georg Brandl | 0e475c3 | 2012-03-04 16:22:05 +0100 | [diff] [blame] | 219 | reference/expressions,,:index,x[index:index] |
Georg Brandl | 0e475c3 | 2012-03-04 16:22:05 +0100 | [diff] [blame] | 220 | reference/lexical_analysis,,`,$ ? ` |
| 221 | reference/lexical_analysis,,:fileencoding,# vim:fileencoding=<encoding-name> |
Benjamin Peterson | 28d88b4 | 2009-01-09 03:03:23 +0000 | [diff] [blame] | 222 | tutorial/datastructures,,:value,It is also possible to delete a key:value |
Georg Brandl | 0e475c3 | 2012-03-04 16:22:05 +0100 | [diff] [blame] | 223 | tutorial/datastructures,,:value,key:value pairs within the braces adds initial key:value pairs |
Benjamin Peterson | 28d88b4 | 2009-01-09 03:03:23 +0000 | [diff] [blame] | 224 | tutorial/stdlib2,,:config,"logging.warning('Warning:config file %s not found', 'server.conf')" |
| 225 | tutorial/stdlib2,,:config,WARNING:root:Warning:config file server.conf not found |
| 226 | tutorial/stdlib2,,:Critical,CRITICAL:root:Critical error -- shutting down |
| 227 | tutorial/stdlib2,,:Error,ERROR:root:Error occurred |
| 228 | tutorial/stdlib2,,:root,CRITICAL:root:Critical error -- shutting down |
| 229 | tutorial/stdlib2,,:root,ERROR:root:Error occurred |
| 230 | tutorial/stdlib2,,:root,WARNING:root:Warning:config file server.conf not found |
Georg Brandl | 0e475c3 | 2012-03-04 16:22:05 +0100 | [diff] [blame] | 231 | tutorial/stdlib2,,:start,extra = data[start:start+extra_size] |
| 232 | tutorial/stdlib2,,:start,"fields = struct.unpack('<IIIHH', data[start:start+16])" |
| 233 | tutorial/stdlib2,,:start,filename = data[start:start+filenamesize] |
Benjamin Peterson | 28d88b4 | 2009-01-09 03:03:23 +0000 | [diff] [blame] | 234 | tutorial/stdlib2,,:Warning,WARNING:root:Warning:config file server.conf not found |
Benjamin Peterson | 28d88b4 | 2009-01-09 03:03:23 +0000 | [diff] [blame] | 235 | using/cmdline,,:category,action:message:category:module:line |
Georg Brandl | 0e475c3 | 2012-03-04 16:22:05 +0100 | [diff] [blame] | 236 | using/cmdline,,:errorhandler,:errorhandler |
Benjamin Peterson | 28d88b4 | 2009-01-09 03:03:23 +0000 | [diff] [blame] | 237 | using/cmdline,,:line,action:message:category:module:line |
Georg Brandl | 0e475c3 | 2012-03-04 16:22:05 +0100 | [diff] [blame] | 238 | using/cmdline,,:line,file:line: category: message |
Benjamin Peterson | 28d88b4 | 2009-01-09 03:03:23 +0000 | [diff] [blame] | 239 | using/cmdline,,:message,action:message:category:module:line |
| 240 | using/cmdline,,:module,action:message:category:module:line |
Georg Brandl | 96421d6 | 2016-02-28 21:13:23 +0100 | [diff] [blame] | 241 | using/unix,,:Packaging,https://en.opensuse.org/Portal:Packaging |
Benjamin Peterson | 28d88b4 | 2009-01-09 03:03:23 +0000 | [diff] [blame] | 242 | whatsnew/2.0,418,:len, |
| 243 | whatsnew/2.3,,::, |
| 244 | whatsnew/2.3,,:config, |
| 245 | whatsnew/2.3,,:Critical, |
| 246 | whatsnew/2.3,,:Error, |
| 247 | whatsnew/2.3,,:Problem, |
| 248 | whatsnew/2.3,,:root, |
| 249 | whatsnew/2.3,,:Warning, |
| 250 | whatsnew/2.4,,::, |
| 251 | whatsnew/2.4,,:System, |
| 252 | whatsnew/2.5,,:memory,:memory: |
| 253 | whatsnew/2.5,,:step,[start:stop:step] |
| 254 | whatsnew/2.5,,:stop,[start:stop:step] |
Georg Brandl | db3f318 | 2014-10-31 08:03:20 +0100 | [diff] [blame] | 255 | whatsnew/2.7,,::,"ParseResult(scheme='http', netloc='[1080::8:800:200C:417A]'," |
| 256 | whatsnew/2.7,,::,>>> urlparse.urlparse('http://[1080::8:800:200C:417A]/foo') |
| 257 | whatsnew/2.7,,:Sunday,'2009:4:Sunday' |
| 258 | whatsnew/2.7,,:Cookie,"export PYTHONWARNINGS=all,error:::Cookie:0" |
| 259 | whatsnew/2.7,,::,"export PYTHONWARNINGS=all,error:::Cookie:0" |
Georg Brandl | 14927d0 | 2011-02-20 10:22:41 +0000 | [diff] [blame] | 260 | whatsnew/3.2,,:affe,"netloc='[dead:beef:cafe:5417:affe:8FA3:deaf:feed]'," |
Georg Brandl | 0e475c3 | 2012-03-04 16:22:05 +0100 | [diff] [blame] | 261 | whatsnew/3.2,,:affe,>>> urllib.parse.urlparse('http://[dead:beef:cafe:5417:affe:8FA3:deaf:feed]/foo/') |
| 262 | whatsnew/3.2,,:beef,"netloc='[dead:beef:cafe:5417:affe:8FA3:deaf:feed]'," |
| 263 | whatsnew/3.2,,:beef,>>> urllib.parse.urlparse('http://[dead:beef:cafe:5417:affe:8FA3:deaf:feed]/foo/') |
| 264 | whatsnew/3.2,,:cafe,"netloc='[dead:beef:cafe:5417:affe:8FA3:deaf:feed]'," |
| 265 | whatsnew/3.2,,:cafe,>>> urllib.parse.urlparse('http://[dead:beef:cafe:5417:affe:8FA3:deaf:feed]/foo/') |
Georg Brandl | 14927d0 | 2011-02-20 10:22:41 +0000 | [diff] [blame] | 266 | whatsnew/3.2,,:deaf,"netloc='[dead:beef:cafe:5417:affe:8FA3:deaf:feed]'," |
Georg Brandl | 0e475c3 | 2012-03-04 16:22:05 +0100 | [diff] [blame] | 267 | whatsnew/3.2,,:deaf,>>> urllib.parse.urlparse('http://[dead:beef:cafe:5417:affe:8FA3:deaf:feed]/foo/') |
Georg Brandl | 0e475c3 | 2012-03-04 16:22:05 +0100 | [diff] [blame] | 268 | whatsnew/3.2,,:directory,${buildout:directory}/downloads/dist |
| 269 | whatsnew/3.2,,::,"$ export PYTHONWARNINGS='ignore::RuntimeWarning::,once::UnicodeWarning::'" |
Georg Brandl | 14927d0 | 2011-02-20 10:22:41 +0000 | [diff] [blame] | 270 | whatsnew/3.2,,:feed,"netloc='[dead:beef:cafe:5417:affe:8FA3:deaf:feed]'," |
Georg Brandl | 0e475c3 | 2012-03-04 16:22:05 +0100 | [diff] [blame] | 271 | whatsnew/3.2,,:feed,>>> urllib.parse.urlparse('http://[dead:beef:cafe:5417:affe:8FA3:deaf:feed]/foo/') |
| 272 | whatsnew/3.2,,:gz,">>> with tarfile.open(name='myarchive.tar.gz', mode='w:gz') as tf:" |
Georg Brandl | 0e475c3 | 2012-03-04 16:22:05 +0100 | [diff] [blame] | 273 | whatsnew/3.2,,:location,zope9-location = ${zope9:location} |
Georg Brandl | 0e475c3 | 2012-03-04 16:22:05 +0100 | [diff] [blame] | 274 | whatsnew/3.2,,:prefix,zope-conf = ${custom:prefix}/etc/zope.conf |
Larry Hastings | 0e25410 | 2014-01-26 00:42:02 -0800 | [diff] [blame] | 275 | whatsnew/changelog,,:gz,": TarFile opened with external fileobj and ""w:gz"" mode didn't" |
Georg Brandl | 325a1c2 | 2013-10-27 09:16:01 +0100 | [diff] [blame] | 276 | whatsnew/changelog,,::,": Use ""127.0.0.1"" or ""::1"" instead of ""localhost"" as much as" |
Larry Hastings | b2c2dc3 | 2015-03-29 15:32:55 -0700 | [diff] [blame] | 277 | library/tarfile,149,:xz,'x:xz' |
| 278 | library/xml.etree.elementtree,290,:sometag,prefix:sometag |
| 279 | library/xml.etree.elementtree,301,:fictional,"<actors xmlns:fictional=""http://characters.example.com""" |
| 280 | library/xml.etree.elementtree,301,:character,<fictional:character>Lancelot</fictional:character> |
| 281 | library/xml.etree.elementtree,301,:character,<fictional:character>Archie Leach</fictional:character> |
| 282 | library/xml.etree.elementtree,301,:character,<fictional:character>Sir Robin</fictional:character> |
| 283 | library/xml.etree.elementtree,301,:character,<fictional:character>Gunther</fictional:character> |
| 284 | library/xml.etree.elementtree,301,:character,<fictional:character>Commander Clement</fictional:character> |
Berker Peksag | 3261960 | 2016-06-11 22:38:33 +0300 | [diff] [blame] | 285 | library/xml.etree.elementtree,,:actor,"for actor in root.findall('real_person:actor', ns):" |
| 286 | library/xml.etree.elementtree,,:name,"name = actor.find('real_person:name', ns)" |
| 287 | library/xml.etree.elementtree,,:character,"for char in actor.findall('role:character', ns):" |
Larry Hastings | b2c2dc3 | 2015-03-29 15:32:55 -0700 | [diff] [blame] | 288 | library/zipapp,31,:main,"$ python -m zipapp myapp -m ""myapp:main""" |
| 289 | library/zipapp,82,:fn,"argument should have the form ""pkg.mod:fn"", where ""pkg.mod"" is a" |
| 290 | library/zipapp,155,:callable,"""pkg.module:callable"" and the archive will be run by importing" |
Martin Panter | 6cb1963 | 2015-09-07 03:40:17 +0000 | [diff] [blame] | 291 | library/stdtypes,,::,>>> m[::2].tolist() |
Berker Peksag | 1d16979 | 2015-10-20 03:59:24 +0300 | [diff] [blame] | 292 | library/sys,,`,# ``wrapper`` creates a ``wrap(coro)`` coroutine: |
Larry Hastings | aaa377f | 2015-07-04 19:11:41 -0700 | [diff] [blame] | 293 | tutorial/venv,77,:c7b9645a6f35,"Python 3.4.3+ (3.4:c7b9645a6f35+, May 22 2015, 09:31:25)" |
Berker Peksag | 8214a7c | 2015-10-02 23:28:45 +0300 | [diff] [blame] | 294 | whatsnew/3.5,,:root,'WARNING:root:warning\n' |
| 295 | whatsnew/3.5,,:warning,'WARNING:root:warning\n' |
| 296 | whatsnew/3.5,,::,>>> addr6 = ipaddress.IPv6Address('::1') |
| 297 | whatsnew/3.5,,:root,ERROR:root:exception |
| 298 | whatsnew/3.5,,:exception,ERROR:root:exception |