Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue #26200: Added Py_SETREF and replaced Py_XSETREF with Py_SETREF | Serhiy Storchaka | 2016-04-10 | 1 | -1/+1 |
|\ | | | | | | | in places where Py_DECREF was used. | ||||
| * | Issue #26200: Added Py_SETREF and replaced Py_XSETREF with Py_SETREF | Serhiy Storchaka | 2016-04-10 | 1 | -1/+1 |
| | | | | | | | | in places where Py_DECREF was used. | ||||
* | | Issue #22570: Renamed Py_SETREF to Py_XSETREF. | Serhiy Storchaka | 2016-04-06 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Issue #22570: Renamed Py_SETREF to Py_XSETREF. | Serhiy Storchaka | 2016-04-06 | 1 | -1/+1 |
| | | |||||
* | | get_warnings_attr(): Fix coverity warning | Victor Stinner | 2016-03-23 | 1 | -4/+3 |
| | | | | | | | | | | Don't check if the dict key exists before getting the key. Instead get the key and handle error. | ||||
* | | _warnings.warn_explicit(): try to import warnings | Victor Stinner | 2016-03-22 | 1 | -14/+36 |
| | | | | | | | | | | | | Issue #26592: _warnings.warn_explicit() now tries to import the warnings module (Python implementation) if the source parameter is set to be able to log the traceback where the source was allocated. | ||||
* | | Add a source parameter to warnings.warn() | Victor Stinner | 2016-03-22 | 1 | -5/+6 |
| | | | | | | | | | | | | | | | | Issue #26604: * Add a new optional source parameter to _warnings.warn() and warnings.warn() * Modify asyncore, asyncio and _pyio modules to set the source parameter when logging a ResourceWarning warning | ||||
* | | On ResourceWarning, log traceback where the object was allocated | Victor Stinner | 2016-03-19 | 1 | -29/+62 |
| | | | | | | | | | | | | | | | | | | | | Issue #26567: * Add a new function PyErr_ResourceWarning() function to pass the destroyed object * Add a source attribute to warnings.WarningMessage * Add warnings._showwarnmsg() which uses tracemalloc to get the traceback where source object was allocated. | ||||
* | | Add _showwarnmsg() and _formatwarnmsg() to warnings | Victor Stinner | 2016-03-18 | 1 | -25/+53 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #26568: add new _showwarnmsg() and _formatwarnmsg() functions to the warnings module. The C function warn_explicit() now calls warnings._showwarnmsg() with a warnings.WarningMessage as parameter, instead of calling warnings.showwarning() with multiple parameters. _showwarnmsg() calls warnings.showwarning() if warnings.showwarning() was replaced. Same for _formatwarnmsg(): call warnings.formatwarning() if it was replaced. | ||||
* | | Issue #25923: Added more const qualifiers to signatures of static and ↵ | Serhiy Storchaka | 2015-12-25 | 1 | -1/+1 |
|/ | | | | private functions. | ||||
* | Issue #20440: Massive replacing unsafe attribute setting code with special | Serhiy Storchaka | 2015-12-24 | 1 | -2/+1 |
| | | | | macro Py_SETREF. | ||||
* | Issue #24305: Prevent import subsystem stack frames from being counted | Larry Hastings | 2015-09-06 | 1 | -2/+70 |
| | | | | by the warnings.warn(stacklevel=) parameter. | ||||
* | merge 3.4 (#24096) | Benjamin Peterson | 2015-05-03 | 1 | -10/+27 |
|\ | |||||
| * | merge 3.3 (#24096) | Benjamin Peterson | 2015-05-03 | 1 | -10/+27 |
| |\ | |||||
| | * | be more robust against the filters list changing under us (closes #24096) | Benjamin Peterson | 2015-05-03 | 1 | -6/+16 |
| | | | |||||
* | | | Issue #23731: Implement PEP 488. | Brett Cannon | 2015-04-13 | 1 | -3/+2 |
| | | | | | | | | | | | | | | | | | | The concept of .pyo files no longer exists. Now .pyc files have an optional `opt-` tag which specifies if any extra optimizations beyond the peepholer were applied. | ||||
* | | | Issue #4180: The warnings registries are now reset when the filters are ↵ | Antoine Pitrou | 2014-09-18 | 1 | -6/+35 |
|\ \ \ | |/ / | | | | | | | modified. | ||||
| * | | Issue #4180: The warnings registries are now reset when the filters are ↵ | Antoine Pitrou | 2014-09-18 | 1 | -6/+35 |
| | | | | | | | | | | | | modified. | ||||
* | | | Issue #16382: Improve exception message of warnings.warn() for bad category. | Berker Peksag | 2014-07-11 | 1 | -6/+7 |
|/ / | | | | | | | Initial patch by Phil Elson. | ||||
* | | Issue #19512, #19515: remove shared identifiers, move identifiers where they | Victor Stinner | 2013-11-07 | 1 | -2/+4 |
| | | | | | | | | | | | | | | are used. Move also _Py_IDENTIFIER() defintions to the top in modified files to remove identifiers duplicated in the same file. | ||||
* | | Issue #19512: add some common identifiers to only create common strings once, | Victor Stinner | 2013-11-06 | 1 | -2/+2 |
| | | | | | | | | | | | | | | instead of creating temporary Unicode string objects Add also more identifiers in pythonrun.c to avoid temporary Unicode string objets for the interactive interpreter. | ||||
* | | Close #19442: warn_explicit() does nothing when called late during Python ↵ | Victor Stinner | 2013-10-31 | 1 | -9/+9 |
| | | | | | | | | | | | | shutdown After more tests, I now think that it is the safest option. | ||||
* | | Issue #19437: Fix show_warning() of _warnings, stop at the first error to not | Victor Stinner | 2013-10-31 | 1 | -10/+16 |
| | | | | | | | | call a Python function with an exception set | ||||
* | | Issue #19437: Fix get_filter() from _warnings, don't call PyObject_IsSubclass() | Victor Stinner | 2013-10-31 | 1 | -2/+10 |
| | | | | | | | | with an exception set | ||||
* | | Issue #19442: Fix warnings emitted during Python shutdown | Victor Stinner | 2013-10-29 | 1 | -5/+12 |
| | | | | | | | | | | Warnings may be emitted during Python shutdown, like "unclosed file XXX". During shutdown, globals()['__main__'] may be None. | ||||
* | | Issue #19424: Fix the warnings module to accept filename containing surrogate | Victor Stinner | 2013-10-29 | 1 | -47/+55 |
| | | | | | | | | characters. | ||||
* | | Issue #19421: fix a check in warnings.warn() to be able to use it during Python | Victor Stinner | 2013-10-28 | 1 | -1/+3 |
| | | | | | | | | | | | | | | finalization. sys.argv is set to None during Python finalization: add PyList_Check() to avoid a crash in PyList_Size(). | ||||
* | | Close #11619: The parser and the import machinery do not encode Unicode | Victor Stinner | 2013-08-26 | 1 | -11/+20 |
| | | | | | | | | filenames anymore on Windows. | ||||
* | | Issue #18408: Fix show_warning(), clear also the exception raised by | Victor Stinner | 2013-07-15 | 1 | -3/+3 |
| | | | | | | | | | | | | | | | | _Py_DisplaySourceLine() For example, _PyGC_DumpShutdownStats() calls PyErr_WarnExplicitFormat() while the import machinery does not work anymore, _Py_DisplaySourceLine() fails when trying to import the io module. | ||||
* | | Issue #1545463: At shutdown, defer finalization of codec modules so that ↵ | Antoine Pitrou | 2013-05-08 | 1 | -2/+45 |
|/ | | | | | | stderr remains usable. (should fix Windows buildbot failures on test_gc) | ||||
* | Finally fix all test_capi refleaks | Antoine Pitrou | 2012-01-18 | 1 | -9/+16 |
| | |||||
* | remove some usage of Py_UNICODE_TOUPPER/LOWER | Benjamin Peterson | 2012-01-12 | 1 | -4/+5 |
| | |||||
* | Merge 3.2 | Florent Xicluna | 2011-12-09 | 1 | -1/+0 |
|\ | |||||
| * | Remove obsolete py3k comment. | Florent Xicluna | 2011-12-09 | 1 | -1/+0 |
| | | |||||
* | | Fix misuse of PyUnicode_GET_SIZE() => PyUnicode_GET_LENGTH() | Victor Stinner | 2011-11-21 | 1 | -5/+5 |
| | | | | | | | | And PyUnicode_GetSize() => PyUnicode_GetLength() | ||||
* | | Make _PyUnicode_FromId return borrowed references. | Martin v. Löwis | 2011-11-07 | 1 | -2/+0 |
| | | | | | | | | http://mail.python.org/pipermail/python-dev/2011-November/114347.html | ||||
* | | Port SetAttrString/HasAttrString to SetAttrId/GetAttrId. | Martin v. Löwis | 2011-10-14 | 1 | -17/+15 |
| | | |||||
* | | Rename _Py_identifier to _Py_IDENTIFIER. | Martin v. Löwis | 2011-10-14 | 1 | -2/+2 |
| | | |||||
* | | Use identifier API for PyObject_GetAttrString. | Martin v. Löwis | 2011-10-10 | 1 | -1/+2 |
| | | |||||
* | | Add API for static strings, primarily good for identifiers. | Martin v. Löwis | 2011-10-09 | 1 | -1/+2 |
| | | | | | | | | Thanks to Konrad Schöbel and Jasper Schulz for helping with the mass-editing. | ||||
* | | Fix _warnings.c: make the filename string ready | Victor Stinner | 2011-10-06 | 1 | -3/+10 |
| | | |||||
* | | Implement PEP 393. | Martin v. Löwis | 2011-09-28 | 1 | -7/+9 |
| | | |||||
* | | Make warnings accept a callable for showwarnings instead of | Brett Cannon | 2011-07-18 | 1 | -2/+2 |
|/ | | | | | | | restricting itself to just functions and methods (which allows built-in functions to be used, etc.). Closes issue #10271. Thanks to lekma for the bug report. | ||||
* | start out this branch always with filename NULL | Benjamin Peterson | 2011-07-05 | 1 | -1/+1 |
| | |||||
* | plug refleak | Benjamin Peterson | 2011-07-04 | 1 | -0/+1 |
| | |||||
* | Issue #12467: warnings: fix a race condition if a warning is emitted at | Victor Stinner | 2011-07-04 | 1 | -1/+1 |
| | | | | shutdown, if globals()['__file__'] is None. | ||||
* | #11515: Merge with 3.1. | Ezio Melotti | 2011-03-15 | 1 | -1/+1 |
|\ | |||||
| * | #11515: fix several typos. Patch by Piotr Kasprzyk. | Ezio Melotti | 2011-03-15 | 1 | -1/+1 |
| | | |||||
| * | Merged revisions 82059,82061 via svnmerge from | Victor Stinner | 2010-06-17 | 1 | -2/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r82059 | victor.stinner | 2010-06-18 01:08:50 +0200 (ven., 18 juin 2010) | 5 lines Issue #6543: Write the traceback in the terminal encoding instead of utf-8. Fix the encoding of the modules filename. Reindent also traceback.h, just because I hate tabs :-) ........ r82061 | victor.stinner | 2010-06-18 01:17:37 +0200 (ven., 18 juin 2010) | 2 lines Issue #6543: Mention the author of the patch, Amaury Forgeot d'Arc ........ | ||||
| * | Recorded merge of revisions 81364 via svnmerge from | Victor Stinner | 2010-05-20 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r81364 | victor.stinner | 2010-05-19 22:40:50 +0200 (mer., 19 mai 2010) | 3 lines Issue #8766: Initialize _warnings module before importing the first module. Fix a crash if an empty directory called "encodings" exists in sys.path. ........ |