Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Close #15766: Catch exceptions while raising the ImportError in ↵ | Victor Stinner | 2012-10-01 | 1 | -7/+18 |
| | | | | imp.load_dynamic() | ||||
* | Issue #15609: Optimize str%args for integer argument | Victor Stinner | 2012-10-01 | 1 | -1/+2 |
| | | | | | | | | | | - Use _PyLong_FormatWriter() instead of formatlong() when possible, to avoid a temporary buffer - Enable the fast path when width is smaller or equals to the length, and when the precision is bigger or equals to the length - Add unit tests! - formatlong() uses PyUnicode_Resize() instead of _PyUnicode_FromASCII() to resize the output string | ||||
* | Add some comments. | Brett Cannon | 2012-09-28 | 1 | -3476/+3475 |
| | |||||
* | don't depend on __debug__ because it's baked in at freeze time (issue #16046) | Benjamin Peterson | 2012-09-25 | 1 | -4221/+4230 |
| | |||||
* | Issue #15144: Fix possible integer overflow when handling pointers as ↵ | Antoine Pitrou | 2012-09-20 | 1 | -5/+3 |
| | | | | | | integer values, by using Py_uintptr_t instead of size_t. Patch by Serhiy Storchaka. | ||||
* | Cleanup 'k' when the creation of PySTEntryObject fails. ad3824a90261 used to ↵ | Christian Heimes | 2012-09-12 | 1 | -1/+3 |
|\ | | | | | | | decref 'k' in too many error cases. | ||||
| * | Cleanup 'k' when the creation of PySTEntryObject fails. ad3824a90261 used to ↵ | Christian Heimes | 2012-09-12 | 1 | -1/+3 |
| | | | | | | | | decref 'k' in too many error cases. | ||||
* | | Partly revert ad3824a90261 and add comment about reference ownership | Christian Heimes | 2012-09-12 | 1 | -2/+1 |
|\ \ | |/ | |||||
| * | Partly revert ad3824a90261 and add comment about reference ownership | Christian Heimes | 2012-09-12 | 1 | -2/+1 |
| | | |||||
* | | Fix null pointer dereferencing in structmember.c PyMember_SetOne() for ↵ | Christian Heimes | 2012-09-11 | 1 | -5/+1 |
|\ \ | |/ | | | | | 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 | ||||
| * | Fix null pointer dereferencing in structmember.c PyMember_SetOne() for ↵ | Christian Heimes | 2012-09-11 | 1 | -5/+1 |
| | | | | | | | | 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 | ||||
* | | Issue #15895: my analysis was slightly off. The FILE pointer is only leaked ↵ | Christian Heimes | 2012-09-11 | 1 | -8/+6 |
| | | | | | | | | 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. | ||||
* | | Issue #15895: Fix FILE pointer leak in PyRun_SimpleFileExFlags() when ↵ | Christian Heimes | 2012-09-11 | 1 | -1/+5 |
| | | | | | | | | filename points to a pyc/pyo file and closeit is false. | ||||
* | | Fixed memory leak in error branch of parsestrplus. CID 715374 Variable s ↵ | Christian Heimes | 2012-09-10 | 1 | -0/+1 |
|\ \ | |/ | | | | | going out of scope leaks the storage it points to. | ||||
| * | Fixed memory leak in error branch of parsestrplus. CID 715374 Variable s ↵ | Christian Heimes | 2012-09-10 | 1 | -0/+1 |
| | | | | | | | | going out of scope leaks the storage it points to. | ||||
* | | Added missing va_end in error branch of PyArg_UnpackTuple(). CID 486641 | Christian Heimes | 2012-09-10 | 1 | -0/+1 |
|\ \ | |/ | |||||
| * | Added missing va_end in error branch of PyArg_UnpackTuple(). CID 486641 | Christian Heimes | 2012-09-10 | 1 | -0/+1 |
| | | |||||
* | | Closed reference leak of variable 'k' in function ste_new which wasn't ↵ | Christian Heimes | 2012-09-10 | 1 | -1/+2 |
|\ \ | |/ | | | | | decrefed in error cases | ||||
| * | Closed reference leak of variable 'k' in function ste_new which wasn't ↵ | Christian Heimes | 2012-09-10 | 1 | -1/+2 |
| | | | | | | | | decrefed in error cases | ||||
* | | Issue #15340: Fix importing the random module when /dev/urandom cannot be ↵ | Antoine Pitrou | 2012-09-07 | 1 | -1/+2 |
|\ \ | |/ | | | | | | | | | opened. This was a regression caused by the hash randomization patch. | ||||
| * | Issue #15340: Fix importing the random module when /dev/urandom cannot be ↵ | Antoine Pitrou | 2012-09-07 | 1 | -1/+2 |
| | | | | | | | | | | | | opened. This was a regression caused by the hash randomization patch. | ||||
* | | After the jump in line 1051 unicode_tmp is NULL. Found by Coverity. | Stefan Krah | 2012-09-06 | 1 | -1/+1 |
| | | |||||
* | | Issue #13992: The trashcan mechanism is now thread-safe. This eliminates | Antoine Pitrou | 2012-09-05 | 1 | -0/+3 |
|\ \ | |/ | | | | | | | | | | | | | | | sporadic crashes in multi-thread programs when several long deallocator chains ran concurrently and involved subclasses of built-in container types. Note that the trashcan functions are part of the stable ABI, therefore they have to be kept around for binary compatibility of extensions. | ||||
| * | Issue #13992: The trashcan mechanism is now thread-safe. This eliminates | Antoine Pitrou | 2012-09-05 | 1 | -0/+3 |
| | | | | | | | | | | | | | | | | | | | | | | sporadic crashes in multi-thread programs when several long deallocator chains ran concurrently and involved subclasses of built-in container types. Because of this change, a couple extension modules compiled for 3.2.4 (those which use the trashcan mechanism, despite it being undocumented) will not be loadable by 3.2.3 and earlier. However, extension modules compiled for 3.2.3 and earlier will be loadable by 3.2.4. | ||||
* | | merge 3.2 | Benjamin Peterson | 2012-09-02 | 1 | -2/+2 |
|\ \ | |/ | |||||
| * | put * in the normal place | Benjamin Peterson | 2012-09-02 | 1 | -2/+2 |
| | | |||||
* | | get rid of ast_error_finish by passing the compiling struct to ast_error | Benjamin Peterson | 2012-09-02 | 1 | -118/+72 |
| | | |||||
* | | merge 3.2 | Benjamin Peterson | 2012-09-02 | 1 | -2/+2 |
|\ \ | |/ | |||||
| * | move variable decl to the top of the function | Benjamin Peterson | 2012-09-02 | 1 | -2/+2 |
| | | |||||
* | | merge 3.2 (#15846) | Benjamin Peterson | 2012-09-02 | 1 | -0/+8 |
|\ \ | |/ | |||||
| * | prevert ast errors from being normalized before ast_error_finish is called ↵ | Benjamin Peterson | 2012-09-02 | 1 | -0/+8 |
| | | | | | | | | (closes #15846) | ||||
* | | Issue #15781: Fix two small race conditions in import's module locking. | Antoine Pitrou | 2012-08-27 | 2 | -3632/+3638 |
| | | |||||
* | | Issue #15316: Let exceptions raised during imports triggered by the | Brett Cannon | 2012-08-24 | 1 | -189/+198 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fromlist of __import__ propagate. The problem previously was that if something listed in fromlist didn't exist then that's okay. The fix for that was too broad in terms of catching ImportError. The trick with the solution to this issue is that the proper refactoring of import thanks to importlib doesn't allow for a way to distinguish (portably) between an ImportError because finders couldn't find a loader, or a loader raised the exception. In Python 3.4 the hope is to introduce a new exception (e.g. ModuleNotFound) to make it clean to differentiate why ImportError was raised. | ||||
* | | Issue #2051: Tweak last commit for this issue to pass in mode instead | Brett Cannon | 2012-08-24 | 1 | -1871/+1868 |
| | | | | | | | | | | of source path to set_data() and make the new argument private until possible API changes can be discussed more thoroughly in Python 3.4. | ||||
* | | Close #2501: Permission bits are once again correctly copied from the source ↵ | Nick Coghlan | 2012-08-24 | 1 | -4180/+4243 |
| | | | | | | | | file to the cached bytecode file. Test by Eric Snow. | ||||
* | | Issue #15766: Fix a crash in imp.load_dynamic() on PyUnicode_FromString() ↵ | Victor Stinner | 2012-08-22 | 1 | -3/+3 |
| | | | | | | | | failure | ||||
* | | Issue #15726: Fix incorrect bounds checking in PyState_FindModule. | Antoine Pitrou | 2012-08-20 | 1 | -1/+1 |
|\ \ | |/ | | | | | Patch by Robin Schreiber. | ||||
| * | Issue #15726: Fix incorrect bounds checking in PyState_FindModule. | Antoine Pitrou | 2012-08-20 | 1 | -1/+1 |
| | | | | | | | | Patch by Robin Schreiber. | ||||
* | | Merge 3.2. | Stefan Krah | 2012-08-20 | 1 | -0/+2 |
|\ \ | |/ | |||||
| * | Issue #15741: Fix potential NULL dereference. Found by Coverity. | Stefan Krah | 2012-08-20 | 1 | -0/+2 |
| | | |||||
* | | Check return value of asdl_seq_new(). Found by Coverity. | Stefan Krah | 2012-08-20 | 1 | -0/+2 |
| | | |||||
* | | Close #14846: Handle a sys.path entry going away | Nick Coghlan | 2012-08-20 | 1 | -929/+933 |
| | | |||||
* | | Issue #15715: Ignore failed imports triggered by the use of fromlist. | Brett Cannon | 2012-08-17 | 1 | -454/+456 |
| | | | | | | | | | | | | | | | | | | | | | | When the fromlist argument is specified for __import__() and the attribute doesn't already exist, an import is attempted. If that fails (e.g. module doesn't exist), the ImportError will now be silenced (for backwards-compatibility). This *does not* affect ``from ... import ...`` statements. Thanks to Eric Snow for the patch and Simon Feltman for reporting the regression. | ||||
* | | Issue #15604: Update uses of PyObject_IsTrue() to check for and handle ↵ | Antoine Pitrou | 2012-08-15 | 1 | -1/+3 |
|\ \ | |/ | | | | | | | | | errors correctly. Patch by Serhiy Storchaka. | ||||
| * | Issue #15604: Update uses of PyObject_IsTrue() to check for and handle ↵ | Antoine Pitrou | 2012-08-15 | 2 | -3/+14 |
| | | | | | | | | | | | | errors correctly. Patch by Serhiy Storchaka. | ||||
| * | Close #13119: use "\r\n" newline for sys.stdout/err on Windows | Victor Stinner | 2012-08-03 | 1 | -5/+8 |
| | | | | | | | | sys.stdout and sys.stderr are now using "\r\n" newline on Windows, as Python 2. | ||||
| * | remove unused variable | Meador Inge | 2012-07-18 | 1 | -1/+1 |
| | | |||||
* | | Don't overwrite a __path__ value from extension modules if already | Brett Cannon | 2012-08-11 | 1 | -1658/+1661 |
| | | | | | | | | set. | ||||
* | | fix docstring wording | Philip Jenvey | 2012-08-10 | 1 | -2612/+2613 |
| | | |||||
* | | Issue #15502: Refactor some code. | Brett Cannon | 2012-08-10 | 1 | -4152/+4153 |
| | |