mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
The _private_networks variables, used by various is_private implementations, were missing some ranges and at the same time had overly strict ranges (where there are more specific ranges considered globally reachable by the IANA registries). This patch updates the ranges with what was missing or otherwise incorrect. 100.64.0.0/10 is left alone, for now, as it's been made special in [1]. The _address_exclude_many() call returns 8 networks for IPv4, 121 networks for IPv6. [1] https://github.com/python/cpython/issues/61602 In 3.10 and below, is_private checks whether the network and broadcast address are both private. In later versions (where the test wss backported from), it checks whether they both are in the same private network. For 0.0.0.0/0, both 0.0.0.0 and 255.225.255.255 are private, but one is in 0.0.0.0/8 ("This network") and the other in 255.255.255.255/32 ("Limited broadcast"). --------- Co-authored-by: Jakub Stasiak <jakub@stasiak.at>
22 KiB
22 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/sequence | :i2 | del o[i1:i2] | |
| 4 | c-api/sequence | :i2 | o[i1:i2] | |
| 5 | c-api/tuple | :high | p[low:high] | |
| 6 | c-api/unicode | :end | str[start:end] | |
| 7 | c-api/unicode | :start | unicode[start:start+length] | |
| 8 | distutils/examples | ` | This is the description of the ``foobar`` package. | |
| 9 | distutils/setupscript | :: | ||
| 10 | extending/embedding | :numargs | if(!PyArg_ParseTuple(args, ":numargs")) | |
| 11 | extending/extending | :myfunction | PyArg_ParseTuple(args, "D:myfunction", &c); | |
| 12 | extending/extending | :set | if (PyArg_ParseTuple(args, "O:set_callback", &temp)) { | |
| 13 | extending/newtypes | :call | if (!PyArg_ParseTuple(args, "sss:call", &arg1, &arg2, &arg3)) { | |
| 14 | 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( | |
| 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, | |
| 17 | faq/windows | :d48eceb | Python 3.6.4 (v3.6.4:d48eceb, Dec 19 2017, 06:04:45) [MSC v.1900 32 bit (Intel)] on win32 | |
| 18 | howto/curses | :black | colors when it activates color mode. They are: 0:black, 1:red, | |
| 19 | howto/curses | :red | colors when it activates color mode. They are: 0:black, 1:red, | |
| 20 | howto/curses | :green | 2:green, 3:yellow, 4:blue, 5:magenta, 6:cyan, and 7:white. The | |
| 21 | howto/curses | :yellow | 2:green, 3:yellow, 4:blue, 5:magenta, 6:cyan, and 7:white. The | |
| 22 | howto/curses | :blue | 2:green, 3:yellow, 4:blue, 5:magenta, 6:cyan, and 7:white. The | |
| 23 | howto/curses | :magenta | 2:green, 3:yellow, 4:blue, 5:magenta, 6:cyan, and 7:white. The | |
| 24 | howto/curses | :cyan | 2:green, 3:yellow, 4:blue, 5:magenta, 6:cyan, and 7:white. The | |
| 25 | howto/curses | :white | 2:green, 3:yellow, 4:blue, 5:magenta, 6:cyan, and 7:white. The | |
| 26 | howto/descriptor | :root | INFO:root | |
| 27 | howto/descriptor | :Updating | root:Updating | |
| 28 | howto/descriptor | :Accessing | root:Accessing | |
| 29 | howto/instrumentation | :: | python$target:::function-entry | |
| 30 | howto/instrumentation | :function | python$target:::function-entry | |
| 31 | howto/instrumentation | :: | python$target:::function-return | |
| 32 | howto/instrumentation | :function | python$target:::function-return | |
| 33 | howto/instrumentation | :call | 156641360502280 function-entry:call_stack.py:start:23 | |
| 34 | howto/instrumentation | :start | 156641360502280 function-entry:call_stack.py:start:23 | |
| 35 | howto/instrumentation | :function | 156641360518804 function-entry: call_stack.py:function_1:1 | |
| 36 | howto/instrumentation | :function | 156641360532797 function-entry: call_stack.py:function_3:9 | |
| 37 | howto/instrumentation | :function | 156641360546807 function-return: call_stack.py:function_3:10 | |
| 38 | howto/instrumentation | :function | 156641360563367 function-return: call_stack.py:function_1:2 | |
| 39 | howto/instrumentation | :function | 156641360578365 function-entry: call_stack.py:function_2:5 | |
| 40 | howto/instrumentation | :function | 156641360591757 function-entry: call_stack.py:function_1:1 | |
| 41 | howto/instrumentation | :function | 156641360605556 function-entry: call_stack.py:function_3:9 | |
| 42 | howto/instrumentation | :function | 156641360617482 function-return: call_stack.py:function_3:10 | |
| 43 | howto/instrumentation | :function | 156641360629814 function-return: call_stack.py:function_1:2 | |
| 44 | howto/instrumentation | :function | 156641360642285 function-return: call_stack.py:function_2:6 | |
| 45 | howto/instrumentation | :function | 156641360656770 function-entry: call_stack.py:function_3:9 | |
| 46 | howto/instrumentation | :function | 156641360669707 function-return: call_stack.py:function_3:10 | |
| 47 | howto/instrumentation | :function | 156641360687853 function-entry: call_stack.py:function_4:13 | |
| 48 | howto/instrumentation | :function | 156641360700719 function-return: call_stack.py:function_4:14 | |
| 49 | howto/instrumentation | :function | 156641360719640 function-entry: call_stack.py:function_5:18 | |
| 50 | howto/instrumentation | :function | 156641360732567 function-return: call_stack.py:function_5:21 | |
| 51 | howto/instrumentation | :call | 156641360747370 function-return:call_stack.py:start:28 | |
| 52 | howto/instrumentation | :start | 156641360747370 function-return:call_stack.py:start:28 | |
| 53 | howto/ipaddress | :DB8 | >>> ipaddress.ip_address('2001:DB8::1') | |
| 54 | howto/ipaddress | :: | >>> ipaddress.ip_address('2001:DB8::1') | |
| 55 | howto/ipaddress | :db8 | IPv6Address('2001:db8::1') | |
| 56 | howto/ipaddress | :: | IPv6Address('2001:db8::1') | |
| 57 | howto/ipaddress | :: | IPv6Address('::1') | |
| 58 | howto/ipaddress | :db8 | >>> ipaddress.ip_network('2001:db8::0/96') | |
| 59 | howto/ipaddress | :: | >>> ipaddress.ip_network('2001:db8::0/96') | |
| 60 | howto/ipaddress | :db8 | IPv6Network('2001:db8::/96') | |
| 61 | howto/ipaddress | :: | IPv6Network('2001:db8::/96') | |
| 62 | howto/ipaddress | :db8 | IPv6Network('2001:db8::/128') | |
| 63 | howto/ipaddress | :: | IPv6Network('2001:db8::/128') | |
| 64 | howto/ipaddress | :db8 | IPv6Interface('2001:db8::1/96') | |
| 65 | howto/ipaddress | :: | IPv6Interface('2001:db8::1/96') | |
| 66 | howto/ipaddress | :db8 | >>> addr6 = ipaddress.ip_address('2001:db8::1') | |
| 67 | howto/ipaddress | :: | >>> addr6 = ipaddress.ip_address('2001:db8::1') | |
| 68 | howto/ipaddress | :db8 | >>> host6 = ipaddress.ip_interface('2001:db8::1/96') | |
| 69 | howto/ipaddress | :: | >>> host6 = ipaddress.ip_interface('2001:db8::1/96') | |
| 70 | howto/ipaddress | :db8 | >>> net6 = ipaddress.ip_network('2001:db8::0/96') | |
| 71 | howto/ipaddress | :: | >>> net6 = ipaddress.ip_network('2001:db8::0/96') | |
| 72 | howto/ipaddress | :ffff | IPv6Address('ffff:ffff:ffff:ffff:ffff:ffff::') | |
| 73 | howto/ipaddress | :: | IPv6Address('ffff:ffff:ffff:ffff:ffff:ffff::') | |
| 74 | howto/ipaddress | :: | IPv6Address('::ffff:ffff') | |
| 75 | howto/ipaddress | :ffff | IPv6Address('::ffff:ffff') | |
| 76 | howto/ipaddress | :db8 | '2001:db8::/96' | |
| 77 | howto/ipaddress | :: | '2001:db8::/96' | |
| 78 | howto/ipaddress | :db8 | >>> ipaddress.ip_interface('2001:db8::1/96') | |
| 79 | howto/ipaddress | :: | >>> ipaddress.ip_interface('2001:db8::1/96') | |
| 80 | howto/ipaddress | :db8 | '2001:db8::1' | |
| 81 | howto/ipaddress | :: | '2001:db8::1' | |
| 82 | howto/ipaddress | :db8 | IPv6Address('2001:db8::ffff:ffff') | |
| 83 | howto/ipaddress | :: | IPv6Address('2001:db8::ffff:ffff') | |
| 84 | howto/ipaddress | :ffff | IPv6Address('2001:db8::ffff:ffff') | |
| 85 | howto/logging | :And | WARNING:And this, too | |
| 86 | howto/logging | :And | WARNING:root:And this, too | |
| 87 | howto/logging | :And | ERROR:root:And non-ASCII stuff, too, like | |
| 88 | howto/logging | :Doing | INFO:root:Doing something | |
| 89 | howto/logging | :Finished | INFO:root:Finished | |
| 90 | howto/logging | :logger | severity:logger name:message | |
| 91 | howto/logging | :Look | WARNING:root:Look before you leap! | |
| 92 | howto/logging | :message | severity:logger name:message | |
| 93 | howto/logging | :root | DEBUG:root:This message should go to the log file | |
| 94 | howto/logging | :root | INFO:root:Doing something | |
| 95 | howto/logging | :root | INFO:root:Finished | |
| 96 | howto/logging | :root | INFO:root:So should this | |
| 97 | howto/logging | :root | ERROR:root:And non-ASCII stuff, too, like | |
| 98 | howto/logging | :root | INFO:root:Started | |
| 99 | howto/logging | :root | WARNING:root:And this, too | |
| 100 | howto/logging | :root | WARNING:root:Look before you leap! | |
| 101 | howto/logging | :root | WARNING:root:Watch out! | |
| 102 | howto/logging | :So | INFO:root:So should this | |
| 103 | howto/logging | :So | INFO:So should this | |
| 104 | howto/logging | :Started | INFO:root:Started | |
| 105 | howto/logging | :This | DEBUG:root:This message should go to the log file | |
| 106 | howto/logging | :This | DEBUG:This message should appear on the console | |
| 107 | howto/logging | :Watch | WARNING:root:Watch out! | |
| 108 | howto/pyporting | :: | Programming Language :: Python :: 2 | |
| 109 | howto/pyporting | :: | Programming Language :: Python :: 3 | |
| 110 | howto/regex | :: | ||
| 111 | howto/regex | :foo | (?:foo) | |
| 112 | howto/urllib2 | :password | "joe:password@example.com" | |
| 113 | library/ast | :upper | lower:upper | |
| 114 | library/ast | :step | lower:upper:step | |
| 115 | library/audioop | :ipos | # factor = audioop.findfactor(in_test[ipos*2:ipos*2+len(out_test)], | |
| 116 | library/bisect | 32 | :hi | all(val >= x for val in a[i:hi]) |
| 117 | library/bisect | 42 | :hi | all(val > x for val in a[i:hi]) |
| 118 | library/configparser | :home | my_dir: ${Common:home_dir}/twosheds | |
| 119 | library/configparser | :option | ${section:option} | |
| 120 | library/configparser | :path | python_dir: ${Frameworks:path}/Python/Versions/${Frameworks:Python} | |
| 121 | library/configparser | :Python | python_dir: ${Frameworks:path}/Python/Versions/${Frameworks:Python} | |
| 122 | library/configparser | :system | path: ${Common:system_dir}/Library/Frameworks/ | |
| 123 | library/datetime | :MM | ||
| 124 | library/datetime | :SS | ||
| 125 | library/decimal | :optional | trailneg:optional trailing minus indicator | |
| 126 | library/difflib | :ahi | a[alo:ahi] | |
| 127 | library/difflib | :bhi | b[blo:bhi] | |
| 128 | library/difflib | :i1 | ||
| 129 | library/difflib | :i2 | ||
| 130 | library/difflib | :j2 | ||
| 131 | library/doctest | ` | ``factorial`` from the ``example`` module: | |
| 132 | library/doctest | ` | The ``example`` module | |
| 133 | library/doctest | ` | Using ``factorial`` | |
| 134 | library/exceptions | :err | err.object[err.start:err.end] | |
| 135 | library/functions | :step | a[start:stop:step] | |
| 136 | library/functions | :stop | a[start:stop, i] | |
| 137 | library/functions | :stop | a[start:stop:step] | |
| 138 | library/hashlib | :LEAF | h00 = blake2b(buf[0:LEAF_SIZE], fanout=FANOUT, depth=DEPTH, | |
| 139 | library/http.client | :port | host:port | |
| 140 | library/http.cookies | ` | !#$%&'*+-.^_`|~: | |
| 141 | library/imaplib | :MM | "DD-Mmm-YYYY HH:MM:SS | |
| 142 | library/imaplib | :SS | "DD-Mmm-YYYY HH:MM:SS | |
| 143 | library/inspect | :int | >>> def foo(a, *, b:int, **kwargs): | |
| 144 | library/inspect | :int | '(a, *, b:int, **kwargs)' | |
| 145 | library/inspect | :int | 'b:int' | |
| 146 | library/ipaddress | :db8 | >>> ipaddress.ip_address('2001:db8::') | |
| 147 | library/ipaddress | :: | >>> ipaddress.ip_address('2001:db8::') | |
| 148 | library/ipaddress | :db8 | IPv6Address('2001:db8::') | |
| 149 | library/ipaddress | :: | IPv6Address('2001:db8::') | |
| 150 | library/ipaddress | :db8 | >>> ipaddress.IPv6Address('2001:db8::1000') | |
| 151 | library/ipaddress | :: | >>> ipaddress.IPv6Address('2001:db8::1000') | |
| 152 | library/ipaddress | :db8 | '2001:db8::1000' | |
| 153 | library/ipaddress | :: | '2001:db8::1000' | |
| 154 | library/ipaddress | :db8 | >>> f'{ipaddress.IPv6Address("2001:db8::1000"):s}' | |
| 155 | library/ipaddress | :: | >>> f'{ipaddress.IPv6Address("2001:db8::1000"):s}' | |
| 156 | library/ipaddress | :: | IPv6Address('ff02::5678%1') | |
| 157 | library/ipaddress | :: | fe80::1234 | |
| 158 | library/ipaddress | :db8 | >>> ipaddress.ip_address("2001:db8::1").reverse_pointer | |
| 159 | library/ipaddress | :: | >>> ipaddress.ip_address("2001:db8::1").reverse_pointer | |
| 160 | library/ipaddress | :: | "::abc:7:def" | |
| 161 | library/ipaddress | :def | "::abc:7:def" | |
| 162 | library/ipaddress | :: | ::FFFF/96 | |
| 163 | library/ipaddress | :: | 2002::/16 | |
| 164 | library/ipaddress | :: | 2001::/32 | |
| 165 | library/ipaddress | :: | >>> str(ipaddress.IPv6Address('::1')) | |
| 166 | library/ipaddress | :: | '::1' | |
| 167 | library/ipaddress | :ff00 | ffff:ff00:: | |
| 168 | library/ipaddress | :db00 | 2001:db00::0/24 | |
| 169 | library/ipaddress | :: | 2001:db00::0/24 | |
| 170 | library/ipaddress | :db00 | 2001:db00::0/ffff:ff00:: | |
| 171 | library/ipaddress | :: | 2001:db00::0/ffff:ff00:: | |
| 172 | library/ipaddress | :ff9b | 64:ff9b:1::/48 | |
| 173 | library/ipaddress | :: | 64:ff9b:1::/48 | |
| 174 | library/ipaddress | :: | 2001:: | |
| 175 | library/ipaddress | :: | 2001:1:: | |
| 176 | library/ipaddress | :: | 2001:3:: | |
| 177 | library/ipaddress | :: | 2001:4:112:: | |
| 178 | library/ipaddress | :: | 2001:20:: | |
| 179 | library/ipaddress | :: | 2001:30:: | |
| 180 | library/itertools | :step | elements from seq[start:stop:step] | |
| 181 | library/itertools | :stop | elements from seq[start:stop:step] | |
| 182 | library/itertools | :: | kernel = tuple(kernel)[::-1] | |
| 183 | library/logging.handlers | :port | host:port | |
| 184 | library/mmap | :i2 | obj[i1:i2] | |
| 185 | library/multiprocessing | ` | # Add more tasks using `put()` | |
| 186 | library/multiprocessing | :queue | >>> QueueManager.register('get_queue', callable=lambda:queue) | |
| 187 | library/multiprocessing | ` | # register the Foo class; make `f()` and `g()` accessible via proxy | |
| 188 | library/multiprocessing | ` | # register the Foo class; make `g()` and `_h()` accessible via proxy | |
| 189 | library/multiprocessing | ` | # register the generator function baz; use `GeneratorProxy` to make proxies | |
| 190 | library/nntplib | :bytes | :bytes | |
| 191 | library/nntplib | :lines | :lines | |
| 192 | library/optparse | :len | del parser.rargs[:len(value)] | |
| 193 | library/os.path | :foo | c:foo | |
| 194 | library/pathlib | :bar | >>> PureWindowsPath('c:/Windows', 'd:bar') | |
| 195 | library/pathlib | :bar | PureWindowsPath('d:bar') | |
| 196 | library/pathlib | :Program | >>> PureWindowsPath('c:Program Files/').root | |
| 197 | library/pathlib | :Program | >>> PureWindowsPath('c:Program Files/').anchor | |
| 198 | library/pdb | :lineno | filename:lineno | |
| 199 | library/pickle | :memory | conn = sqlite3.connect(":memory:") | |
| 200 | library/posix | ` | CFLAGS="`getconf LFS_CFLAGS`" OPT="-g -O2 $CFLAGS" | |
| 201 | library/pprint | :: | 'Programming Language :: Python :: 2.6', | |
| 202 | library/pprint | :: | 'Programming Language :: Python :: 2.7', | |
| 203 | library/pprint | :: | 'classifiers': ['Development Status :: 3 - Alpha', | |
| 204 | library/pprint | :: | 'Intended Audience :: Developers', | |
| 205 | library/pprint | :: | 'License :: OSI Approved :: MIT License', | |
| 206 | library/pprint | :: | 'Programming Language :: Python :: 2', | |
| 207 | library/pprint | :: | 'Programming Language :: Python :: 3', | |
| 208 | library/pprint | :: | 'Programming Language :: Python :: 3.2', | |
| 209 | library/pprint | :: | 'Programming Language :: Python :: 3.3', | |
| 210 | library/pprint | :: | 'Programming Language :: Python :: 3.4', | |
| 211 | library/pprint | :: | 'Topic :: Software Development :: Build Tools'], | |
| 212 | library/profile | :lineno | filename:lineno(function) | |
| 213 | library/pyexpat | :elem1 | <py:elem1 /> | |
| 214 | library/pyexpat | :py | xmlns:py = "http://www.python.org/ns/"> | |
| 215 | library/random | :len | new_diff = mean(combined[:len(drug)]) - mean(combined[len(drug):]) | |
| 216 | library/readline | :bind | python:bind -v | |
| 217 | library/readline | :bind | python:bind ^I rl_complete | |
| 218 | library/smtplib | :port | method must support that as well as a regular host:port | |
| 219 | library/socket | :: | '5aef:2b::8' | |
| 220 | library/socket | :can | return (can_id, can_dlc, data[:can_dlc]) | |
| 221 | library/socket | :len | fds.frombytes(cmsg_data[:len(cmsg_data) - (len(cmsg_data) % fds.itemsize)]) | |
| 222 | library/sqlite3 | :year | cur.execute("select * from lang where first_appeared=:year", {"year": 1972}) | |
| 223 | library/sqlite3 | :memory | ||
| 224 | library/sqlite3 | :template | con = sqlite3.connect("file:template.db?mode=ro", uri=True) | |
| 225 | library/sqlite3 | :nosuchdb | con = sqlite3.connect("file:nosuchdb.db?mode=rw", uri=True) | |
| 226 | library/sqlite3 | :mem1 | con1 = sqlite3.connect("file:mem1?mode=memory&cache=shared", uri=True) | |
| 227 | library/sqlite3 | :mem1 | con2 = sqlite3.connect("file:mem1?mode=memory&cache=shared", uri=True) | |
| 228 | library/ssl | :My | Organizational Unit Name (eg, section) []:My Group | |
| 229 | library/ssl | :My | Organization Name (eg, company) [Internet Widgits Pty Ltd]:My Organization, Inc. | |
| 230 | library/ssl | :myserver | Common Name (eg, YOUR name) []:myserver.mygroup.myorganization.com | |
| 231 | library/ssl | :MyState | State or Province Name (full name) [Some-State]:MyState | |
| 232 | library/ssl | :ops | Email Address []:ops@myserver.mygroup.myorganization.com | |
| 233 | library/ssl | :Some | Locality Name (eg, city) []:Some City | |
| 234 | library/ssl | :US | Country Name (2 letter code) [AU]:US | |
| 235 | library/stdtypes | :end | s[start:end] | |
| 236 | library/stdtypes | :: | >>> hash(v[::-2]) == hash(b'abcefg'[::-2]) | |
| 237 | library/stdtypes | :len | s[len(s):len(s)] | |
| 238 | library/stdtypes | :: | >>> y = m[::2] | |
| 239 | library/stdtypes | :: | >>> z = y[::-2] | |
| 240 | library/string | ` | !"#$%&'()*+,-./:;<=>?@[\]^_`{|}~ | |
| 241 | library/tarfile | :bz2 | ||
| 242 | library/tarfile | :compression | filemode[:compression] | |
| 243 | library/tarfile | :gz | ||
| 244 | library/tarfile | :xz | 'a:xz' | |
| 245 | library/tarfile | :xz | 'r:xz' | |
| 246 | library/tarfile | :xz | 'w:xz' | |
| 247 | library/time | :mm | ||
| 248 | library/time | :ss | ||
| 249 | library/tracemalloc | :limit | for index, stat in enumerate(top_stats[:limit], 1): | |
| 250 | library/turtle | :: | Example:: | |
| 251 | library/unittest | :foo | self.assertEqual(cm.output, ['INFO:foo:first message', | |
| 252 | library/unittest | :first | self.assertEqual(cm.output, ['INFO:foo:first message', | |
| 253 | library/unittest | :foo | 'ERROR:foo.bar:second message']) | |
| 254 | library/unittest | :second | 'ERROR:foo.bar:second message']) | |
| 255 | library/urllib.request | :close | Connection:close | |
| 256 | library/urllib.request | :port | :port | |
| 257 | library/urllib.request | :lang | xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">\n\n<head>\n | |
| 258 | library/urllib.request | :password | "joe:password@python.org" | |
| 259 | library/urllib.parse | :scheme | <URL:scheme://host/path> | |
| 260 | library/urllib.parse | :scheme | URL:scheme://host/path | |
| 261 | library/uuid | :uuid | urn:uuid:12345678-1234-5678-1234-567812345678 | |
| 262 | library/venv | :param | :param nodist: If true, setuptools and pip are not installed into the | |
| 263 | library/venv | :param | :param progress: If setuptools or pip are installed, the progress of the | |
| 264 | library/venv | :param | :param nopip: If true, pip is not installed into the created | |
| 265 | library/venv | :param | :param context: The information for the virtual environment | |
| 266 | library/xmlrpc.client | :nil | ex:nil | |
| 267 | library/xmlrpc.client | :pass | http://user:pass@host:port/path | |
| 268 | library/xmlrpc.client | :pass | user:pass | |
| 269 | library/xmlrpc.client | :port | http://user:pass@host:port/path | |
| 270 | license | ` | ``Software''), to deal in the Software without restriction, including | |
| 271 | license | ` | THE SOFTWARE IS PROVIDED ``AS IS'', WITHOUT WARRANTY OF ANY KIND, | |
| 272 | license | ` | * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND | |
| 273 | license | ` | THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND | |
| 274 | license | ` | * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY | |
| 275 | license | ` | THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND | |
| 276 | license | :zooko | mailto:zooko@zooko.com | |
| 277 | reference/expressions | :index | x[index:index] | |
| 278 | reference/lexical_analysis | ` | $ ? ` | |
| 279 | reference/lexical_analysis | :fileencoding | # vim:fileencoding=<encoding-name> | |
| 280 | reference/datamodel | ` | "Return the result of the expression `obj[x]`" | |
| 281 | tutorial/datastructures | :value | It is also possible to delete a key:value | |
| 282 | tutorial/datastructures | :value | key:value pairs within the braces adds initial key:value pairs | |
| 283 | tutorial/stdlib2 | :config | logging.warning('Warning:config file %s not found', 'server.conf') | |
| 284 | tutorial/stdlib2 | :config | WARNING:root:Warning:config file server.conf not found | |
| 285 | tutorial/stdlib2 | :Critical | CRITICAL:root:Critical error -- shutting down | |
| 286 | tutorial/stdlib2 | :Error | ERROR:root:Error occurred | |
| 287 | tutorial/stdlib2 | :root | CRITICAL:root:Critical error -- shutting down | |
| 288 | tutorial/stdlib2 | :root | ERROR:root:Error occurred | |
| 289 | tutorial/stdlib2 | :root | WARNING:root:Warning:config file server.conf not found | |
| 290 | tutorial/stdlib2 | :start | extra = data[start:start+extra_size] | |
| 291 | tutorial/stdlib2 | :start | fields = struct.unpack('<IIIHH', data[start:start+16]) | |
| 292 | tutorial/stdlib2 | :start | filename = data[start:start+filenamesize] | |
| 293 | tutorial/stdlib2 | :Warning | WARNING:root:Warning:config file server.conf not found | |
| 294 | using/cmdline | :errorhandler | :errorhandler | |
| 295 | using/cmdline | :line | file:line: category: message | |
| 296 | using/unix | :Packaging | https://en.opensuse.org/Portal:Packaging | |
| 297 | whatsnew/2.0 | :len | ||
| 298 | whatsnew/2.3 | :: | ||
| 299 | whatsnew/2.3 | :config | ||
| 300 | whatsnew/2.3 | :Critical | ||
| 301 | whatsnew/2.3 | :Error | ||
| 302 | whatsnew/2.3 | :Problem | ||
| 303 | whatsnew/2.3 | :root | ||
| 304 | whatsnew/2.3 | :Warning | ||
| 305 | whatsnew/2.4 | :: | ||
| 306 | whatsnew/2.4 | :System | ||
| 307 | whatsnew/2.5 | :memory | :memory: | |
| 308 | whatsnew/2.5 | :step | [start:stop:step] | |
| 309 | whatsnew/2.5 | :stop | [start:stop:step] | |
| 310 | whatsnew/2.7 | :: | ParseResult(scheme='http', netloc='[1080::8:800:200C:417A]', | |
| 311 | whatsnew/2.7 | :: | >>> urlparse.urlparse('http://[1080::8:800:200C:417A]/foo') | |
| 312 | whatsnew/2.7 | :Sunday | '2009:4:Sunday' | |
| 313 | whatsnew/2.7 | :Cookie | export PYTHONWARNINGS=all,error:::Cookie:0 | |
| 314 | whatsnew/2.7 | :: | export PYTHONWARNINGS=all,error:::Cookie:0 | |
| 315 | whatsnew/3.2 | :affe | netloc='[dead:beef:cafe:5417:affe:8FA3:deaf:feed]', | |
| 316 | whatsnew/3.2 | :affe | >>> urllib.parse.urlparse('http://[dead:beef:cafe:5417:affe:8FA3:deaf:feed]/foo/') | |
| 317 | whatsnew/3.2 | :beef | netloc='[dead:beef:cafe:5417:affe:8FA3:deaf:feed]', | |
| 318 | whatsnew/3.2 | :beef | >>> urllib.parse.urlparse('http://[dead:beef:cafe:5417:affe:8FA3:deaf:feed]/foo/') | |
| 319 | whatsnew/3.2 | :cafe | netloc='[dead:beef:cafe:5417:affe:8FA3:deaf:feed]', | |
| 320 | whatsnew/3.2 | :cafe | >>> urllib.parse.urlparse('http://[dead:beef:cafe:5417:affe:8FA3:deaf:feed]/foo/') | |
| 321 | whatsnew/3.2 | :deaf | netloc='[dead:beef:cafe:5417:affe:8FA3:deaf:feed]', | |
| 322 | whatsnew/3.2 | :deaf | >>> urllib.parse.urlparse('http://[dead:beef:cafe:5417:affe:8FA3:deaf:feed]/foo/') | |
| 323 | whatsnew/3.2 | :directory | ${buildout:directory}/downloads/dist | |
| 324 | whatsnew/3.2 | :: | $ export PYTHONWARNINGS='ignore::RuntimeWarning::,once::UnicodeWarning::' | |
| 325 | whatsnew/3.2 | :feed | netloc='[dead:beef:cafe:5417:affe:8FA3:deaf:feed]', | |
| 326 | whatsnew/3.2 | :feed | >>> urllib.parse.urlparse('http://[dead:beef:cafe:5417:affe:8FA3:deaf:feed]/foo/') | |
| 327 | whatsnew/3.2 | :gz | >>> with tarfile.open(name='myarchive.tar.gz', mode='w:gz') as tf: | |
| 328 | whatsnew/3.2 | :location | zope9-location = ${zope9:location} | |
| 329 | whatsnew/3.2 | :prefix | zope-conf = ${custom:prefix}/etc/zope.conf | |
| 330 | library/re | ` | !#$%&'*+-.^_`|~: | |
| 331 | library/re | ` | !\#\$%\&'\*\+\-\.\^_`\|\~: | |
| 332 | library/tarfile | :xz | 'x:xz' | |
| 333 | library/warnings | :message | action:message:category:module:line | |
| 334 | library/warnings | :category | action:message:category:module:line | |
| 335 | library/warnings | :module | action:message:category:module:line | |
| 336 | library/warnings | :line | action:message:category:module:line | |
| 337 | library/warnings | :: | error::ResourceWarning | |
| 338 | library/warnings | :: | default::DeprecationWarning | |
| 339 | library/warnings | :: | default:::mymodule | |
| 340 | library/warnings | :mymodule | default:::mymodule | |
| 341 | library/warnings | :: | error:::mymodule | |
| 342 | library/warnings | :mymodule | error:::mymodule | |
| 343 | library/warnings | :: | ignore::DeprecationWarning | |
| 344 | library/warnings | :: | ignore::PendingDeprecationWarning | |
| 345 | library/warnings | :: | ignore::ImportWarning | |
| 346 | library/warnings | :: | ignore::ResourceWarning | |
| 347 | library/xml.etree.elementtree | :sometag | prefix:sometag | |
| 348 | library/xml.etree.elementtree | :fictional | <actors xmlns:fictional="http://characters.example.com" | |
| 349 | library/xml.etree.elementtree | :character | <fictional:character>Lancelot</fictional:character> | |
| 350 | library/xml.etree.elementtree | :character | <fictional:character>Archie Leach</fictional:character> | |
| 351 | library/xml.etree.elementtree | :character | <fictional:character>Sir Robin</fictional:character> | |
| 352 | library/xml.etree.elementtree | :character | <fictional:character>Gunther</fictional:character> | |
| 353 | library/xml.etree.elementtree | :character | <fictional:character>Commander Clement</fictional:character> | |
| 354 | library/xml.etree.elementtree | :actor | for actor in root.findall('real_person:actor', ns): | |
| 355 | library/xml.etree.elementtree | :name | name = actor.find('real_person:name', ns) | |
| 356 | library/xml.etree.elementtree | :character | for char in actor.findall('role:character', ns): | |
| 357 | library/zipapp | :main | $ python -m zipapp myapp -m "myapp:main" | |
| 358 | library/zipapp | :fn | pkg.mod:fn | |
| 359 | library/zipapp | :callable | pkg.module:callable | |
| 360 | library/stdtypes | :: | >>> m[::2].tolist() | |
| 361 | whatsnew/3.5 | :root | 'WARNING:root:warning\n' | |
| 362 | whatsnew/3.5 | :warning | 'WARNING:root:warning\n' | |
| 363 | whatsnew/3.5 | :: | >>> addr6 = ipaddress.IPv6Address('::1') | |
| 364 | whatsnew/3.5 | :root | ERROR:root:exception | |
| 365 | whatsnew/3.5 | :exception | ERROR:root:exception | |
| 366 | whatsnew/changelog | ` | '`' | |
| 367 | whatsnew/changelog | :end | str[start:end] | |
| 368 | library/binascii | ` | '`' | |
| 369 | library/uu | ` | '`' | |
| 370 | whatsnew/3.7 | ` | '`' | |
| 371 | whatsnew/3.7 | :: | error::BytesWarning | |
| 372 | whatsnew/changelog | :: | error::BytesWarning | |
| 373 | whatsnew/changelog | :: | default::BytesWarning | |
| 374 | whatsnew/changelog | :: | default::DeprecationWarning | |
| 375 | library/importlib.metadata | :main | EntryPoint(name='wheel', value='wheel.cli:main', group='console_scripts') | |
| 376 | library/importlib.metadata | ` | loading the metadata for packages for the indicated ``context``. | |
| 377 | library/re | ` | ` | |
| 378 | library/typing | ` | # will always be an instance of whatever ``cls`` is |