Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | | | Fix reference leaks introduced by the patch for issue #5308. | Serhiy Storchaka | 2013-07-11 | 1 | -12/+11 | |
|\ \ \ | |/ / | ||||||
| * | | Fix reference leaks introduced by the patch for issue #5308. | Serhiy Storchaka | 2013-07-11 | 1 | -12/+11 | |
| | | | ||||||
* | | | Issue #18426: improve exception message. Courtesy of Amaury | Christian Heimes | 2013-07-11 | 1 | -1/+5 | |
|\ \ \ | |/ / | ||||||
| * | | Issue #18426: improve exception message. Courtesy of Amaury | Christian Heimes | 2013-07-11 | 1 | -1/+5 | |
| | | | ||||||
* | | | Issue #18426: Fix NULL pointer dereference in C extension import when | Christian Heimes | 2013-07-11 | 1 | -0/+2 | |
|\ \ \ | |/ / | | | | | | | PyModule_GetDef() returns an error. | |||||
| * | | Issue #18426: Fix NULL pointer dereference in C extension import when | Christian Heimes | 2013-07-11 | 1 | -0/+2 | |
| | | | | | | | | | | | | PyModule_GetDef() returns an error. | |||||
* | | | Merge: #18424: PEP8ify the tense of the sum docstring. | R David Murray | 2013-07-10 | 1 | -2/+2 | |
|\ \ \ | |/ / | ||||||
| * | | #18424: PEP8ify the tense of the sum docstring. | R David Murray | 2013-07-10 | 1 | -2/+2 | |
| | | | ||||||
* | | | Issue #18408: Fix call_exc_trace(): if the traceback is NULL, use None when | Victor Stinner | 2013-07-10 | 1 | -3/+8 | |
| | | | | | | | | | | | | | | | | | | building the tuple (type, value, traceback) passed to the callback. PyTuple_Pack() does crash if an argument is NULL. | |||||
* | | | Issue #18408: Fix PyCode_Optimize(): raise a MemoryError on memory allocation | Victor Stinner | 2013-07-08 | 1 | -2/+6 | |
| | | | | | | | | | | | | failure. | |||||
* | | | Issue #18408: Fix call_function() of ceval.c to handle PyTuple_New() failure | Victor Stinner | 2013-07-08 | 1 | -4/+9 | |
| | | | | | | | | | | | | (in load_args()), ex: MemoryError. | |||||
* | | | Issue #18408: Fix marshal reader for Unicode strings: handle | Victor Stinner | 2013-07-08 | 1 | -0/+4 | |
| | | | | | | | | | | | | PyUnicode_DecodeUTF8() failure (ex: MemoryError). | |||||
* | | | Issue #18203: Add _PyMem_RawStrdup() and _PyMem_Strdup() | Victor Stinner | 2013-07-07 | 1 | -9/+12 | |
| | | | | | | | | | | | | | | | Replace strdup() with _PyMem_RawStrdup() or _PyMem_Strdup(), depending if the GIL is held or not. | |||||
* | | | Issue #18203: Replace malloc() with PyMem_Malloc() to allocate arena objects | Victor Stinner | 2013-07-07 | 1 | -6/+6 | |
| | | | ||||||
* | | | Issue #18203: Replace malloc() with PyMem_RawMalloc() to allocate thread locks | Victor Stinner | 2013-07-07 | 2 | -10/+10 | |
| | | | ||||||
* | | | Issue #18203: Fix decode_ascii_surrogateescape(), use PyMem_RawMalloc() as ↵ | Victor Stinner | 2013-07-07 | 1 | -1/+1 | |
| | | | | | | | | | | | | _Py_char2wchar() | |||||
* | | | Issue #18203: Replace malloc() with PyMem_RawMalloc() at Python initialization | Victor Stinner | 2013-07-07 | 3 | -25/+25 | |
| | | | | | | | | | | | | | | | | | | | | | * Replace malloc() with PyMem_RawMalloc() * Replace PyMem_Malloc() with PyMem_RawMalloc() where the GIL is not held. * _Py_char2wchar() now returns a buffer allocated by PyMem_RawMalloc(), instead of PyMem_Malloc() | |||||
* | | | Issue #18203: Fix Py_Finalize(): destroy the GIL after the last call to | Victor Stinner | 2013-07-07 | 1 | -9/+9 | |
| | | | | | | | | | | | | | | | | | | | | | PyMem_Malloc() or PyObject_Malloc(). For example, PyCFunction_Fini() calls PyObject_GC_Del() which calls PyObject_FREE(). | |||||
* | | | merge for issue #18351. | Brett Cannon | 2013-07-06 | 1 | -801/+799 | |
|\ \ \ | |/ / | ||||||
| * | | Issue #18351: Fix various issues with | Brett Cannon | 2013-07-06 | 1 | -3369/+3367 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | importlib._bootstrap._get_sourcefile(). Thanks to its only use by the C API, it was never properly tested until now. Thanks to Neal Norwitz for discovering the bug and Madison May for the patch. | |||||
* | | | Issue #18364: Stop using the ImportError._not_found hack. | Brett Cannon | 2013-07-06 | 1 | -3547/+3547 | |
| | | | | | | | | | | | | | | | | | | The private attribute was leaking out of importlib and led to at least one person noticing it. Switch to another hack which won't leak outside of importlib and is nearly as robust. | |||||
* | | | Issue #15767: back out 8a0ed9f63c6e, finishing the removal of | Brett Cannon | 2013-07-04 | 2 | -371/+375 | |
| | | | | | | | | | | | | ModuleNotFoundError. | |||||
* | | | Issue #15767: Revert 3a50025f1900 for ModuleNotFoundError | Brett Cannon | 2013-07-04 | 3 | -818/+797 | |
| | | | ||||||
* | | | Issue #18328: Reorder ops in PyThreadState_Delete*() functions. Now the | Christian Heimes | 2013-07-01 | 1 | -2/+2 | |
|\ \ \ | |/ / | | | | | | | | | | | | | tstate is first removed from TLS and then deallocated. CID 1019639 (#1 of 1): Use after free (USE_AFTER_FREE) use_after_free: Using freed pointer tstate. | |||||
| * | | Issue #18328: Reorder ops in PyThreadState_Delete*() functions. Now the | Christian Heimes | 2013-07-01 | 1 | -2/+2 | |
| | | | | | | | | | | | | | | | | | | tstate is first removed from TLS and then deallocated. CID 1019639 (#1 of 1): Use after free (USE_AFTER_FREE) use_after_free: Using freed pointer tstate. | |||||
* | | | Issue 18111: Add a default argument to min() and max() | Raymond Hettinger | 2013-06-25 | 1 | -14/+26 | |
| | | | ||||||
* | | | If MS_WIN64 is defined, MS_WINDOWS is also defined: #ifdef can be simplified. | Victor Stinner | 2013-06-24 | 1 | -2/+2 | |
| | | | ||||||
* | | | Issue #9566: pystrtod.c: Fix a compiler warnings on Windows x64 | Victor Stinner | 2013-06-24 | 1 | -2/+2 | |
| | | | ||||||
* | | | Issue #9566: Fix a compiler warning on Windows x64 | Victor Stinner | 2013-06-24 | 1 | -4/+2 | |
| | | | ||||||
* | | | import.c does neither need mode_t nor _mkdir() anymore | Christian Heimes | 2013-06-23 | 1 | -8/+0 | |
| | | | ||||||
* | | | (Merge 3.3) Issue #18137: Detect integer overflow on precision in | Victor Stinner | 2013-06-23 | 1 | -2/+14 | |
|\ \ \ | |/ / | | | | | | | float.__format__() and complex.__format__(). | |||||
| * | | Issue #18137: Detect integer overflow on precision in float.__format__() and | Victor Stinner | 2013-06-23 | 1 | -2/+14 | |
| | | | | | | | | | | | | complex.__format__(). | |||||
* | | | marshal: optimize parsing of empty Unicode strings | Victor Stinner | 2013-06-21 | 1 | -12/+17 | |
| | | | | | | | | | | | | | | | Don't create a temporary buffer of zeroy byte nor call r_string() if the length is zero, create directly the empty string. | |||||
* | | | #13226: update references from ctypes/DLFCN modules to os module | Andrew Kuchling | 2013-06-21 | 1 | -2/+2 | |
| | | | ||||||
* | | | Issue #18256: Compilation fix for recent AIX releases. Patch by David Edelsohn. | Antoine Pitrou | 2013-06-18 | 1 | -0/+3 | |
|\ \ \ | |/ / | ||||||
| * | | Issue #18256: Compilation fix for recent AIX releases. Patch by David Edelsohn. | Antoine Pitrou | 2013-06-18 | 1 | -0/+3 | |
| | | | ||||||
| * | | Fix a misnaming of a method and an argument | Brett Cannon | 2013-06-16 | 1 | -1071/+1071 | |
| | | | ||||||
* | | | Issue #18076: Introduce imoportlib.util.decode_source(). | Brett Cannon | 2013-06-16 | 1 | -3549/+3566 | |
| | | | | | | | | | | | | | | | | | | | | | The helper function makes it easier to implement imoprtlib.abc.InspectLoader.get_source() by making that function require just the raw bytes for source code and handling all other details. | |||||
* | | | importlib.abc.SourceLoader.get_source() was re-raising SyntaxError and | Brett Cannon | 2013-06-16 | 1 | -1719/+1703 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | UnicodeDecodeError as ImportError. That was over-reaching the point of raising ImportError in get_source() (which is to signal the source code was not found when it should have). Conflating the two exceptions with ImportError could lead to masking errors with the source which should be known outside of whether there was an error simply getting the source to begin with. | |||||
* | | | Issue #18115: Abstract out managing the cleanup of modules to use in | Brett Cannon | 2013-06-16 | 1 | -2437/+2468 | |
| | | | | | | | | | | | | loaders where C code provides the loaded module. | |||||
* | | | Issues #18058, 18057: Make importlib._bootstrap.NamespaceLoader | Brett Cannon | 2013-06-16 | 1 | -1072/+1113 | |
| | | | | | | | | | | | | | | | conform the the InspectLoader ABC. Perk of this is that runpy/-m can now work with namespace packages. | |||||
* | | | Issue #17907: touch up the code for imp.new_module(). | Brett Cannon | 2013-06-15 | 1 | -3532/+3519 | |
| | | | ||||||
* | | | Issue #18192: Introduce importlib.util.MAGIC_NUMBER and document the | Brett Cannon | 2013-06-14 | 1 | -2/+2 | |
| | | | | | | | | | | | | deprecation of imp.get_magic(). | |||||
* | | | Issue #15767: Touch up ModuleNotFoundError usage by import. | Brett Cannon | 2013-06-13 | 3 | -6/+26 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Forgot to raise ModuleNotFoundError when None is found in sys.modules. This led to introducing the C function PyErr_SetImportErrorSubclass() to make setting ModuleNotFoundError easier. Also updated the reference docs to mention ModuleNotFoundError appropriately. Updated the docs for ModuleNotFoundError to mention the None in sys.modules case. Lastly, it was noticed that PyErr_SetImportError() was not setting an exception when returning None in one case. That issue is now fixed. | |||||
* | | | Issue #15767: Introduce ModuleNotFoundError, a subclass of | Brett Cannon | 2013-06-12 | 2 | -371/+368 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. | |||||
* | | | Merge. | Richard Oudkerk | 2013-06-10 | 1 | -2/+3 | |
|\ \ \ | |/ / | ||||||
| * | | Issue #18180: Fix ref leak in _PyImport_GetDynLoadWindows(). | Richard Oudkerk | 2013-06-10 | 1 | -2/+3 | |
| | | | ||||||
| * | | move definition to top of block | Benjamin Peterson | 2013-05-17 | 1 | -1/+2 | |
| | | | ||||||
| * | | complain about "global __class__" in a class body (closes #17983) | Benjamin Peterson | 2013-05-15 | 1 | -0/+6 | |
| | | | ||||||
| * | | when arguments are cells clear the locals slot (backport of #17927) | Benjamin Peterson | 2013-05-15 | 1 | -2/+6 | |
| | | |