Benjamin Peterson
305e5aac85
don't scale compiler stack frames if the recursion limit is huge (closes #19098)
2013-09-26 22:17:45 -04:00
Meador Inge
c9e1dcdd53
Issue #16826: Revert fix while Windows issues are being worked out.
2013-09-03 19:43:49 -05:00
Meador Inge
d151da9ef7
Issue #16826: Don't check for PYTHONCASEOK when using -E.
...
This commit fixes a regression that sneaked into Python 3.3 where importlib
was not respecting -E when checking for the PYTHONCASEOK environment variable.
2013-09-03 16:37:26 -05:00
Serhiy Storchaka
9594942716
Issue #18783: Removed existing mentions of Python long type in docstrings,
...
error messages and comments.
2013-08-27 19:40:23 +03:00
Ezio Melotti
4af4d273bd
#18839: document that sys.exit() will not accept a non-integer numeric value as exit status.
2013-08-26 14:00:39 +03:00
Antoine Pitrou
ec34ab5010
Issue #18756: Improve error reporting in os.urandom() when the failure is due to something else than /dev/urandom not existing.
2013-08-16 20:44:38 +02:00
Victor Stinner
da2cbb4fc8
Issue #15893: Remove dead code
2013-07-27 02:41:03 +02:00
Victor Stinner
36577e4e8c
Issue #15893: frozenmain.c now handles PyMem_Malloc() failure
2013-07-27 01:04:56 +02:00
Christian Heimes
70c94e7896
Issue #18552: Check return value of PyArena_AddPyObject() in obj2ast_object().
2013-07-27 00:33:13 +02:00
Victor Stinner
1acc129d48
Parser/asdl_c.py: use Py_CLEAR()
2013-07-27 00:03:47 +02:00
Victor Stinner
ce72e1ce6c
According to the PEP 7, C code must "use 4-space indents"
...
Replace 8 spaces with 4.
2013-07-27 00:00:36 +02:00
Christian Heimes
704e2d374f
Issue #18560: Fix potential NULL pointer dereference in sum()
2013-07-26 22:49:26 +02:00
Christian Heimes
72f562f719
Fix potential NULL pointer dereferencing in ast module
...
CID 719690
2013-07-24 21:02:17 +02:00
Benjamin Peterson
7d28b6b379
return NULL here
2013-07-22 22:08:09 -07:00
Christian Heimes
60a6067709
Issue #15905: Fix theoretical buffer overflow in handling of sys.argv[0],
...
prefix and exec_prefix if the operation system does not obey MAXPATHLEN.
2013-07-22 12:53:32 +02:00
Benjamin Peterson
0f9b7d32c7
fix spacing
2013-07-21 13:29:37 -07:00
Benjamin Peterson
04b01dc8f7
let's not return NULL from functions that should return ints
2013-07-21 13:26:13 -07:00
Christian Heimes
1f34729f42
Check return value of lseek() in _Py_DisplaySourceLine().
...
Also use portable SEEK_SET instead of 0.
CID 1040639
2013-07-21 02:12:35 +02:00
Christian Heimes
8c077bc03e
Check return value of PyObject_AsFileDescriptor() in _Py_DisplaySourceLine() for error
...
CID 486768
2013-07-21 01:53:10 +02:00
Christian Heimes
27c4c3ec79
Check return value of fstat() in _PyImport_GetDynLoadFunc()
...
CID 486250
2013-07-20 22:17:55 +02:00
Christian Heimes
09ca794afe
Add missing check of PyDict_SetItem()'s return value in _PyImport_FindExtensionObject()
...
CID 486649
2013-07-20 14:51:53 +02:00
Christian Heimes
0bd447f847
Add missing check of PyDict_SetItem()'s return value in PyEval_EvalCodeEx()
...
CID 486647
2013-07-20 14:48:10 +02:00
Serhiy Storchaka
3641a74e1c
Issue #17872: Fix a segfault in marshal.load() when input stream returns
...
more bytes than requested.
2013-07-11 22:20:47 +03:00
Serhiy Storchaka
dfde2151ed
Fix reference leaks introduced by the patch for issue #5308.
2013-07-11 19:14:26 +03:00
Christian Heimes
7ce57d67c9
Issue #18426: improve exception message. Courtesy of Amaury
2013-07-11 13:02:30 +02:00
Christian Heimes
848ee099f5
Issue #18426: Fix NULL pointer dereference in C extension import when
...
PyModule_GetDef() returns an error.
2013-07-11 11:22:21 +02:00
R David Murray
87ead1138d
#18424: PEP8ify the tense of the sum docstring.
2013-07-10 16:22:14 -04:00
Brett Cannon
a53cca3fea
Issue #18351: Fix various issues with
...
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.
2013-07-06 17:56:43 -04:00
Christian Heimes
b9dbc7d6e1
Issue #18328: Reorder ops in PyThreadState_Delete*() functions. Now the
...
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.
2013-07-01 23:42:28 +02:00
Victor Stinner
2f084ecfe7
Issue #18137: Detect integer overflow on precision in float.__format__() and
...
complex.__format__().
2013-06-23 14:54:30 +02:00
Antoine Pitrou
9a00e0a41c
Issue #18256: Compilation fix for recent AIX releases. Patch by David Edelsohn.
2013-06-18 22:17:48 +02:00
Brett Cannon
1d75382e81
Fix a misnaming of a method and an argument
2013-06-16 19:06:55 -04:00
Richard Oudkerk
409f90237c
Issue #18180: Fix ref leak in _PyImport_GetDynLoadWindows().
2013-06-10 15:38:54 +01:00
Benjamin Peterson
e2135c6158
move definition to top of block
2013-05-16 19:38:22 -05:00
Benjamin Peterson
1e93b06007
complain about "global __class__" in a class body (closes #17983)
2013-05-15 16:17:25 -05:00
Benjamin Peterson
e1b4cbc422
when arguments are cells clear the locals slot (backport of #17927)
2013-05-14 22:31:26 -05:00
Antoine Pitrou
fd417cc54b
Fix crash caused by 8c1385205a35
...
(thanks Arfrever for reporting).
2013-05-05 08:12:42 +02:00
Antoine Pitrou
957a23b088
Issue #17408: Avoid using an obsolete instance of the copyreg module when the interpreter is shutdown and then started again.
2013-05-04 20:45:02 +02:00
Benjamin Peterson
fe1b22af0a
ignore errors when trying to fetch sys.stdin.encoding (closes #17863)
2013-04-29 10:23:08 -04:00
Benjamin Peterson
7d110042c5
raise an ImportError (rather than fatal) when __import__ is not found in __builtins__ (closes #17867)
2013-04-29 09:08:14 -04:00
R David Murray
3583761bcd
#17413: make sure settrace funcs get passed exception instances for 'value'.
...
Patch by Ingrid Cheung and Brendan McLoughlin.
2013-04-19 12:56:57 -04:00
Ezio Melotti
1b6424fc4b
Fix indentation.
2013-04-19 07:10:09 +03:00
Serhiy Storchaka
278d03bd66
Revert a premature patch for issue #14010 (changeset aaaf36026511).
2013-04-06 22:52:34 +03:00
Antoine Pitrou
55bff89190
Issue #17645: convert an assert() into a proper exception in _Py_Mangle().
2013-04-06 21:21:04 +02:00
Serhiy Storchaka
e8f706eda7
Issue #14010: Fix a crash when iterating or deleting deeply nested filters
...
(builting and in itertools module, i.e. map(), itertools.chain(), etc).
2013-04-06 21:14:43 +03:00
Richard Oudkerk
614c578dec
Issue #17619: Make input() check for Ctrl-C correctly on Windows.
2013-04-03 13:44:50 +01:00
Brett Cannon
f8ffec0617
Issue #17357: Add missing verbosity messages when running under
...
-v/-vv that were lost in the transition to importlib.
2013-04-01 13:10:51 -04:00
Gregory P. Smith
b803c6c4b8
Fixes issue4653 - Correctly specify the buffer size to FormatMessageW and
...
correctly check for errors on two CreateFileMapping calls.
2013-03-23 16:05:36 -07:00
Kristján Valur Jónsson
dc32d18d11
Issue #15038 : Fixing the condition broadcast and docs.
2013-03-19 20:18:37 -07:00
Ezio Melotti
795c10b3b6
Rebuild importlib.h after the changes introduced in 0f65bf6063ca.
2013-02-20 21:42:46 +02:00