summaryrefslogtreecommitdiffstats
path: root/Python
Commit message (Collapse)AuthorAgeFilesLines
* Issue 5619: Pass MS CRT debug flags into subprocessesJesse Noller2009-03-311-0/+2
|
* Add check for PyDict_Update() error.Jeremy Hylton2009-03-311-1/+2
|
* Global statements from one function leaked into parallel functions.Jeremy Hylton2009-03-311-22/+101
| | | | | | | | | | | | | Re http://bugs.python.org/issue4315 The symbol table used the same name dictionaries to recursively analyze each of its child blocks, even though the dictionaries are modified during analysis. The fix is to create new temporary dictionaries via the analyze_child_block(). The only information that needs to propagate back up is the names of the free variables. Add more comments and break out a helper function. This code doesn't get any easier to understand when you only look at it once a year.
* Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.Mark Dickinson2009-03-203-39/+112
| | | | Backport of r70459.
* fix strange errors when setting attributes on tracebacks #4034Benjamin Peterson2009-03-181-14/+8
|
* Make marshalling errors a little more informative as to what went wrongNick Coghlan2009-03-151-13/+13
|
* Require implementations for warnings.showwarning() support the 'line' argument.Brett Cannon2009-03-111-49/+17
| | | | | | Was a DeprecationWarning for not supporting it since Python 2.6. Closes issue #3652.
* Backport r69961 to trunk, replacing JUMP_IF_{TRUE,FALSE} withJeffrey Yasskin2009-02-284-106/+164
| | | | | | POP_JUMP_IF_{TRUE,FALSE} and JUMP_IF_{TRUE,FALSE}_OR_POP. This avoids executing a POP_TOP on each conditional and sometimes allows the peephole optimizer to skip a JUMP_ABSOLUTE entirely. It speeds up list comprehensions significantly.
* Issue 5176: special-case string formatting in BINARY_MODULO implementation. ↵Collin Winter2009-02-201-1/+4
| | | | This shows a modest (1-3%) speed-up in templating systems, for example.
* Issue #4575: fix Py_IS_INFINITY macro to work correctly on x87 FPUs.Mark Dickinson2009-02-091-0/+13
| | | | It now forces its argument to double before testing for infinity.
* Silence 'arg may be used uninitialized in this function' warning from gcc.Mark Dickinson2009-02-081-1/+1
|
* Implement issue #4285, convert sys.version_info to a namedEric Smith2009-02-061-20/+79
| | | | tuple. Patch by Ross Light.
* Issue 1242657: list(obj) can swallow KeyboardInterrupt.Raymond Hettinger2009-02-021-0/+2
|
* more flags which only work for function blocksBenjamin Peterson2009-01-311-6/+4
|
* add explanatory commentBenjamin Peterson2009-01-311-0/+2
|
* On Windows, use the Python 'Activation Context' when loading extensionsMark Hammond2009-01-271-1/+9
| | | | to avoid problems loading the CRT from a private assembly. Via bug 4566.
* fix building the core with --disable-unicodeBenjamin Peterson2009-01-252-4/+20
| | | | | I changed some bytearray methods to use strings instead of unicode like bytes_repr Also, bytearray.fromhex() can take strings as well as unicode
* allow unicode keyword arguments for the ** syntax #4978Benjamin Peterson2009-01-201-12/+33
|
* #4077: No need to append \n when calling Py_FatalErrorAmaury Forgeot d'Arc2009-01-172-2/+2
| | | | + fix a declaration to make it match the one in pythonrun.h
* Issue #4893: Use NT threading on CE.Martin v. Löwis2009-01-122-7/+26
|
* Issue #4915: Port sysmodule to Windows CE.Martin v. Löwis2009-01-121-3/+12
|
* Issue #4279: Fix build of parsermodule under Cygwin.Martin v. Löwis2009-01-111-0/+1
|
* Issue 4906: Preserve windows error state across PyThread_get_key_valueKristján Valur Jónsson2009-01-101-1/+10
|
* Issue 4293: Make Py_AddPendingCall() thread safeKristján Valur Jónsson2009-01-091-22/+146
|
* Issue 3677: Fix import from UNC paths on Windows.Kristján Valur Jónsson2009-01-091-15/+19
|
* Issue 3582. Improved thread support and TLS for WindowsKristján Valur Jónsson2009-01-091-65/+91
|
* Issue #1180193: When importing a module from a .pyc (or .pyo) file withAntoine Pitrou2009-01-061-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öwis2009-01-032-28/+0
|
* fix compilation on non-Windows platformsBenjamin Peterson2009-01-021-0/+2
|
* Issue #4075: Use OutputDebugStringW in Py_FatalError.Martin v. Löwis2009-01-021-3/+17
|
* welcome to 2009, Python!Benjamin Peterson2009-01-011-1/+1
|
* #4748 lambda generators shouldn't return valuesBenjamin Peterson2008-12-271-1/+6
|
* fix #4720: the format to PyArg_ParseTupleAndKeywords can now start with '|'Benjamin Peterson2008-12-221-1/+1
|
* Issue #2183: Simplify and optimize bytecode for list comprehensions.Antoine Pitrou2008-12-173-29/+10
|
* #4559: When a context manager's __exit__() method returns an object whoseAmaury Forgeot d'Arc2008-12-101-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 beJeffrey Yasskin2008-12-081-3/+14
| | | | "raised" without setting x, err, or why to let the eval loop know.
* Issue #4461: Safety check in parsenumber (ast.c)Mark Dickinson2008-12-051-0/+1
|
* Speed up Python (according to pybench and 2to3-on-itself) by 1-2% by cachingJeffrey Yasskin2008-12-031-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_IDENTIFIERBenjamin Peterson2008-11-251-20/+59
|
* #3996: On Windows, PyOS_CheckStack is supposed to protect the interpreter fromAmaury Forgeot d'Arc2008-11-221-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 loadBenjamin Peterson2008-11-211-1/+2
| | | | Fixes #4367
* check for assignment to __debug__ during AST generationBenjamin Peterson2008-11-082-7/+3
| | | | Also, give assignment to None a better error message
* make sure the parser flags and passed onto the compilerBenjamin Peterson2008-10-311-6/+12
| | | | | This fixes "from __future__ import unicode_literals" in an exec statment See #4225
* move unprefixed error into .c fileBenjamin Peterson2008-10-301-0/+2
|
* give a py3k warning when 'nonlocal' is used as a variable nameBenjamin Peterson2008-10-251-3/+8
|
* fix compiler warningBenjamin Peterson2008-10-191-1/+1
|
* Fixed #4067 by implementing _attributes and _fields for the AST root node.Armin Ronacher2008-10-191-0/+18
|
* Fixed a couple more C99 comments and one occurence of inline.Christian Heimes2008-10-021-3/+3
|
* any platform without HAVE_LOG1P should have DBL_EPSILON in <float.h>Andrew MacIntyre2008-09-221-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 forAmaury Forgeot d'Arc2008-09-101-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.