Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Fix: | Neal Norwitz | 2008-08-24 | 2 | -5/+9 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | * crashes on memory allocation failure found with failmalloc * memory leaks found with valgrind * compiler warnings in opt mode which would lead to invalid memory reads * problem using wrong name in decimal module reported by pychecker Update the valgrind suppressions file with new leaks that are small/one-time leaks we don't care about (ie, they are too hard to fix). TBR=barry TESTED=./python -E -tt ./Lib/test/regrtest.py -uall (both debug and opt modes) in opt mode: valgrind -q --leak-check=yes --suppressions=Misc/valgrind-python.supp \ ./python -E -tt ./Lib/test/regrtest.py -uall,-bsddb,-compiler \ -x test_logging test_ssl test_multiprocessing valgrind -q --leak-check=yes --suppressions=Misc/valgrind-python.supp \ ./python -E -tt ./Lib/test/regrtest.py test_multiprocessing for i in `seq 1 4000` ; do LD_PRELOAD=~/local/lib/libfailmalloc.so FAILMALLOC_INTERVAL=$i \ ./python -c pass done At least some of these fixes should probably be backported to 2.5. | |||||
* | allow keyword args to be passed in after *args #3473 | Benjamin Peterson | 2008-08-19 | 2 | -2/+8 | |
| | ||||||
* | follup to #3473: don't duplicate the reduce code | Benjamin Peterson | 2008-08-18 | 1 | -56/+10 | |
| | ||||||
* | uhh PySTEntry->ste_unoptimized has to be exposed too | Benjamin Peterson | 2008-08-17 | 1 | -0/+1 | |
| | ||||||
* | expose PySTEntry.nested so the symtable module will work | Benjamin Peterson | 2008-08-17 | 1 | -0/+1 | |
| | ||||||
* | PySTEntry's constructor is static; there's no point in a fancy API name | Benjamin Peterson | 2008-08-16 | 1 | -4/+4 | |
| | ||||||
* | include filename and line number in SyntaxError | Benjamin Peterson | 2008-08-16 | 1 | -0/+3 | |
| | ||||||
* | Issue #3139: Make buffer-interface thread-safe wrt. PyArg_ParseTuple, | Martin v. Löwis | 2008-08-12 | 1 | -9/+123 | |
| | | | | | | | by denying s# to parse objects that have a releasebuffer procedure, and introducing s*. More module might need to get converted to use s*. | |||||
* | Add imp.reload(). This to help with transitioning to 3.0 the reload() built-in | Brett Cannon | 2008-08-06 | 1 | -0/+13 | |
| | | | | has been removed there. | |||||
* | Adds a sanity check to avoid a *very rare* infinite loop due to a corrupt tls | Gregory P. Smith | 2008-08-04 | 2 | -1/+15 | |
| | | | | | | | | | | | | | | | | | | | | | | key list data structure in the thread startup path. This change is a companion to r60148 which already successfully dealt with a similar issue on thread shutdown. In particular this loop has been observed happening from this call path: #0 in find_key () #1 in PyThread_set_key_value () #2 in _PyGILState_NoteThreadState () #3 in PyThreadState_New () #4 in t_bootstrap () #5 in pthread_start_thread () I don't know how this happens but it does, *very* rarely. On more than one hardware platform. I have not been able to reproduce it manually. (A flaky mutex implementation on the system in question is one hypothesis). As with r60148, the spinning we managed to observe in the wild was due to a single list element pointing back upon itself. | |||||
* | #3479: unichr(2**32) used to return u'\x00'. | Amaury Forgeot d'Arc | 2008-07-31 | 1 | -2/+2 | |
| | | | | | | The argument was fetched in a long, but PyUnicode_FromOrdinal takes an int. (why doesn't gcc issue a truncation warning in this case?) | |||||
* | #2542: now that issubclass() may call arbitrary code, | Amaury Forgeot d'Arc | 2008-07-31 | 1 | -3/+12 | |
| | | | | make sure that PyErr_ExceptionMatches returns 0 when an exception occurs there. | |||||
* | Raymond's patch for #1819: speedup function calls with named parameters | Antoine Pitrou | 2008-07-25 | 1 | -22/+30 | |
| | | | | (35% faster according to pybench) | |||||
* | #3378: in case of no memory, don't leak even more memory. :) | Georg Brandl | 2008-07-19 | 1 | -6/+7 | |
| | ||||||
* | Fix issue 3411: default float format spec fails on negative numbers. | Eric Smith | 2008-07-19 | 1 | -0/+4 | |
| | ||||||
* | Apply patch for 874900: threading module can deadlock after fork | Jesse Noller | 2008-07-16 | 1 | -0/+20 | |
| | ||||||
* | Issue #3360: Fix incorrect parsing of "020000000000.0". | Mark Dickinson | 2008-07-16 | 1 | -10/+1 | |
| | ||||||
* | Fix issue 3221 by emitting a RuntimeWarning instead of raising SystemError ↵ | Nick Coghlan | 2008-07-13 | 1 | -3/+22 | |
| | | | | when the parent module can't be found during an absolute import (likely due to non-PEP 361 aware code which sets a module level __package__ attribute) | |||||
* | #3342: In tracebacks, printed source lines were not indented since r62555. | Amaury Forgeot d'Arc | 2008-07-11 | 2 | -7/+22 | |
| | | | | #3343: Py_DisplaySourceLine should be a private function. Rename it to _Py_DisplaySourceLine. | |||||
* | Added garbage collector overhead and optional default return value to | Robert Schuppenies | 2008-07-10 | 1 | -13/+46 | |
| | | | | sys.getsizeof. | |||||
* | Fixed Issue3122 and extended sys.getsizeof tests for built-in types. | Robert Schuppenies | 2008-07-10 | 1 | -11/+10 | |
| | ||||||
* | - Issue #2862: Make int and float freelist management consistent with other | Gregory P. Smith | 2008-07-06 | 1 | -20/+0 | |
| | | | | | freelists. Changes their CompactFreeList apis into ClearFreeList apis and calls them via gc.collect(). | |||||
* | Fix tabs. | Georg Brandl | 2008-07-05 | 1 | -12/+12 | |
| | ||||||
* | Update comment on prediction macros. | Raymond Hettinger | 2008-07-05 | 1 | -11/+13 | |
| | ||||||
* | Add a comment about incref'ing w. | Georg Brandl | 2008-07-01 | 1 | -0/+2 | |
| | ||||||
* | #3242: fix a crash in "print", if sys.stdout is set to a custom object, | Amaury Forgeot d'Arc | 2008-07-01 | 1 | -0/+2 | |
| | | | | | | whose write() method installs another sys.stdout. Will backport. | |||||
* | #3219 repeated keyword arguments aren't allowed in function calls anymore | Benjamin Peterson | 2008-07-01 | 1 | -0/+10 | |
| | ||||||
* | warnings.warn_explicit() did not have the proper TypeErrors in place to prevent | Brett Cannon | 2008-06-27 | 1 | -5/+13 | |
| | | | | | | | | bus errors or SystemError being raised. As a side effect of fixing this, a bad DECREF that could be triggered when 'message' and 'category' were both None was fixed. Closes issue 3211. Thanks JP Calderone for the bug report. | |||||
* | Revert 64424, 64438, and 64439. | Raymond Hettinger | 2008-06-24 | 1 | -18/+1 | |
| | ||||||
* | Modified interface to _Py_[String|Unicode]InsertThousandsGrouping, in ↵ | Eric Smith | 2008-06-24 | 1 | -1/+1 | |
| | | | | anticipation of fixing issue 3140. | |||||
* | Make bin() implementation parallel oct() and hex() so that int/long ↵ | Raymond Hettinger | 2008-06-20 | 1 | -1/+18 | |
| | | | | subclasses can override or so that other classes can support. | |||||
* | Issue 3116: fix quadratic behavior in marshal.dumps(). | Raymond Hettinger | 2008-06-16 | 1 | -1/+1 | |
| | ||||||
* | #1683 prevent forking from interfering in threading storage | Benjamin Peterson | 2008-06-13 | 1 | -0/+31 | |
| | | | | This should prevent some test_multiprocessing failures | |||||
* | Merge in release25-maint r60793: | Gregory P. Smith | 2008-06-11 | 4 | -12/+119 | |
| | | | | | | Added checks for integer overflows, contributed by Google. Some are only available if asserts are left in the code, in cases where they can't be triggered from Python code. | |||||
* | This reverts r63675 based on the discussion in this thread: | Gregory P. Smith | 2008-06-09 | 21 | -360/+360 | |
| | | | | | | | http://mail.python.org/pipermail/python-dev/2008-June/079988.html Python 2.6 should stick with PyString_* in its codebase. The PyBytes_* names in the spirit of 3.0 are available via a #define only. See the email thread. | |||||
* | warn about parameter tuple unpacking | Benjamin Peterson | 2008-06-08 | 1 | -0/+3 | |
| | ||||||
* | Warn about assigning to Py3k keywords (True and False) | Benjamin Peterson | 2008-06-08 | 1 | -33/+27 | |
| | ||||||
* | add an ast_warn helper function to make adding those Py3k warnings easier | Benjamin Peterson | 2008-06-08 | 1 | -7/+15 | |
| | ||||||
* | change Py3k backquote warning to a SyntaxWarning and add a test | Benjamin Peterson | 2008-06-08 | 1 | -1/+1 | |
| | ||||||
* | MacOS X: Enable 4-way universal builds | Ronald Oussoren | 2008-06-05 | 1 | -0/+4 | |
| | | | | | | | | | | | | | | | | | | This patch adds a new configure argument on OSX: --with-universal-archs=[32-bit|64-bit|all] When used with the --enable-universalsdk option this controls which CPU architectures are includes in the framework. The default is 32-bit, meaning i386 and ppc. The most useful alternative is 'all', which includes all 4 CPU architectures supported by MacOS X (i386, ppc, x86_64 and ppc64). This includes limited support for the Carbon bindings in 64-bit mode as well, limited because (a) I haven't done extensive testing and (b) a large portion of the Carbon API's aren't available in 64-bit mode anyway. I've also duplicated a feature of Apple's build of python: setting the environment variable 'ARCHFLAGS' controls the '-arch' flags used for building extensions using distutils. | |||||
* | Some style nits. Also clarify in the docstrings what __sizeof__ does. | Georg Brandl | 2008-06-01 | 1 | -2/+2 | |
| | ||||||
* | Issue #2898: Added sys.getsizeof() to retrieve size of objects in bytes. | Robert Schuppenies | 2008-06-01 | 1 | -0/+41 | |
| | ||||||
* | Typo: encoding -> codeset. | Martin v. Löwis | 2008-06-01 | 1 | -1/+1 | |
| | ||||||
* | Move sys_stream and sys_isatty out of the have-langinfo block. | Martin v. Löwis | 2008-06-01 | 1 | -1/+1 | |
| | ||||||
* | New environment variable PYTHONIOENCODING. | Martin v. Löwis | 2008-06-01 | 2 | -49/+74 | |
| | ||||||
* | Refactor and clean up str.format() code (and helpers) in advance of ↵ | Eric Smith | 2008-05-30 | 2 | -9/+8 | |
| | | | | optimizations. | |||||
* | Issue 2784: fix leaks in exception exit. | Raymond Hettinger | 2008-05-30 | 1 | -2/+2 | |
| | ||||||
* | Fix issue2588: Do not execute str[size-1] = '\0' when a 0 size is | Gregory P. Smith | 2008-05-26 | 1 | -1/+2 | |
| | | | | passed in. (The assert won't prevent this in non-debug builds). | |||||
* | Fix issue2589: there was a potential integer overflow leading to | Gregory P. Smith | 2008-05-26 | 1 | -4/+15 | |
| | | | | | memory corruption on esoteric platforms and incorrect behavior on normal platforms. | |||||
* | turn PyErr_WarnPy3k into a macro | Benjamin Peterson | 2008-05-26 | 1 | -9/+0 | |
| |