Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | #6513: fix example code: warning categories are classes, not instances. | Georg Brandl | 2009-07-18 | 1 | -1/+1 |
| | |||||
* | add versionadded | Benjamin Peterson | 2009-07-12 | 1 | -0/+2 |
| | |||||
* | Require implementations for warnings.showwarning() support the 'line' argument. | Brett Cannon | 2009-03-11 | 1 | -3/+2 |
| | | | | | | Was a DeprecationWarning for not supporting it since Python 2.6. Closes issue #3652. | ||||
* | Remove trailing whitespace. | Georg Brandl | 2009-01-03 | 1 | -4/+4 |
| | |||||
* | Issue #3781: Final cleanup of warnings.catch_warnings and its usage in the ↵ | Nick Coghlan | 2008-09-11 | 1 | -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 custom | Brett Cannon | 2008-09-09 | 1 | -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 Cannon | 2008-09-05 | 1 | -1/+1 |
| | | | | be considered keyword-only. | ||||
* | typo fix | Andrew M. Kuchling | 2008-09-02 | 1 | -1/+1 |
| | |||||
* | Move test.test_support.catch_warning() to the warnings module, rename it | Brett Cannon | 2008-09-02 | 1 | -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' argument | Andrew M. Kuchling | 2008-05-10 | 1 | -1/+6 |
| | |||||
* | Add a DeprecationWarning for when warnings.showwarning() is set to a function | Brett Cannon | 2008-05-05 | 1 | -1/+2 |
| | | | | that lacks support for the new 'line' argument. | ||||
* | Fix markup. | Georg Brandl | 2008-04-13 | 1 | -7/+5 |
| | |||||
* | Re-implement the 'warnings' module in C. This allows for usage of the | Brett Cannon | 2008-04-12 | 1 | -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_WarnEx | Benjamin Peterson | 2008-03-31 | 1 | -1/+1 |
| | |||||
* | Use a versionchanged directive. | Brett Cannon | 2007-12-09 | 1 | -2/+5 |
| | |||||
* | Diverse markup fixes. | Georg Brandl | 2007-12-06 | 1 | -1/+1 |
| | |||||
* | Expose Py_Py3kWarningFlag as sys.py3kwarning as discussed in #1504 | Christian Heimes | 2007-11-27 | 1 | -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 Brandl | 2007-08-15 | 1 | -0/+242 |