122 Commits (4fa7a5fc987a1e40184089e6724de027c5ac273c)

Author SHA1 Message Date
Amaury Forgeot d'Arc 4bf21e28df Issue #13546: Fixed an overflow issue that could crash the intepreter when 14 years ago
Antoine Pitrou c7c96a90bc Recorded merge of revisions 81029 via svnmerge from 16 years ago
Antoine Pitrou c83ea137d7 Untabify C files. Will watch buildbots. 16 years ago
Georg Brandl 740cdc3a9f #7033: add new API function PyErr_NewExceptionWithDoc, for easily giving new exceptions a docstring. 16 years ago
Alexandre Vassalotti a6e3474d02 Add const qualifier to PyErr_SetFromErrnoWithFilename and to 17 years ago
Hirokazu Yamamoto b24bb27d22 Issue #3527: Removed Py_WIN_WIDE_FILENAMES which is not used any more. 17 years ago
Georg Brandl e9b912164b Merged revisions 71058,71149-71150,71212,71214-71216,71222,71225,71234,71237-71238,71240-71241,71243,71249,71251 via svnmerge from 17 years ago
Georg Brandl d3f03fa715 PyErr_NormalizeException may not set an error, so convert the PyErr_SetObject 17 years ago
Georg Brandl 4b5c53aba5 In PyErr_GivenExceptionMatches, temporarily bump the recursion 17 years ago
Antoine Pitrou 0668c62677 Issue #2534: speed up isinstance() and issubclass() by 50-70%, so as to 18 years ago
Amaury Forgeot d'Arc 246daedd11 #2542: now that issubclass() may call arbitrary code, 18 years ago
Gregory P. Smith dd96db63f6 This reverts r63675 based on the discussion in this thread: 18 years ago
Christian Heimes 593daf545b Renamed PyString to PyBytes 18 years ago
Brett Cannon e974689038 Re-implement the 'warnings' module in C. This allows for usage of the 18 years ago
Christian Heimes 000a074c95 Modified PyImport_Import and PyImport_ImportModule to always use absolute imports by calling __import__ with an explicit level of 0 18 years ago
Brett Cannon 1e534b5425 Fix a crasher where Python code managed to infinitely recurse in C code without 19 years ago
Neal Norwitz f83b751f4b SF #1669182, 2.5 was already fixed. Just assert in 2.6 since string exceptions 19 years ago
Neal Norwitz 036b3beca8 Fix SF bug #1669182. Handle string exceptions even if unraisable (ie in __del__). 19 years ago
Neal Norwitz 88516a6039 When printing an unraisable error, don't print exceptions. before the name. 19 years ago
Neal Norwitz 7770f9f6d2 Backport: 19 years ago
Neal Norwitz 72cd02c041 Prevent crash on shutdown which can occur if we are finalizing 19 years ago
Armin Rigo 7ccbca93a2 Forward-port of r52136,52138: a review of overflow-detecting code. 20 years ago
Armin Rigo 4b63c21d6f Forward-port of r52136: a review of overflow-detecting code. 20 years ago
Thomas Heller 74d36f0d95 On Windows, make PyErr_Warn an exported function again. 20 years ago
Neal Norwitz 07aadb14f3 Add PyErr_WarnEx() so C code can pass the stacklevel to warnings.warn(). 20 years ago
Georg Brandl a1121fa935 Fix #1494605. 20 years ago
Tim Peters 5e9d6cfbda PyErr_Display(), PyErr_WriteUnraisable(): Coverity found a cut-and-paste 20 years ago
Richard Jones 7b9558d37d Conversion of exceptions over from faked-up classes to new-style C types. 20 years ago
Walter Dörwald c611f17418 Replace tab inside comment with space. 20 years ago
Georg Brandl 658d513328 PyErr_NewException now accepts a tuple of base classes as its 20 years ago
Neal Norwitz 1a26920506 moduleName can be NULL 20 years ago
Thomas Wouters b8f81d4863 Add missing DECREF to PyErr_WriteUnraisable(). That function reports 20 years ago
Anthony Baxter ac6bd46d5c spread the extern "C" { } magic pixie dust around. Python itself builds now 20 years ago
Brett Cannon bf36409e2a PEP 352 implementation. Creates a new base class, BaseException, which has an 20 years ago
Guido van Rossum 1a5e21e033 Updates to the with-statement: 20 years ago
Tim Peters a7444f47b2 PyErr_ProgramText(): Grrrrrr. 20 years ago
Martin v. Löwis d96ee90993 Use Py_ssize_t to count the 20 years ago
Michael W. Hudson 969f485cba -X died some time ago; remove a tiny bit of associated cruft. 21 years ago
Nicholas Bastin e5662aedef Changed random calls to PyThreadState_Get() to use the macro 22 years ago
Jack Jansen eddc1449ba Getting rid of all the code inside #ifdef macintosh too. 22 years ago
Armin Rigo 092381a979 Made function declaration a proper C prototype 23 years ago
Raymond Hettinger 8ae4689657 Simplify and speedup uses of Py_BuildValue(): 23 years ago
Mark Hammond edd07737d7 Fix [ 771097 ] frozen programs fail due to implicit import of "warnings". 23 years ago
Guido van Rossum 6b3fffaf99 PyErr_NormalizeException(): in the type==NULL test, we should simply 23 years ago
Mark Hammond a43fd0c899 Fix bug 683658 - PyErr_Warn may cause import deadlock. 23 years ago
Martin v. Löwis 95292d6caa Constify filenames and scripts. Fixes #651362. 23 years ago
Mark Hammond 3d61a06aa2 Fix [ 616716 ] Bug in PyErr_SetExcFromWindows 24 years ago
Mark Hammond da7efaa681 Fix errors to pep277 checkin identified by Neal Norwitz. 24 years ago
Mark Hammond c2e85bd4e2 Patch 594001: PEP 277 - Unicode file name support for Windows NT. 24 years ago
Thomas Heller 085358a3e2 New functions for extension writers on Windows: 24 years ago