summaryrefslogtreecommitdiffstats
path: root/Objects/exceptions.c
Commit message (Collapse)AuthorAgeFilesLines
* Issue #27171: Fix typos in documentation, comments, and test function namesMartin Panter2016-06-021-1/+1
|
* Issue #22570: Renamed Py_SETREF to Py_XSETREF.Serhiy Storchaka2016-04-061-16/+16
|
* Issue #20440: More use of Py_SETREF.Serhiy Storchaka2015-12-271-9/+10
| | | | | This patch is manually crafted and contains changes that couldn't be handled automatically.
* Issue #20440: Applied yet one patch for using Py_SETREF.Serhiy Storchaka2015-12-271-32/+20
| | | | The patch is automatically generated, it replaces the code that uses Py_CLEAR.
* Issue #20440: Massive replacing unsafe attribute setting code with specialSerhiy Storchaka2015-12-241-2/+1
| | | | macro Py_SETREF.
* Issue #25523: Merge "a" to "an" fixes from 3.4 into 3.5Martin Panter2015-11-021-1/+1
|\
| * Issue #25523: Correct "a" article to "an" articleMartin Panter2015-11-021-1/+1
| | | | | | | | | | | | This changes the main documentation, doc strings, source code comments, and a couple error messages in the test suite. In some cases the word was removed or edited some other way to fix the grammar.
* | Issue #19235: Add new RecursionError exception. Patch by Georg Brandl.Yury Selivanov2015-07-031-6/+13
| |
* | PEP 0492 -- Coroutines with async and await syntax. Issue #24017.Yury Selivanov2015-05-121-0/+9
| |
* | Issue #22896: Avoid to use PyObject_AsCharBuffer(), PyObject_AsReadBuffer()Serhiy Storchaka2015-02-021-13/+17
|\ \ | |/ | | | | and PyObject_AsWriteBuffer().
| * Issue #22896: Avoid to use PyObject_AsCharBuffer(), PyObject_AsReadBuffer()Serhiy Storchaka2015-02-021-13/+17
| | | | | | | | and PyObject_AsWriteBuffer().
* | Issue #22156: Fix "comparison between signed and unsigned integers" compilerVictor Stinner2014-08-151-1/+1
|/ | | | | | | warnings in the Objects/ subdirectory. PyType_FromSpecWithBases() and PyType_FromSpec() now reject explicitly negative slot identifiers.
* Issue #21669: Special case print & exec syntax errorsNick Coghlan2014-06-161-0/+135
|
* Issue #21118: Fix _PyUnicodeTranslateError_Create(), add missing formatVictor Stinner2014-04-041-1/+1
| | | | character for the "end" parameter
* bail in unicode error's __str__ methods if the objects are not properly ↵Benjamin Peterson2014-04-021-0/+12
| | | | initialized (closes #21134)
* Issue #20517: Removed unnecessary new (short-lived) functions from PyErr.Larry Hastings2014-02-101-2/+2
|
* Issue #20517: Functions in the os module that accept two filenamesLarry Hastings2014-02-101-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 CNick Coghlan2014-01-261-2/+5
|
* Issue #16136: Remove VMS support and VMS-related codeChristian Heimes2013-12-211-6/+0
|
* Also chain codec exceptions that allow weakrefsNick Coghlan2013-11-191-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 soonNick Coghlan2013-11-151-1/+2
|
* Issue #19429, #19437: fix error handling in the OSError constructorVictor Stinner2013-11-141-3/+5
|
* fix refleaksBenjamin Peterson2013-11-141-3/+7
|
* adjust styleBenjamin Peterson2013-11-141-12/+8
|
* Issue #17828: _PyObject_GetDictPtr() may return NULL instead of a PyObject**Christian Heimes2013-11-141-3/+5
| | | | CID 1128792: Dereference null return value (NULL_RETURNS)
* Issue #17828: va_start() must be accompanied by va_end()Christian Heimes2013-11-141-6/+7
| | | | CID 1128793: Missing varargs init or cleanup (VARARGS)
* Close #17828: better handling of codec errorsNick Coghlan2013-11-131-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 Storchaka2013-10-191-4/+4
|
* Issue #15767: back out 8a0ed9f63c6e, finishing the removal ofBrett Cannon2013-07-041-9/+0
| | | | ModuleNotFoundError.
* Issue #15767: Introduce ModuleNotFoundError, a subclass ofBrett Cannon2013-06-121-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 Pitrou2013-03-311-1/+1
| | | | Patch by Roumen Petrov.
* Issue #15784: Modify OSError.__str__() to better distinguish betweenRichard Oudkerk2012-08-281-2/+2
| | | | errno error numbers and Windows error numbers.
* Issue #15778: Coerce ImportError.args to a string when it isn'tBrett Cannon2012-08-241-1/+1
| | | | | | already one. Patch by Dave Malcolm.
* Issue #1692335: Move initial args assignment to BaseException.__new__Richard Oudkerk2012-07-281-1/+10
| | | | to help pickling of naive subclasses.
* Issue #15229: An OSError subclass whose __init__ doesn't call backAntoine Pitrou2012-06-301-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 APINick Coghlan2012-06-171-6/+0
|
* Fix build failure.Antoine Pitrou2012-05-161-1/+2
|
* PEP 415: Implement suppression of __context__ display with an exception ↵Benjamin Peterson2012-05-151-19/+20
| | | | | | attribute This replaces the original PEP 409 implementation. See #14133.
* Fix #13210. Port the Windows build from VS2008 to VS2010.Brian Curtin2012-05-131-0/+28
|
* Issue #2377: Make importlib the implementation of __import__().Brett Cannon2012-04-141-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 Cannon2012-04-131-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 409Nick Coghlan2012-02-261-11/+18
|
* use new generic __dict__ descriptor implementationsBenjamin Peterson2012-02-201-31/+1
|
* merge 3.2Benjamin Peterson2012-02-101-1/+1
|\
| * this is only a borrowed ref in Brett's branchBenjamin Peterson2012-02-101-1/+1
| |
* | merge 3.2Benjamin Peterson2012-02-061-1/+0
|\ \ | |/
| * bltinmod is borrowed, so it shouldn't be decrefedBenjamin Peterson2012-02-061-1/+0
| |
* | merge 3.2Benjamin Peterson2012-02-041-5/+10
|\ \ | |/
| * put returns on their own linesBenjamin Peterson2012-02-041-5/+10
| |
* | Fix some of the remaining test_capi leaksAntoine Pitrou2012-01-181-3/+5
| |