cpython/Doc/tools/susp-ignored.csv
Victor Stinner 747f48e2e9
bpo-32230: Set sys.warnoptions with -X dev (#4820)
Rather than supporting dev mode directly in the warnings module, this
instead adjusts the initialisation code to add an extra 'default'
entry to sys.warnoptions when dev mode is enabled.

This ensures that dev mode behaves *exactly* as if `-Wdefault` had
been passed on the command line, including in the way it interacts
with `sys.warnoptions`, and with other command line flags like `-bb`.

Fix also bpo-20361: have -b & -bb options take precedence over any
other warnings options.

Patch written by Nick Coghlan, with minor modifications of Victor Stinner.
2017-12-12 22:59:48 +01:00

20 KiB

1c-api/arg:refPyArg_ParseTuple(args, "O|O:ref", &object, &callback)
2c-api/list:highlist[low:high]
3c-api/sequence:i2del o[i1:i2]
4c-api/sequence:i2o[i1:i2]
5c-api/unicode:endstr[start:end]
6c-api/unicode:startunicode[start:start+length]
7distutils/examples267`This is the description of the ``foobar`` package.
8distutils/setupscript::
9extending/embedding:numargsif(!PyArg_ParseTuple(args, ":numargs"))
10extending/extending:myfunctionPyArg_ParseTuple(args, "D:myfunction", &c);
11extending/extending:setif (PyArg_ParseTuple(args, "O:set_callback", &temp)) {
12extending/newtypes:callif (!PyArg_ParseTuple(args, "sss:call", &arg1, &arg2, &arg3)) {
13faq/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(
14faq/programming::for x in sequence[::-1]:
15faq/programming:reduceprint((lambda Ru,Ro,Iu,Io,IM,Sx,Sy:reduce(lambda x,y:x+y,map(lambda y,
16faq/programming:reduceSx=Sx,Sy=Sy:reduce(lambda x,y:x+y,map(lambda x,xc=Ru,yc=yc,Ru=Ru,Ro=Ro,
17faq/windows:bd8afb90ebf2Python 3.3.0 (v3.3.0:bd8afb90ebf2, Sep 29 2012, 10:55:48) [MSC v.1600 32 bit (Intel)] on win32
18howto/cporting:encodeif (!PyArg_ParseTuple(args, "O:encode_object", &myobj))
19howto/cporting:sayif (!PyArg_ParseTuple(args, "U:say_hello", &name))
20howto/curses:blackcolors when it activates color mode. They are: 0:black, 1:red,
21howto/curses:redcolors when it activates color mode. They are: 0:black, 1:red,
22howto/curses:green2:green, 3:yellow, 4:blue, 5:magenta, 6:cyan, and 7:white. The
23howto/curses:yellow2:green, 3:yellow, 4:blue, 5:magenta, 6:cyan, and 7:white. The
24howto/curses:blue2:green, 3:yellow, 4:blue, 5:magenta, 6:cyan, and 7:white. The
25howto/curses:magenta2:green, 3:yellow, 4:blue, 5:magenta, 6:cyan, and 7:white. The
26howto/curses:cyan2:green, 3:yellow, 4:blue, 5:magenta, 6:cyan, and 7:white. The
27howto/curses:white2:green, 3:yellow, 4:blue, 5:magenta, 6:cyan, and 7:white. The
28howto/instrumentation::python$target:::function-entry
29howto/instrumentation:functionpython$target:::function-entry
30howto/instrumentation::python$target:::function-return
31howto/instrumentation:functionpython$target:::function-return
32howto/instrumentation:call156641360502280 function-entry:call_stack.py:start:23
33howto/instrumentation:start156641360502280 function-entry:call_stack.py:start:23
34howto/instrumentation:function156641360518804 function-entry: call_stack.py:function_1:1
35howto/instrumentation:function156641360532797 function-entry: call_stack.py:function_3:9
36howto/instrumentation:function156641360546807 function-return: call_stack.py:function_3:10
37howto/instrumentation:function156641360563367 function-return: call_stack.py:function_1:2
38howto/instrumentation:function156641360578365 function-entry: call_stack.py:function_2:5
39howto/instrumentation:function156641360591757 function-entry: call_stack.py:function_1:1
40howto/instrumentation:function156641360605556 function-entry: call_stack.py:function_3:9
41howto/instrumentation:function156641360617482 function-return: call_stack.py:function_3:10
42howto/instrumentation:function156641360629814 function-return: call_stack.py:function_1:2
43howto/instrumentation:function156641360642285 function-return: call_stack.py:function_2:6
44howto/instrumentation:function156641360656770 function-entry: call_stack.py:function_3:9
45howto/instrumentation:function156641360669707 function-return: call_stack.py:function_3:10
46howto/instrumentation:function156641360687853 function-entry: call_stack.py:function_4:13
47howto/instrumentation:function156641360700719 function-return: call_stack.py:function_4:14
48howto/instrumentation:function156641360719640 function-entry: call_stack.py:function_5:18
49howto/instrumentation:function156641360732567 function-return: call_stack.py:function_5:21
50howto/instrumentation:call156641360747370 function-return:call_stack.py:start:28
51howto/instrumentation:start156641360747370 function-return:call_stack.py:start:28
52howto/ipaddress:DB8>>> ipaddress.ip_address('2001:DB8::1')
53howto/ipaddress::>>> ipaddress.ip_address('2001:DB8::1')
54howto/ipaddress:db8IPv6Address('2001:db8::1')
55howto/ipaddress::IPv6Address('2001:db8::1')
56howto/ipaddress::IPv6Address('::1')
57howto/ipaddress:db8>>> ipaddress.ip_network('2001:db8::0/96')
58howto/ipaddress::>>> ipaddress.ip_network('2001:db8::0/96')
59howto/ipaddress:db8IPv6Network('2001:db8::/96')
60howto/ipaddress::IPv6Network('2001:db8::/96')
61howto/ipaddress:db8IPv6Network('2001:db8::/128')
62howto/ipaddress::IPv6Network('2001:db8::/128')
63howto/ipaddress:db8IPv6Interface('2001:db8::1/96')
64howto/ipaddress::IPv6Interface('2001:db8::1/96')
65howto/ipaddress:db8>>> addr6 = ipaddress.ip_address('2001:db8::1')
66howto/ipaddress::>>> addr6 = ipaddress.ip_address('2001:db8::1')
67howto/ipaddress:db8>>> host6 = ipaddress.ip_interface('2001:db8::1/96')
68howto/ipaddress::>>> host6 = ipaddress.ip_interface('2001:db8::1/96')
69howto/ipaddress:db8>>> net6 = ipaddress.ip_network('2001:db8::0/96')
70howto/ipaddress::>>> net6 = ipaddress.ip_network('2001:db8::0/96')
71howto/ipaddress:ffffIPv6Address('ffff:ffff:ffff:ffff:ffff:ffff::')
72howto/ipaddress::IPv6Address('ffff:ffff:ffff:ffff:ffff:ffff::')
73howto/ipaddress::IPv6Address('::ffff:ffff')
74howto/ipaddress:ffffIPv6Address('::ffff:ffff')
75howto/ipaddress:db8'2001:db8::/96'
76howto/ipaddress::'2001:db8::/96'
77howto/ipaddress:db8>>> ipaddress.ip_interface('2001:db8::1/96')
78howto/ipaddress::>>> ipaddress.ip_interface('2001:db8::1/96')
79howto/ipaddress:db8'2001:db8::1'
80howto/ipaddress::'2001:db8::1'
81howto/ipaddress:db8IPv6Address('2001:db8::ffff:ffff')
82howto/ipaddress::IPv6Address('2001:db8::ffff:ffff')
83howto/ipaddress:ffffIPv6Address('2001:db8::ffff:ffff')
84howto/logging:AndWARNING:And this, too
85howto/logging:AndWARNING:root:And this, too
86howto/logging:DoingINFO:root:Doing something
87howto/logging:FinishedINFO:root:Finished
88howto/logging:loggerseverity:logger name:message
89howto/logging:LookWARNING:root:Look before you leap!
90howto/logging:messageseverity:logger name:message
91howto/logging:rootDEBUG:root:This message should go to the log file
92howto/logging:rootINFO:root:Doing something
93howto/logging:rootINFO:root:Finished
94howto/logging:rootINFO:root:So should this
95howto/logging:rootINFO:root:Started
96howto/logging:rootWARNING:root:And this, too
97howto/logging:rootWARNING:root:Look before you leap!
98howto/logging:rootWARNING:root:Watch out!
99howto/logging:SoINFO:root:So should this
100howto/logging:SoINFO:So should this
101howto/logging:StartedINFO:root:Started
102howto/logging:ThisDEBUG:root:This message should go to the log file
103howto/logging:ThisDEBUG:This message should appear on the console
104howto/logging:WatchWARNING:root:Watch out!
105howto/pyporting::Programming Language :: Python :: 2
106howto/pyporting::Programming Language :: Python :: 3
107howto/regex::
108howto/regex:foo(?:foo)
109howto/urllib2:password"joe:password@example.com"
110library/audioop:ipos# factor = audioop.findfactor(in_test[ipos*2:ipos*2+len(out_test)],
111library/bisect32:hiall(val >= x for val in a[i:hi])
112library/bisect42:hiall(val > x for val in a[i:hi])
113library/configparser:homemy_dir: ${Common:home_dir}/twosheds
114library/configparser:option${section:option}
115library/configparser:pathpython_dir: ${Frameworks:path}/Python/Versions/${Frameworks:Python}
116library/configparser:Pythonpython_dir: ${Frameworks:path}/Python/Versions/${Frameworks:Python}
117library/configparser:systempath: ${Common:system_dir}/Library/Frameworks/
118library/datetime:MM
119library/datetime:SS
120library/decimal:optionaltrailneg:optional trailing minus indicator
121library/difflib:ahia[alo:ahi]
122library/difflib:bhib[blo:bhi]
123library/difflib:i1
124library/difflib:i2
125library/difflib:j2
126library/doctest```factorial`` from the ``example`` module:
127library/doctest`The ``example`` module
128library/doctest`Using ``factorial``
129library/exceptions:errerr.object[err.start:err.end]
130library/functions:stepa[start:stop:step]
131library/functions:stopa[start:stop, i]
132library/functions:stopa[start:stop:step]
133library/hashlib:LEAFh00 = blake2b(buf[0:LEAF_SIZE], fanout=FANOUT, depth=DEPTH,
134library/http.client:porthost:port
135library/http.cookies`!#$%&'*+-.^_`|~:
136library/imaplib:MM"DD-Mmm-YYYY HH:MM:SS
137library/imaplib:SS"DD-Mmm-YYYY HH:MM:SS
138library/inspect:int>>> def foo(a, *, b:int, **kwargs):
139library/inspect:int'(a, *, b:int, **kwargs)'
140library/inspect:int'b:int'
141library/ipaddress:db8>>> ipaddress.ip_address('2001:db8::')
142library/ipaddress::>>> ipaddress.ip_address('2001:db8::')
143library/ipaddress:db8IPv6Address('2001:db8::')
144library/ipaddress::IPv6Address('2001:db8::')
145library/ipaddress:db8>>> ipaddress.IPv6Address('2001:db8::1000')
146library/ipaddress::>>> ipaddress.IPv6Address('2001:db8::1000')
147library/ipaddress:db8IPv6Address('2001:db8::1000')
148library/ipaddress::IPv6Address('2001:db8::1000')
149library/ipaddress:db8>>> ipaddress.ip_address("2001:db8::1").reverse_pointer
150library/ipaddress::>>> ipaddress.ip_address("2001:db8::1").reverse_pointer
151library/ipaddress::"::abc:7:def"
152library/ipaddress:def"::abc:7:def"
153library/ipaddress::::FFFF/96
154library/ipaddress::2002::/16
155library/ipaddress::2001::/32
156library/ipaddress::>>> str(ipaddress.IPv6Address('::1'))
157library/ipaddress::'::1'
158library/ipaddress:ff00ffff:ff00::
159library/ipaddress:db002001:db00::0/24
160library/ipaddress::2001:db00::0/24
161library/ipaddress:db002001:db00::0/ffff:ff00::
162library/ipaddress::2001:db00::0/ffff:ff00::
163library/itertools:stepelements from seq[start:stop:step]
164library/itertools:stopelements from seq[start:stop:step]
165library/logging.handlers:porthost:port
166library/mmap:i2obj[i1:i2]
167library/multiprocessing`# Add more tasks using `put()`
168library/multiprocessing:queue>>> QueueManager.register('get_queue', callable=lambda:queue)
169library/multiprocessing`# register the Foo class; make `f()` and `g()` accessible via proxy
170library/multiprocessing`# register the Foo class; make `g()` and `_h()` accessible via proxy
171library/multiprocessing`# register the generator function baz; use `GeneratorProxy` to make proxies
172library/nntplib:bytes:bytes
173library/nntplib:lines:lines
174library/optparse:lendel parser.rargs[:len(value)]
175library/os.path:fooc:foo
176library/pathlib:bar>>> PureWindowsPath('c:/Windows', 'd:bar')
177library/pathlib:barPureWindowsPath('d:bar')
178library/pathlib:Program>>> PureWindowsPath('c:Program Files/').root
179library/pathlib:Program>>> PureWindowsPath('c:Program Files/').anchor
180library/pdb:linenofilename:lineno
181library/pickle:memoryconn = sqlite3.connect(":memory:")
182library/posix`CFLAGS="`getconf LFS_CFLAGS`" OPT="-g -O2 $CFLAGS"
183library/pprint::'Programming Language :: Python :: 2 :: Only'],
184library/pprint::'Programming Language :: Python :: 2.6',
185library/pprint::'Programming Language :: Python :: 2.7',
186library/profile:linenofilename:lineno(function)
187library/pyexpat:elem1<py:elem1 />
188library/pyexpat:pyxmlns:py = "http://www.python.org/ns/">
189library/random:lennew_diff = mean(combined[:len(drug)]) - mean(combined[len(drug):])
190library/smtplib:portmethod must support that as well as a regular host:port
191library/socket::'5aef:2b::8'
192library/socket:canreturn (can_id, can_dlc, data[:can_dlc])
193library/socket:lenfds.fromstring(cmsg_data[:len(cmsg_data) - (len(cmsg_data) % fds.itemsize)])
194library/sqlite3:agecur.execute("select * from people where name_last=:who and age=:age", {"who": who, "age": age})
195library/sqlite3:memory
196library/sqlite3:whocur.execute("select * from people where name_last=:who and age=:age", {"who": who, "age": age})
197library/sqlite3:pathdb = sqlite3.connect('file:path/to/database?mode=ro', uri=True)
198library/ssl:MyOrganizational Unit Name (eg, section) []:My Group
199library/ssl:MyOrganization Name (eg, company) [Internet Widgits Pty Ltd]:My Organization, Inc.
200library/ssl:myserverCommon Name (eg, YOUR name) []:myserver.mygroup.myorganization.com
201library/ssl:MyStateState or Province Name (full name) [Some-State]:MyState
202library/ssl:opsEmail Address []:ops@myserver.mygroup.myorganization.com
203library/ssl:SomeLocality Name (eg, city) []:Some City
204library/ssl:USCountry Name (2 letter code) [AU]:US
205library/stdtypes:ends[start:end]
206library/stdtypes::>>> hash(v[::-2]) == hash(b'abcefg'[::-2])
207library/stdtypes:lens[len(s):len(s)]
208library/stdtypes::>>> y = m[::2]
209library/stdtypes::>>> z = y[::-2]
210library/subprocess`output=`dmesg | grep hda`
211library/subprocess`output=`mycmd myarg`
212library/tarfile:bz2
213library/tarfile:compressionfilemode[:compression]
214library/tarfile:gz
215library/tarfile:xz'a:xz'
216library/tarfile:xz'r:xz'
217library/tarfile:xz'w:xz'
218library/time:mm
219library/time:ss
220library/tracemalloc:limitfor index, stat in enumerate(top_stats[:limit], 1):
221library/turtle::Example::
222library/unittest:fooself.assertEqual(cm.output, ['INFO:foo:first message',
223library/unittest:firstself.assertEqual(cm.output, ['INFO:foo:first message',
224library/unittest:foo'ERROR:foo.bar:second message'])
225library/unittest:second'ERROR:foo.bar:second message'])
226library/urllib.request:closeConnection:close
227library/urllib.request:port:port
228library/urllib.request:langxmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">\n\n<head>\n
229library/urllib.request:password"joe:password@python.org"
230library/uuid:uuidurn:uuid:12345678-1234-5678-1234-567812345678
231library/venv:param:param nodist: If True, setuptools and pip are not installed into the
232library/venv:param:param progress: If setuptools or pip are installed, the progress of the
233library/venv:param:param nopip: If True, pip is not installed into the created
234library/venv:param:param context: The information for the virtual environment
235library/xmlrpc.client:nilex:nil
236library/xmlrpc.client:passhttp://user:pass@host:port/path
237library/xmlrpc.client:passuser:pass
238library/xmlrpc.client:porthttp://user:pass@host:port/path
239license```Software''), to deal in the Software without restriction, including
240license`THE SOFTWARE IS PROVIDED ``AS IS'', WITHOUT WARRANTY OF ANY KIND,
241license`* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
242license`THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
243license`* THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
244license`THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
245license:zookomailto:zooko@zooko.com
246reference/expressions:indexx[index:index]
247reference/lexical_analysis`$ ? `
248reference/lexical_analysis:fileencoding# vim:fileencoding=<encoding-name>
249tutorial/datastructures:valueIt is also possible to delete a key:value
250tutorial/datastructures:valuekey:value pairs within the braces adds initial key:value pairs
251tutorial/stdlib2:configlogging.warning('Warning:config file %s not found', 'server.conf')
252tutorial/stdlib2:configWARNING:root:Warning:config file server.conf not found
253tutorial/stdlib2:CriticalCRITICAL:root:Critical error -- shutting down
254tutorial/stdlib2:ErrorERROR:root:Error occurred
255tutorial/stdlib2:rootCRITICAL:root:Critical error -- shutting down
256tutorial/stdlib2:rootERROR:root:Error occurred
257tutorial/stdlib2:rootWARNING:root:Warning:config file server.conf not found
258tutorial/stdlib2:startextra = data[start:start+extra_size]
259tutorial/stdlib2:startfields = struct.unpack('<IIIHH', data[start:start+16])
260tutorial/stdlib2:startfilename = data[start:start+filenamesize]
261tutorial/stdlib2:WarningWARNING:root:Warning:config file server.conf not found
262using/cmdline:categoryaction:message:category:module:line
263using/cmdline:errorhandler:errorhandler
264using/cmdline:lineaction:message:category:module:line
265using/cmdline:linefile:line: category: message
266using/cmdline:messageaction:message:category:module:line
267using/cmdline:moduleaction:message:category:module:line
268using/unix:Packaginghttps://en.opensuse.org/Portal:Packaging
269whatsnew/2.0:len
270whatsnew/2.3::
271whatsnew/2.3:config
272whatsnew/2.3:Critical
273whatsnew/2.3:Error
274whatsnew/2.3:Problem
275whatsnew/2.3:root
276whatsnew/2.3:Warning
277whatsnew/2.4::
278whatsnew/2.4:System
279whatsnew/2.5:memory:memory:
280whatsnew/2.5:step[start:stop:step]
281whatsnew/2.5:stop[start:stop:step]
282whatsnew/2.7::ParseResult(scheme='http', netloc='[1080::8:800:200C:417A]',
283whatsnew/2.7::>>> urlparse.urlparse('http://[1080::8:800:200C:417A]/foo')
284whatsnew/2.7:Sunday'2009:4:Sunday'
285whatsnew/2.7:Cookieexport PYTHONWARNINGS=all,error:::Cookie:0
286whatsnew/2.7::export PYTHONWARNINGS=all,error:::Cookie:0
287whatsnew/3.2:affenetloc='[dead:beef:cafe:5417:affe:8FA3:deaf:feed]',
288whatsnew/3.2:affe>>> urllib.parse.urlparse('http://[dead:beef:cafe:5417:affe:8FA3:deaf:feed]/foo/')
289whatsnew/3.2:beefnetloc='[dead:beef:cafe:5417:affe:8FA3:deaf:feed]',
290whatsnew/3.2:beef>>> urllib.parse.urlparse('http://[dead:beef:cafe:5417:affe:8FA3:deaf:feed]/foo/')
291whatsnew/3.2:cafenetloc='[dead:beef:cafe:5417:affe:8FA3:deaf:feed]',
292whatsnew/3.2:cafe>>> urllib.parse.urlparse('http://[dead:beef:cafe:5417:affe:8FA3:deaf:feed]/foo/')
293whatsnew/3.2:deafnetloc='[dead:beef:cafe:5417:affe:8FA3:deaf:feed]',
294whatsnew/3.2:deaf>>> urllib.parse.urlparse('http://[dead:beef:cafe:5417:affe:8FA3:deaf:feed]/foo/')
295whatsnew/3.2:directory${buildout:directory}/downloads/dist
296whatsnew/3.2::$ export PYTHONWARNINGS='ignore::RuntimeWarning::,once::UnicodeWarning::'
297whatsnew/3.2:feednetloc='[dead:beef:cafe:5417:affe:8FA3:deaf:feed]',
298whatsnew/3.2:feed>>> urllib.parse.urlparse('http://[dead:beef:cafe:5417:affe:8FA3:deaf:feed]/foo/')
299whatsnew/3.2:gz>>> with tarfile.open(name='myarchive.tar.gz', mode='w:gz') as tf:
300whatsnew/3.2:locationzope9-location = ${zope9:location}
301whatsnew/3.2:prefixzope-conf = ${custom:prefix}/etc/zope.conf
302library/re`!#$%&'*+-.^_`|~:
303library/re`!\#\$%\&'\*\+\-\.\^_`\|\~:
304library/tarfile:xz'x:xz'
305library/xml.etree.elementtree:sometagprefix:sometag
306library/xml.etree.elementtree:fictional<actors xmlns:fictional="http://characters.example.com"
307library/xml.etree.elementtree:character<fictional:character>Lancelot</fictional:character>
308library/xml.etree.elementtree:character<fictional:character>Archie Leach</fictional:character>
309library/xml.etree.elementtree:character<fictional:character>Sir Robin</fictional:character>
310library/xml.etree.elementtree:character<fictional:character>Gunther</fictional:character>
311library/xml.etree.elementtree:character<fictional:character>Commander Clement</fictional:character>
312library/xml.etree.elementtree:actorfor actor in root.findall('real_person:actor', ns):
313library/xml.etree.elementtree:namename = actor.find('real_person:name', ns)
314library/xml.etree.elementtree:characterfor char in actor.findall('role:character', ns):
315library/zipapp:main$ python -m zipapp myapp -m "myapp:main"
316library/zipapp:fnpkg.mod:fn
317library/zipapp:callablepkg.module:callable
318library/stdtypes::>>> m[::2].tolist()
319library/sys`# ``wrapper`` creates a ``wrap(coro)`` coroutine:
320whatsnew/3.5:root'WARNING:root:warning\n'
321whatsnew/3.5:warning'WARNING:root:warning\n'
322whatsnew/3.5::>>> addr6 = ipaddress.IPv6Address('::1')
323whatsnew/3.5:rootERROR:root:exception
324whatsnew/3.5:exceptionERROR:root:exception
325whatsnew/changelog`'`'
326whatsnew/changelog:endstr[start:end]
327library/binascii`'`'
328library/uu`'`'
329whatsnew/3.7`'`'
330whatsnew/3.7::error::BytesWarning
331whatsnew/changelog::error::BytesWarning
332whatsnew/changelog::default::BytesWarning