summaryrefslogtreecommitdiffstats
path: root/Python
Commit message (Collapse)AuthorAgeFilesLines
* fileutils.c: use MAXPATHLEN instead of PATH_MAXVictor Stinner2013-11-151-6/+6
| | | | PATH_MAX is not declared on IRIX nor Windows.
* sysmodule.c: fix sys_update_path(), use Py_ARRAY_LENGTH() to get the size ofVictor Stinner2013-11-151-1/+1
| | | | | the fullpath buffer, not PATH_MAX. fullpath is declared using MAXPATHLEN or MAX_PATH depending on the OS, and PATH_MAX is not declared on IRIX.
* pythonrun.c: fix Py_GetPythonHome(), use Py_ARRAY_LENGTH() to get the size ofVictor Stinner2013-11-151-2/+3
| | | | | the env_home buffer, not PATH_MAX+1. env_home is declared using MAXPATHLEN+1, and PATH_MAX is not declared on IRIX.
* make string literal constBenjamin Peterson2013-10-311-1/+1
|
* update commentBenjamin Peterson2013-10-301-3/+3
|
* Issue #18603: Ensure that PyOS_mystricmp and PyOS_mystrnicmp are in theChristian Heimes2013-10-221-0/+4
| | | | Python executable and not removed by the linker's optimizer.
* Issue #18776: atexit callbacks now display their full traceback when they ↵Antoine Pitrou2013-10-131-0/+10
| | | | raise an exception.
* Fix macro expansion of _PyErr_OCCURRED(), and make sure to use it in at ↵Antoine Pitrou2013-10-071-2/+2
| | | | least one place so as to avoid regressions.
* Closes #15213: update comment for _PyOS_URandomGeorg Brandl2013-10-061-2/+3
|
* [issue19152] Revert 832579dbafd6.Eric Snow2013-10-031-210/+192
|
* [issue19152] Add ExtensionFileLoader.get_filename().Eric Snow2013-10-031-192/+210
|
* [issue19151] Fix docstring and use of _get_suppported_file_loaders() to ↵Eric Snow2013-10-031-2613/+2611
| | | | reflect 2-tuples.
* don't scale compiler stack frames if the recursion limit is huge (closes #19098)Benjamin Peterson2013-09-271-2/+6
|
* Issue #16826: Revert fix while Windows issues are being worked out.Meador Inge2013-09-041-4206/+4201
|
* Issue #16826: Don't check for PYTHONCASEOK when using -E.Meador Inge2013-09-031-4201/+4206
| | | | | This commit fixes a regression that sneaked into Python 3.3 where importlib was not respecting -E when checking for the PYTHONCASEOK environment variable.
* Issue #18783: Removed existing mentions of Python long type in docstrings,Serhiy Storchaka2013-08-274-6/+5
| | | | error messages and comments.
* #18839: document that sys.exit() will not accept a non-integer numeric value ↵Ezio Melotti2013-08-261-1/+1
| | | | as exit status.
* Issue #18756: Improve error reporting in os.urandom() when the failure is ↵Antoine Pitrou2013-08-161-2/+6
| | | | due to something else than /dev/urandom not existing.
* Issue #15893: Remove dead codeVictor Stinner2013-07-271-5/+0
|
* Issue #15893: frozenmain.c now handles PyMem_Malloc() failureVictor Stinner2013-07-261-2/+9
|
* Issue #18552: Check return value of PyArena_AddPyObject() in obj2ast_object().Christian Heimes2013-07-261-3/+7
|
* Parser/asdl_c.py: use Py_CLEAR()Victor Stinner2013-07-261-268/+134
|
* According to the PEP 7, C code must "use 4-space indents"Victor Stinner2013-07-261-5824/+5779
| | | | Replace 8 spaces with 4.
* Issue #18560: Fix potential NULL pointer dereference in sum()Christian Heimes2013-07-261-0/+5
|
* Fix potential NULL pointer dereferencing in ast moduleChristian Heimes2013-07-241-1/+1
| | | | CID 719690
* return NULL hereBenjamin Peterson2013-07-231-1/+2
|
* Issue #15905: Fix theoretical buffer overflow in handling of sys.argv[0],Christian Heimes2013-07-221-3/+4
| | | | prefix and exec_prefix if the operation system does not obey MAXPATHLEN.
* fix spacingBenjamin Peterson2013-07-211-1/+1
|
* let's not return NULL from functions that should return intsBenjamin Peterson2013-07-211-2/+2
|
* Check return value of lseek() in _Py_DisplaySourceLine().Christian Heimes2013-07-211-1/+7
| | | | | Also use portable SEEK_SET instead of 0. CID 1040639
* Check return value of PyObject_AsFileDescriptor() in _Py_DisplaySourceLine() ↵Christian Heimes2013-07-201-0/+5
| | | | | | for error CID 486768
* Check return value of fstat() in _PyImport_GetDynLoadFunc()Christian Heimes2013-07-201-1/+3
| | | | CID 486250
* Add missing check of PyDict_SetItem()'s return value in ↵Christian Heimes2013-07-201-1/+4
| | | | | | _PyImport_FindExtensionObject() CID 486649
* Add missing check of PyDict_SetItem()'s return value in PyEval_EvalCodeEx()Christian Heimes2013-07-201-1/+3
| | | | CID 486647
* Issue #17872: Fix a segfault in marshal.load() when input stream returnsSerhiy Storchaka2013-07-111-15/+20
| | | | more bytes than requested.
* Fix reference leaks introduced by the patch for issue #5308.Serhiy Storchaka2013-07-111-12/+11
|
* Issue #18426: improve exception message. Courtesy of AmauryChristian Heimes2013-07-111-1/+5
|
* Issue #18426: Fix NULL pointer dereference in C extension import whenChristian Heimes2013-07-111-0/+2
| | | | PyModule_GetDef() returns an error.
* #18424: PEP8ify the tense of the sum docstring.R David Murray2013-07-101-2/+2
|
* Issue #18351: Fix various issues withBrett Cannon2013-07-061-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 #18328: Reorder ops in PyThreadState_Delete*() functions. Now theChristian Heimes2013-07-011-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 #18137: Detect integer overflow on precision in float.__format__() andVictor Stinner2013-06-231-2/+14
| | | | complex.__format__().
* Issue #18256: Compilation fix for recent AIX releases. Patch by David Edelsohn.Antoine Pitrou2013-06-181-0/+3
|
* Fix a misnaming of a method and an argumentBrett Cannon2013-06-161-1071/+1071
|
* Issue #18180: Fix ref leak in _PyImport_GetDynLoadWindows().Richard Oudkerk2013-06-101-2/+3
|
* move definition to top of blockBenjamin Peterson2013-05-171-1/+2
|
* complain about "global __class__" in a class body (closes #17983)Benjamin Peterson2013-05-151-0/+6
|
* when arguments are cells clear the locals slot (backport of #17927)Benjamin Peterson2013-05-151-2/+6
|
* Fix crash caused by 8c1385205a35Antoine Pitrou2013-05-051-6/+8
| | | | (thanks Arfrever for reporting).
* Issue #17408: Avoid using an obsolete instance of the copyreg module when ↵Antoine Pitrou2013-05-041-3/+1
| | | | the interpreter is shutdown and then started again.