Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue #4893: Use NT threading on CE. | Martin v. Löwis | 2009-01-12 | 2 | -7/+26 |
| | |||||
* | Issue #4915: Port sysmodule to Windows CE. | Martin v. Löwis | 2009-01-12 | 1 | -3/+12 |
| | |||||
* | Issue #4279: Fix build of parsermodule under Cygwin. | Martin v. Löwis | 2009-01-11 | 1 | -0/+1 |
| | |||||
* | Issue 4906: Preserve windows error state across PyThread_get_key_value | Kristján Valur Jónsson | 2009-01-10 | 1 | -1/+10 |
| | |||||
* | Issue 4293: Make Py_AddPendingCall() thread safe | Kristján Valur Jónsson | 2009-01-09 | 1 | -22/+146 |
| | |||||
* | Issue 3677: Fix import from UNC paths on Windows. | Kristján Valur Jónsson | 2009-01-09 | 1 | -15/+19 |
| | |||||
* | Issue 3582. Improved thread support and TLS for Windows | Kristján Valur Jónsson | 2009-01-09 | 1 | -65/+91 |
| | |||||
* | Issue #1180193: When importing a module from a .pyc (or .pyo) file with | Antoine Pitrou | 2009-01-06 | 1 | -0/+45 |
| | | | | | | | an existing .py counterpart, override the co_filename attributes of all code objects if the original filename is obsolete (which can happen if the file has been renamed, moved, or if it is accessed through different paths). Patch by Ziga Seilnacht and Jean-Paul Calderone. | ||||
* | Issue #4817: Remove unused function PyOS_GetLastModificationTime. | Martin v. Löwis | 2009-01-03 | 2 | -28/+0 |
| | |||||
* | fix compilation on non-Windows platforms | Benjamin Peterson | 2009-01-02 | 1 | -0/+2 |
| | |||||
* | Issue #4075: Use OutputDebugStringW in Py_FatalError. | Martin v. Löwis | 2009-01-02 | 1 | -3/+17 |
| | |||||
* | welcome to 2009, Python! | Benjamin Peterson | 2009-01-01 | 1 | -1/+1 |
| | |||||
* | #4748 lambda generators shouldn't return values | Benjamin Peterson | 2008-12-27 | 1 | -1/+6 |
| | |||||
* | fix #4720: the format to PyArg_ParseTupleAndKeywords can now start with '|' | Benjamin Peterson | 2008-12-22 | 1 | -1/+1 |
| | |||||
* | Issue #2183: Simplify and optimize bytecode for list comprehensions. | Antoine Pitrou | 2008-12-17 | 3 | -29/+10 |
| | |||||
* | #4559: When a context manager's __exit__() method returns an object whose | Amaury Forgeot d'Arc | 2008-12-10 | 1 | -6/+13 |
| | | | | | | | conversion to bool raises an exception, 'with' loses that exception. Reviewed by Jeffrey Yasskin. Already ported to 2.5, will port to 2.6 and 3.0 | ||||
* | Issue 4597: Fix several cases in EvalFrameEx where an exception could be | Jeffrey Yasskin | 2008-12-08 | 1 | -3/+14 |
| | | | | "raised" without setting x, err, or why to let the eval loop know. | ||||
* | Issue #4461: Safety check in parsenumber (ast.c) | Mark Dickinson | 2008-12-05 | 1 | -0/+1 |
| | |||||
* | Speed up Python (according to pybench and 2to3-on-itself) by 1-2% by caching | Jeffrey Yasskin | 2008-12-03 | 1 | -1/+10 |
| | | | | | whether any thread has tracing turned on, which saves one load instruction in the fast_next_opcode path in PyEval_EvalFrameEx(). See issue 4477. | ||||
* | always check the return value of NEW_IDENTIFIER | Benjamin Peterson | 2008-11-25 | 1 | -20/+59 |
| | |||||
* | #3996: On Windows, PyOS_CheckStack is supposed to protect the interpreter from | Amaury Forgeot d'Arc | 2008-11-22 | 1 | -1/+1 |
| | | | | | | stack overflow. But doing this, it always crashes when the stack is nearly full. Reviewed by Martin von Loewis. Will backport to 2.6. | ||||
* | don't segfault when \N escapes are used and unicodedata fails to load | Benjamin Peterson | 2008-11-21 | 1 | -1/+2 |
| | | | | Fixes #4367 | ||||
* | check for assignment to __debug__ during AST generation | Benjamin Peterson | 2008-11-08 | 2 | -7/+3 |
| | | | | Also, give assignment to None a better error message | ||||
* | make sure the parser flags and passed onto the compiler | Benjamin Peterson | 2008-10-31 | 1 | -6/+12 |
| | | | | | This fixes "from __future__ import unicode_literals" in an exec statment See #4225 | ||||
* | move unprefixed error into .c file | Benjamin Peterson | 2008-10-30 | 1 | -0/+2 |
| | |||||
* | give a py3k warning when 'nonlocal' is used as a variable name | Benjamin Peterson | 2008-10-25 | 1 | -3/+8 |
| | |||||
* | fix compiler warning | Benjamin Peterson | 2008-10-19 | 1 | -1/+1 |
| | |||||
* | Fixed #4067 by implementing _attributes and _fields for the AST root node. | Armin Ronacher | 2008-10-19 | 1 | -0/+18 |
| | |||||
* | Fixed a couple more C99 comments and one occurence of inline. | Christian Heimes | 2008-10-02 | 1 | -3/+3 |
| | |||||
* | any platform without HAVE_LOG1P should have DBL_EPSILON in <float.h> | Andrew MacIntyre | 2008-09-22 | 1 | -0/+2 |
| | | | | | Part of source_os2emx.patch in issue 3868 Reviewed by Amaury Forgeot d'Arc | ||||
* | #3743: PY_FORMAT_SIZE_T is designed for the OS "printf" functions, not for | Amaury Forgeot d'Arc | 2008-09-10 | 1 | -1/+1 |
| | | | | | | | | | PyString_FromFormat which has an independent implementation, and uses "%zd". This makes a difference on win64, where printf needs "%Id" to display 64bit values. For example, queue.__repr__ was incorrect. Reviewed by Martin von Loewis. | ||||
* | Move test.test_support.catch_warning() to the warnings module, rename it | Brett Cannon | 2008-09-02 | 1 | -4/+10 |
| | | | | | | | | | | | catch_warnings(), and clean up the API. While expanding the test suite, a bug was found where a warning about the 'line' argument to showwarning() was not letting functions with '*args' go without a warning. Closes issue 3602. Code review by Benjamin Peterson. | ||||
* | Fix compilation when --without-threads is given #3683 | Benjamin Peterson | 2008-09-01 | 1 | -1/+4 |
| | | | | Reviewer: Georg Brandl, Benjamin Peterson | ||||
* | #3668: When PyArg_ParseTuple correctly parses a s* format, but raises an | Antoine Pitrou | 2008-08-29 | 1 | -15/+41 |
| | | | | | | | exception afterwards (for a subsequent parameter), the user code will not call PyBuffer_Release() and memory will leak. Reviewed by Amaury Forgeot d'Arc. | ||||
* | Issue #2534: speed up isinstance() and issubclass() by 50-70%, so as to | Antoine Pitrou | 2008-08-26 | 1 | -1/+0 |
| | | | | | | | | | | match Python 2.5 speed despite the __instancecheck__ / __subclasscheck__ mechanism. In the process, fix a bug where isinstance() and issubclass(), when given a tuple of classes as second argument, were looking up __instancecheck__ / __subclasscheck__ on the tuple rather than on each type object. Reviewed by Benjamin Peterson and Raymond Hettinger. | ||||
* | 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 |
| |