summaryrefslogtreecommitdiffstats
path: root/Doc/library/warnings.rst
Commit message (Collapse)AuthorAgeFilesLines
* #6513: fix example code: warning categories are classes, not instances.Georg Brandl2009-07-181-1/+1
|
* add versionaddedBenjamin Peterson2009-07-121-0/+2
|
* Require implementations for warnings.showwarning() support the 'line' argument.Brett Cannon2009-03-111-3/+2
| | | | | | Was a DeprecationWarning for not supporting it since Python 2.6. Closes issue #3652.
* Remove trailing whitespace.Georg Brandl2009-01-031-4/+4
|
* Issue #3781: Final cleanup of warnings.catch_warnings and its usage in the ↵Nick Coghlan2008-09-111-11/+21
| | | | test suite. Closes issue w.r.t. 2.6 (R: Brett Cannon)
* warnings.catch_warnings() now returns a list or None instead of the customBrett Cannon2008-09-091-38/+74
| | | | | | | | WarningsRecorder object. This makes the API simpler to use as no special object must be learned. Closes issue 3781. Review by Benjamin Peterson.
* Make it more obvious that warnings.catch_warnings() and its arguments should ↵Brett Cannon2008-09-051-1/+1
| | | | be considered keyword-only.
* typo fixAndrew M. Kuchling2008-09-021-1/+1
|
* Move test.test_support.catch_warning() to the warnings module, rename itBrett Cannon2008-09-021-0/+50
| | | | | | | | | | | catch_warnings(), and clean up the API. While expanding the test suite, a bug was found where a warning about the 'line' argument to showwarning() was not letting functions with '*args' go without a warning. Closes issue 3602. Code review by Benjamin Peterson.
* Document the 'line' argumentAndrew M. Kuchling2008-05-101-1/+6
|
* Add a DeprecationWarning for when warnings.showwarning() is set to a functionBrett Cannon2008-05-051-1/+2
| | | | that lacks support for the new 'line' argument.
* Fix markup.Georg Brandl2008-04-131-7/+5
|
* Re-implement the 'warnings' module in C. This allows for usage of theBrett Cannon2008-04-121-5/+13
| | | | | | | | | 'warnings' code in places where it was previously not possible (e.g., the parser). It could also potentially lead to a speed-up in interpreter start-up if the C version of the code (_warnings) is imported over the use of the Python version in key places. Closes issue #1631171.
* PyErr_Warn is decrepated. Use PyErr_WarnExBenjamin Peterson2008-03-311-1/+1
|
* Use a versionchanged directive.Brett Cannon2007-12-091-2/+5
|
* Diverse markup fixes.Georg Brandl2007-12-061-1/+1
|
* Expose Py_Py3kWarningFlag as sys.py3kwarning as discussed in #1504Christian Heimes2007-11-271-0/+8
| | | | Also added a warning.warnpy3k() as convenient method for Python 3.x related deprecation warnings.
* Move the 2.6 reST doc tree in place.Georg Brandl2007-08-151-0/+242