summaryrefslogtreecommitdiff
path: root/Python
Commit message (Collapse)AuthorAgeFilesLines
* merge with 3.3Philip Jenvey2012-10-261-3/+4
|\
| * merge with 3.2Philip Jenvey2012-10-261-3/+4
| |\
| | * bounds check for bad data (thanks amaury)Philip Jenvey2012-10-261-3/+4
| | |
| | * Fix compilation on WindowsNick Coghlan2012-10-201-1/+1
| | |
| | * Issue #6074: Forward port Windows read-only source file fix from 2.7Nick Coghlan2012-10-191-0/+6
| | |
* | | Merge fix from #6074 from 3.3Nick Coghlan2012-10-191-1876/+1877
|\ \ \ | |/ /
| * | Issue #6074: Apply an appropriate fix for importlib based importsNick Coghlan2012-10-191-1884/+1885
| | |
* | | Issue #16166: Add PY_LITTLE_ENDIAN and PY_BIG_ENDIAN macros and unifiedChristian Heimes2012-10-171-15/+8
| | | | | | | | | | | | endianess detection and handling.
* | | Merge issue #15833: don't raise an exception if importlib can't writeTrent Nelson2012-10-161-1833/+1840
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | byte-compiled files. This fixes a regression introduced by 3.3. Patch by Charles-François Natali.
| * | Issue #15833: don't raise an exception if importlib can't write byte-compiledTrent Nelson2012-10-161-1839/+1845
| | | | | | | | | | | | | | | | | | files. This fixes a regression introduced by 3.3. Patch by Charles-François Natali.
* | | move more variable declarations to the top of blocksBenjamin Peterson2012-10-121-3/+4
| | |
* | | move declaration to top of blockBenjamin Peterson2012-10-121-1/+1
| | |
* | | ceval cleanupBenjamin Peterson2012-10-121-1012/+1088
| | | | | | | | | | | | | | | | | | | | | | | | | | | - Make many variables local to the opcode; Kill u, v, w, and x. - Force every opcode to end with DISPATCH or jump to error handling. - Simplify error handling. - Check error statuses in more places. Closes #16191.
* | | Remove uses of % with str.format.Brett Cannon2012-10-121-3746/+3748
| | |
* | | Merge fix for issue #15111.Brett Cannon2012-10-101-460/+464
|\ \ \ | |/ /
| * | Closes issue #15111: Calling __import__ with a module specified inBrett Cannon2012-10-101-467/+471
| | | | | | | | | | | | | | | fromlist which causes its own ImportError (e.g. the module tries to import a non-existent module) should have that exception propagate.
* | | add some missing DISPATCH()Benjamin Peterson2012-10-101-9/+16
| | |
* | | Closes #16135: Removal of OS/2 supportJesus Cea2012-10-051-108/+102
| | |
* | | #16135: Removal of OS/2 support (I)Jesus Cea2012-10-055-329/+0
| | |
* | | Close #15766: Catch exceptions while raising the ImportError in ↵Victor Stinner2012-10-021-7/+18
| | | | | | | | | | | | imp.load_dynamic()
* | | Issue #15609: Optimize str%args for integer argumentVictor Stinner2012-10-021-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 Cannon2012-09-281-3476/+3475
| |
* | don't depend on __debug__ because it's baked in at freeze time (issue #16046)Benjamin Peterson2012-09-251-4221/+4230
| |
* | Issue #15144: Fix possible integer overflow when handling pointers as ↵Antoine Pitrou2012-09-201-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 Heimes2012-09-121-1/+3
|\ \ | |/ | | | | decref 'k' in too many error cases.
| * Cleanup 'k' when the creation of PySTEntryObject fails. ad3824a90261 used to ↵Christian Heimes2012-09-121-1/+3
| | | | | | | | decref 'k' in too many error cases.
* | Partly revert ad3824a90261 and add comment about reference ownershipChristian Heimes2012-09-121-2/+1
|\ \ | |/
| * Partly revert ad3824a90261 and add comment about reference ownershipChristian Heimes2012-09-121-2/+1
| |
* | Fix null pointer dereferencing in structmember.c PyMember_SetOne() for ↵Christian Heimes2012-09-111-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 Heimes2012-09-111-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 Heimes2012-09-111-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 Heimes2012-09-111-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 Heimes2012-09-101-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 Heimes2012-09-101-0/+1
| | | | | | | | going out of scope leaks the storage it points to.
* | Added missing va_end in error branch of PyArg_UnpackTuple(). CID 486641Christian Heimes2012-09-101-0/+1
|\ \ | |/
| * Added missing va_end in error branch of PyArg_UnpackTuple(). CID 486641Christian Heimes2012-09-101-0/+1
| |
* | Closed reference leak of variable 'k' in function ste_new which wasn't ↵Christian Heimes2012-09-101-1/+2
|\ \ | |/ | | | | decrefed in error cases
| * Closed reference leak of variable 'k' in function ste_new which wasn't ↵Christian Heimes2012-09-101-1/+2
| | | | | | | | decrefed in error cases
* | Issue #15340: Fix importing the random module when /dev/urandom cannot be ↵Antoine Pitrou2012-09-071-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 Pitrou2012-09-071-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 Krah2012-09-061-1/+1
| |
* | Issue #13992: The trashcan mechanism is now thread-safe. This eliminatesAntoine Pitrou2012-09-061-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 eliminatesAntoine Pitrou2012-09-061-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.2Benjamin Peterson2012-09-021-2/+2
|\ \ | |/
| * put * in the normal placeBenjamin Peterson2012-09-021-2/+2
| |
* | get rid of ast_error_finish by passing the compiling struct to ast_errorBenjamin Peterson2012-09-021-118/+72
| |
* | merge 3.2Benjamin Peterson2012-09-021-2/+2
|\ \ | |/
| * move variable decl to the top of the functionBenjamin Peterson2012-09-021-2/+2
| |
* | merge 3.2 (#15846)Benjamin Peterson2012-09-021-0/+8
|\ \ | |/
| * prevert ast errors from being normalized before ast_error_finish is called ↵Benjamin Peterson2012-09-021-0/+8
| | | | | | | | (closes #15846)