Subject | Hash | Author | Date (UTC) |
---|---|---|---|
bpo-19225: Remove duplicated description for standard warning categories (GH-1068) | eaeda64c2fd2abd33e59b03298f9cdc9e8efef89 | cocoatomo | 2017-04-15 02:06:02 |
bpo-29738: Add Olivier Vielpeau to Misc/ACKS (GH-1146) | 39f5956ffbcc4fe83cee59eed1d18845a5b25dd2 | Mariatta | 2017-04-15 01:33:48 |
bpo-29738: Fix memory leak in _get_crl_dp (GH-526) | 2849cc34a8db93d448a62d69c462402347b50dcb | Olivier Vielpeau | 2017-04-15 01:06:07 |
bpo-30059: Include Py_Ellipsis in C API documentation (#1018) | 0dc5c3169dcd4853612d11ed8c92b12fa210c07f | Michael Seifert | 2017-04-14 19:18:35 |
improve alignment autoconf test (#1129) | e4f961be0946639eb4356e274268dd9b5e90da9b | Benjamin Peterson | 2017-04-14 16:36:45 |
Fix misplaced positional argument in OS X support library (#1134) | ce040f6c1ef4d31bad8a3ce51a766a0f82c7d2a0 | Jack McCracken | 2017-04-14 12:28:55 |
Relax test timing (bpo-29861) to avoid sporadic failures (#1120) | 685cdb9acc3fca04a9897d88b89771ddfd50e772 | Antoine Pitrou | 2017-04-14 11:10:00 |
bpo-11913: Add README.rst to the distutils standard READMEs list (#563) | f9f87f0934ca570293ba7194bed3448a7f9bf39c | Ryan Gonzalez | 2017-04-14 09:00:25 |
bpo-29869: Add Nevada Sanchez to Misc/ACKS (GH-1125) | 947629916a5ecb1f6f6792e9b9234e084c5bf274 | Mariatta | 2017-04-14 01:30:42 |
bpo-29694: race condition in pathlib mkdir with flags parents=True (GH-1089) | 22a594a0047d7706537ff2ac676cdc0f1dcb329c | Armin Rigo | 2017-04-13 18:08:15 |
bpo-29995: re.escape() now escapes only special characters. (#1007) | 5908300e4b0891fc5ab8bd24fba8fac72012eaa7 | Serhiy Storchaka | 2017-04-13 18:06:43 |
bpo-29869: Allow underscores in numeric literals in lib2to3. (GH-1119) | a6e395dffadf8c5124903c01ad69fefa36b1a935 | Nevada Sanchez | 2017-04-13 17:32:54 |
Fix a typo in Doc/library/functions.rst (GH-1117) | 873ef20d0007b4b120933473e6252d2309a70102 | Joshua Diaddigo | 2017-04-13 17:31:37 |
bpo-30021: Add examples for re.escape(). (#1048) | 8fc7bc2b7631ee819ee614e47b6f44bacebe1574 | Serhiy Storchaka | 2017-04-13 16:17:36 |
bpo-27200: Fix pathlib, ssl, turtle and weakref doctests (GH-616) | 7b2491a6aa5cdc1f8f9e3fd9df91f29ee69aa982 | Marco Buttu | 2017-04-13 14:17:59 |
Blacklist myself from mention-bot (#1114) | d1dc65dc820649e59633142a88eaf97f930963a9 | Berker Peksag | 2017-04-13 14:14:37 |
bpo-29791: Clarify that flush is keyword-only argument (#1093) | 61b9ac93712df8092a25223cd56fa6528359792b | Berker Peksag | 2017-04-13 12:48:18 |
bpo-30055: add testcleanup to leave a fresh context (#1094) | 2c0b5c664ba7d36dc09788d3778d5b33e3fa1bd0 | Marco Buttu | 2017-04-13 11:30:25 |
convert from long long to PyLong loselessly (#1106) | 2c134c31252612ed4729fd05df6ab0e96de8d0b1 | Benjamin Peterson | 2017-04-13 08:44:54 |
bpo-26985: Add missing info of code object in inspect documentation (GH-1090) | a6902e662c18dc837d40664eaafe50a44aae6366 | Xiang Zhang | 2017-04-13 02:38:28 |
File | Lines added | Lines deleted |
---|---|---|
Doc/c-api/exceptions.rst | 9 | 12 |
File Doc/c-api/exceptions.rst changed (mode: 100644) (index 3516a16903..c75408db77) | |||
... | ... | an error value). | |
291 | 291 | is the function calling :c:func:`PyErr_WarnEx`, 2 is the function above that, | is the function calling :c:func:`PyErr_WarnEx`, 2 is the function above that, |
292 | 292 | and so forth. | and so forth. |
293 | 293 | ||
294 | Warning categories must be subclasses of :c:data:`Warning`; the default warning | ||
295 | category is :c:data:`RuntimeWarning`. The standard Python warning categories are | ||
296 | available as global variables whose names are ``PyExc_`` followed by the Python | ||
297 | exception name. These have the type :c:type:`PyObject\*`; they are all class | ||
298 | objects. Their names are :c:data:`PyExc_Warning`, :c:data:`PyExc_UserWarning`, | ||
299 | :c:data:`PyExc_UnicodeWarning`, :c:data:`PyExc_DeprecationWarning`, | ||
300 | :c:data:`PyExc_SyntaxWarning`, :c:data:`PyExc_RuntimeWarning`, and | ||
301 | :c:data:`PyExc_FutureWarning`. :c:data:`PyExc_Warning` is a subclass of | ||
302 | :c:data:`PyExc_Exception`; the other warning categories are subclasses of | ||
303 | :c:data:`PyExc_Warning`. | ||
294 | Warning categories must be subclasses of :c:data:`PyExc_Warning`; | ||
295 | :c:data:`PyExc_Warning` is a subclass of :c:data:`PyExc_Exception`; | ||
296 | the default warning category is :c:data:`PyExc_RuntimeWarning`. The standard | ||
297 | Python warning categories are available as global variables whose names are | ||
298 | enumerated at :ref:`standarwarningcategories`. | ||
304 | 299 | ||
305 | 300 | For information about warning control, see the documentation for the | For information about warning control, see the documentation for the |
306 | 301 | :mod:`warnings` module and the :option:`-W` option in the command line | :mod:`warnings` module and the :option:`-W` option in the command line |
... | ... | Notes: | |
963 | 958 | Only defined on Windows; protect code that uses this by testing that the | Only defined on Windows; protect code that uses this by testing that the |
964 | 959 | preprocessor macro ``MS_WINDOWS`` is defined. | preprocessor macro ``MS_WINDOWS`` is defined. |
965 | 960 | ||
966 | Standard Warnings | ||
967 | ================= | ||
961 | .. _standarwarningcategories: | ||
962 | |||
963 | Standard Warning Categories | ||
964 | =========================== | ||
968 | 965 | ||
969 | 966 | All standard Python warning categories are available as global variables whose | All standard Python warning categories are available as global variables whose |
970 | 967 | names are ``PyExc_`` followed by the Python exception name. These have the type | names are ``PyExc_`` followed by the Python exception name. These have the type |