Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue #20517: Removed unnecessary new (short-lived) functions from PyErr. | Larry Hastings | 2014-02-10 | 1 | -2/+2 |
| | |||||
* | Issue #20517: Functions in the os module that accept two filenames | Larry Hastings | 2014-02-10 | 1 | -33/+86 |
| | | | | | | now register both filenames in the exception on failure. This required adding new C API functions allowing OSError exceptions to reference two filenames instead of one. | ||||
* | Close #20105: set __traceback__ when chaining exceptions in C | Nick Coghlan | 2014-01-26 | 1 | -2/+5 |
| | |||||
* | Issue #16136: Remove VMS support and VMS-related code | Christian Heimes | 2013-12-21 | 1 | -6/+0 |
| | |||||
* | Also chain codec exceptions that allow weakrefs | Nick Coghlan | 2013-11-19 | 1 | -3/+14 |
| | | | | | | | The zlib and hex codecs throw custom exception types with weakref support if the input type is valid, but the data fails validation. Make sure the exception chaining in the codec infrastructure can wrap those as well. | ||||
* | Don't decref exc too soon | Nick Coghlan | 2013-11-15 | 1 | -1/+2 |
| | |||||
* | Issue #19429, #19437: fix error handling in the OSError constructor | Victor Stinner | 2013-11-14 | 1 | -3/+5 |
| | |||||
* | fix refleaks | Benjamin Peterson | 2013-11-14 | 1 | -3/+7 |
| | |||||
* | adjust style | Benjamin Peterson | 2013-11-14 | 1 | -12/+8 |
| | |||||
* | Issue #17828: _PyObject_GetDictPtr() may return NULL instead of a PyObject** | Christian Heimes | 2013-11-14 | 1 | -3/+5 |
| | | | | CID 1128792: Dereference null return value (NULL_RETURNS) | ||||
* | Issue #17828: va_start() must be accompanied by va_end() | Christian Heimes | 2013-11-14 | 1 | -6/+7 |
| | | | | CID 1128793: Missing varargs init or cleanup (VARARGS) | ||||
* | Close #17828: better handling of codec errors | Nick Coghlan | 2013-11-13 | 1 | -0/+113 |
| | | | | | | | | - output type errors now redirect users to the type-neutral convenience functions in the codecs module - stateless errors that occur during encoding and decoding will now be automatically wrapped in exceptions that give the name of the codec involved | ||||
* | Issue #1772673: The type of `char*` arguments now changed to `const char*`. | Serhiy Storchaka | 2013-10-19 | 1 | -4/+4 |
| | |||||
* | Issue #15767: back out 8a0ed9f63c6e, finishing the removal of | Brett Cannon | 2013-07-04 | 1 | -9/+0 |
| | | | | ModuleNotFoundError. | ||||
* | Issue #15767: Introduce ModuleNotFoundError, a subclass of | Brett Cannon | 2013-06-12 | 1 | -0/+9 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | ImportError. The exception is raised by import when a module could not be found. Technically this is defined as no viable loader could be found for the specified module. This includes ``from ... import`` statements so that the module usage is consistent for all situations where import couldn't find what was requested. This should allow for the common idiom of:: try: import something except ImportError: pass to be updated to using ModuleNotFoundError and not accidentally mask ImportError messages that should propagate (e.g. issues with a loader). This work was driven by the fact that the ``from ... import`` statement needed to be able to tell the difference between an ImportError that simply couldn't find a module (and thus silence the exception so that ceval can raise it) and an ImportError that represented an actual problem. | ||||
* | Issue #17591: Use lowercase filenames when including Windows header files. | Antoine Pitrou | 2013-03-31 | 1 | -1/+1 |
| | | | | Patch by Roumen Petrov. | ||||
* | Issue #15784: Modify OSError.__str__() to better distinguish between | Richard Oudkerk | 2012-08-28 | 1 | -2/+2 |
| | | | | errno error numbers and Windows error numbers. | ||||
* | Issue #15778: Coerce ImportError.args to a string when it isn't | Brett Cannon | 2012-08-24 | 1 | -1/+1 |
| | | | | | | already one. Patch by Dave Malcolm. | ||||
* | Issue #1692335: Move initial args assignment to BaseException.__new__ | Richard Oudkerk | 2012-07-28 | 1 | -1/+10 |
| | | | | to help pickling of naive subclasses. | ||||
* | Issue #15229: An OSError subclass whose __init__ doesn't call back | Antoine Pitrou | 2012-06-30 | 1 | -0/+6 |
| | | | | | OSError.__init__ could produce incomplete instances, leading to crashes when calling str() on them. | ||||
* | Issue #13783: the PEP 380 implementation no longer expands the public C API | Nick Coghlan | 2012-06-17 | 1 | -6/+0 |
| | |||||
* | Fix build failure. | Antoine Pitrou | 2012-05-16 | 1 | -1/+2 |
| | |||||
* | PEP 415: Implement suppression of __context__ display with an exception ↵ | Benjamin Peterson | 2012-05-15 | 1 | -19/+20 |
| | | | | | | attribute This replaces the original PEP 409 implementation. See #14133. | ||||
* | Fix #13210. Port the Windows build from VS2008 to VS2010. | Brian Curtin | 2012-05-13 | 1 | -0/+28 |
| | |||||
* | Issue #2377: Make importlib the implementation of __import__(). | Brett Cannon | 2012-04-14 | 1 | -6/+2 |
| | | | | | | | importlib._bootstrap is now frozen into Python/importlib.h and stored as _frozen_importlib in sys.modules. Py_Initialize() loads the frozen code along with sys and imp and then uses _frozen_importlib._install() to set builtins.__import__() w/ _frozen_importlib.__import__(). | ||||
* | Issue #1559549: Add 'name' and 'path' attributes to ImportError. | Brett Cannon | 2012-04-13 | 1 | -2/+97 |
| | | | | | | | | Currently import does not use these attributes as they are planned for use by importlib (which will be another commit). Thanks to Filip Gruszczyński for the initial patch and Brian Curtin for refining it. | ||||
* | Close issue #6210: Implement PEP 409 | Nick Coghlan | 2012-02-26 | 1 | -11/+18 |
| | |||||
* | use new generic __dict__ descriptor implementations | Benjamin Peterson | 2012-02-20 | 1 | -31/+1 |
| | |||||
* | merge 3.2 | Benjamin Peterson | 2012-02-10 | 1 | -1/+1 |
|\ | |||||
| * | this is only a borrowed ref in Brett's branch | Benjamin Peterson | 2012-02-10 | 1 | -1/+1 |
| | | |||||
* | | merge 3.2 | Benjamin Peterson | 2012-02-06 | 1 | -1/+0 |
|\ \ | |/ | |||||
| * | bltinmod is borrowed, so it shouldn't be decrefed | Benjamin Peterson | 2012-02-06 | 1 | -1/+0 |
| | | |||||
* | | merge 3.2 | Benjamin Peterson | 2012-02-04 | 1 | -5/+10 |
|\ \ | |/ | |||||
| * | put returns on their own lines | Benjamin Peterson | 2012-02-04 | 1 | -5/+10 |
| | | |||||
* | | Fix some of the remaining test_capi leaks | Antoine Pitrou | 2012-01-18 | 1 | -3/+5 |
| | | |||||
* | | Fix some of the remaining test_capi refleaks | Antoine Pitrou | 2012-01-18 | 1 | -0/+2 |
| | | |||||
* | | Fix some of the refleaks in test_capi (ported from 3.2) | Antoine Pitrou | 2012-01-18 | 1 | -3/+7 |
|\ \ | |/ | |||||
| * | Fix refleaks in test_capi | Antoine Pitrou | 2012-01-18 | 1 | -3/+7 |
| | | | | | | | | (this was easier than I thought!) | ||||
* | | Merge refleak fixes from 3.2 | Antoine Pitrou | 2012-01-18 | 1 | -21/+23 |
|\ \ | |/ | |||||
| * | Fix leaking a RuntimeError objects when creating sub-interpreters | Antoine Pitrou | 2012-01-18 | 1 | -21/+23 |
| | | |||||
* | | Implement PEP 380 - 'yield from' (closes #11682) | Nick Coghlan | 2012-01-13 | 1 | -2/+64 |
| | | |||||
* | | Fix OSError.__init__ and OSError.__new__ so that each of them can be | Antoine Pitrou | 2011-12-15 | 1 | -57/+159 |
| | | | | | | | | overriden and take additional arguments (followup to issue #12555). | ||||
* | | Fix misuse of PyUnicode_GET_SIZE() => PyUnicode_GET_LENGTH() | Victor Stinner | 2011-11-21 | 1 | -2/+2 |
| | | | | | | | | And PyUnicode_GetSize() => PyUnicode_GetLength() | ||||
* | | UnicodeTranslateError uses the new Unicode API | Victor Stinner | 2011-11-21 | 1 | -3/+3 |
| | | | | | | | | The index is a character index, not a index in a Py_UNICODE* string. | ||||
* | | UnicodeEncodeError uses the new Unicode API | Victor Stinner | 2011-11-20 | 1 | -3/+3 |
| | | | | | | | | The index is a character index, not a index in a Py_UNICODE* string. | ||||
* | | Port error handlers from Py_UNICODE indexing to code point indexing. | Martin v. Löwis | 2011-11-04 | 1 | -0/+5 |
| | | |||||
* | | PEP 3151 / issue #12555: reworking the OS and IO exception hierarchy. | Antoine Pitrou | 2011-10-12 | 1 | -184/+349 |
| | | |||||
* | | Fix my_basename(): make the string ready | Victor Stinner | 2011-10-05 | 1 | -2/+7 |
| | | |||||
* | | Implement PEP 393. | Martin v. Löwis | 2011-09-28 | 1 | -10/+16 |
| | | |||||
* | | SystemExit_init(): avoid an useless test | Victor Stinner | 2011-05-26 | 1 | -1/+1 |
|/ | | | | Make silent a false positive of the Clang Static Analyzer. |