3983 Commits (202b60640bd873f00ee121cb24ee4a6409eb8993)

Author SHA1 Message Date
Antoine Pitrou 202b60640b Add sanity assertions in some import lock code (issue #15599). 13 years ago
Victor Stinner 41a234a679 Issue #16416: Fix compilation error 13 years ago
Victor Stinner 27b1ca29cc Issue #16416: On Mac OS X, operating system data are now always 13 years ago
Christian Heimes 56379c0d8f Issue #16588: Silence unused-but-set warnings in Python/thread_pthread.h 13 years ago
Mark Dickinson ded35aeb9d Issue #16546: make ast.YieldFrom argument mandatory. 13 years ago
Ezio Melotti a0dd22e5e8 #16306: report only the first unknown option and add more tests. Patch by Serhiy Storchaka. 13 years ago
Ezio Melotti 3c76aa6b23 Remove unused variabile "plain" in builtin_exec. 13 years ago
Barry Warsaw 82c1c781c7 - Issue #16514: Fix regression causing a traceback when sys.path[0] is None 13 years ago
Ezio Melotti 7c66319edc #16306: Fix multiple error messages when unknown command line parameters where passed to the interpreter. Patch by Hieu Nguyen. 13 years ago
Benjamin Peterson 2a0e226131 recompile importlib.h 13 years ago
Stefan Krah 6df5cae49a Issue #15835: Define PATH_MAX on HP-UX. 13 years ago
Hynek Schlawack 5c6b3e214c Issue #15001: fix segfault on "del sys.module['__main__']" 13 years ago
Ezio Melotti 6c5f5210be #5057: the peepholer no longer optimizes subscription on unicode literals (e.g. u"foo"[0]) in order to produce compatible pyc files between narrow and wide builds. 13 years ago
Nick Coghlan aab9c2b2ea Issue #5765: Apply a hard recursion limit in the compiler 13 years ago
Ezio Melotti 540da76115 #16336: fix input checking in the surrogatepass error handler. Patch by Serhiy Storchaka. 13 years ago
Andrew Svetlov 90c0eb28c5 Issue #16218: Support non ascii characters in python launcher. 13 years ago
Benjamin Peterson e132f527c9 check return value of _PyUnicode_AsString 13 years ago
Philip Jenvey 45c41494bf bounds check for bad data (thanks amaury) 13 years ago
Nick Coghlan 557c76c136 Fix compilation on Windows 13 years ago
Nick Coghlan eb8d627bbd Issue #6074: Apply an appropriate fix for importlib based imports 13 years ago
Nick Coghlan 34937ce249 Issue #6074: Forward port Windows read-only source file fix from 2.7 13 years ago
Trent Nelson d783c8ed00 Issue #15833: don't raise an exception if importlib can't write byte-compiled 13 years ago
Brett Cannon a6ce4fd426 Closes issue #15111: Calling __import__ with a module specified in 13 years ago
Brett Cannon 8ed677db12 Add some comments. 13 years ago
Benjamin Peterson 0beb4d28d0 don't depend on __debug__ because it's baked in at freeze time (issue #16046) 13 years ago
Benjamin Peterson feaa54f537 don't depend on __debug__ because it's baked in at freeze time (issue #16046) 13 years ago
Antoine Pitrou ca8aa4acf6 Issue #15144: Fix possible integer overflow when handling pointers as integer values, by using Py_uintptr_t instead of size_t. 13 years ago
Christian Heimes 55ad6515c9 Cleanup 'k' when the creation of PySTEntryObject fails. ad3824a90261 used to decref 'k' in too many error cases. 13 years ago
Christian Heimes 1526582df6 Partly revert ad3824a90261 and add comment about reference ownership 13 years ago
Christian Heimes 5557a9c73f Fix null pointer dereferencing in structmember.c PyMember_SetOne() for T_CHAR. _PyUnicode_AsStringAndSize() can return NULL without touching the len argument. Also remove unnecessary PyUnicode_Check(), _PyUnicode_AsStringAndSize() performance the test again. CID 486815 13 years ago
Christian Heimes 6d29352cfd Issue #15895: my analysis was slightly off. The FILE pointer is only leaked when set_main_loader() fails for a pyc file with closeit=0. In the success case run_pyc_file() does its own cleanup of the fp. I've changed the code to use another FILE ptr for pyc files and moved the fclose() to PyRun_SimpleFileExFlags() to make it more obvious what's happening. 13 years ago
Christian Heimes 6a77af690f Issue #15895: Fix FILE pointer leak in PyRun_SimpleFileExFlags() when filename points to a pyc/pyo file and closeit is false. 13 years ago
Christian Heimes 3d463393bb Fixed memory leak in error branch of parsestrplus. CID 715374 Variable s going out of scope leaks the storage it points to. 14 years ago
Christian Heimes 48d8d21438 Added missing va_end in error branch of PyArg_UnpackTuple(). CID 486641 14 years ago
Christian Heimes 04ac4c1cb8 Issue #15895: my analysis was slightly off. The FILE pointer is only leaked when set_main_loader() fails for a pyc file with closeit=0. In the success case run_pyc_file() does its own cleanup of the fp. I've changed the code to use another FILE ptr for pyc files and moved the fclose() to PyRun_SimpleFileExFlags() to make it more obvious what's happening. 13 years ago
Christian Heimes eeb5635843 Issue #15895: Fix FILE pointer leak in PyRun_SimpleFileExFlags() when filename points to a pyc/pyo file and closeit is false. 13 years ago
Christian Heimes 837e53a7c2 Closed reference leak of variable 'k' in function ste_new which wasn't decrefed in error cases 14 years ago
Antoine Pitrou 7ff1822ec7 Issue #15340: Fix importing the random module when /dev/urandom cannot be opened. 14 years ago
Stefan Krah d9c1bf7f1f After the jump in line 1051 unicode_tmp is NULL. Found by Coverity. 14 years ago
Antoine Pitrou 56cd62c04a Issue #13992: The trashcan mechanism is now thread-safe. This eliminates 14 years ago
Benjamin Peterson c7dedb0945 put * in the normal place 14 years ago
Benjamin Peterson bd0df50fb6 get rid of ast_error_finish by passing the compiling struct to ast_error 14 years ago
Benjamin Peterson c5d7518a2e move variable decl to the top of the function 14 years ago
Benjamin Peterson 2e2c903700 prevert ast errors from being normalized before ast_error_finish is called (closes #15846) 14 years ago
Antoine Pitrou 2b0218a259 Issue #13992: The trashcan mechanism is now thread-safe. This eliminates 14 years ago
Antoine Pitrou 380c55cc58 Issue #15340: Fix importing the random module when /dev/urandom cannot be opened. 14 years ago
Antoine Pitrou 0398985920 Issue #15781: Fix two small race conditions in import's module locking. 14 years ago
Antoine Pitrou 4f0338cab7 Issue #15781: Fix two small race conditions in import's module locking. 14 years ago
Brett Cannon 12c6bda4f0 Issue #15316: Let exceptions raised during imports triggered by the 14 years ago
Brett Cannon ba0a3edd26 Issue #2051: Tweak last commit for this issue to pass in mode instead 14 years ago