Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix Issue 1045. | Raymond Hettinger | 2007-12-06 | 1 | -24/+3 |
| | | | | | Factor-out common calling code by simplifying the length_hint API. Speed-up the function by caching the PyObject_String for the attribute lookup. | ||||
* | Fix typo. | Georg Brandl | 2007-12-05 | 1 | -1/+1 |
| | |||||
* | Implement PEP 366 | Nick Coghlan | 2007-12-03 | 1 | -26/+86 |
| | |||||
* | Feature #1534 | Christian Heimes | 2007-12-01 | 1 | -0/+2 |
| | | | | | Added PyFloat_GetMax(), PyFloat_GetMin() and PyFloat_GetInfo() to the float API. Added a dictionary sys.float_info with information about the internal floating point type to the sys module. | ||||
* | Issue #1521: on 64bit platforms, str.decode fails on very long strings. | Amaury Forgeot d'Arc | 2007-11-30 | 1 | -3/+4 |
| | | | | | | The t# and w# formats were not correctly handled. Will backport. | ||||
* | Issue #1402: PyInterpreterState_Clear() may still invoke user code | Amaury Forgeot d'Arc | 2007-11-29 | 1 | -5/+5 |
| | | | | | | | | (in deallocation of running threads, for example), so the PyGILState_Release() function must still be functional. On the other hand, _PyGILState_Fini() only frees memory, and can be called later. Backport candidate, but only after some experts comment on it. | ||||
* | Expose Py_Py3kWarningFlag as sys.py3kwarning as discussed in #1504 | Christian Heimes | 2007-11-27 | 1 | -0/+2 |
| | | | | Also added a warning.warnpy3k() as convenient method for Python 3.x related deprecation warnings. | ||||
* | Added filename to compiling struct based on Martin's suggestion. | Christian Heimes | 2007-11-24 | 1 | -1/+3 |
| | | | | I'm wonder why I was trying to add the filename to the node all the time. The compiling struct is more obvious. | ||||
* | And yet another fix for the patch. Paul Moore has send me a note that I've ↵ | Christian Heimes | 2007-11-23 | 1 | -8/+9 |
| | | | | missed a declaration. The additional code has moved the declaration in the middle of the block. | ||||
* | How did the comment get there? | Christian Heimes | 2007-11-23 | 1 | -1/+1 |
| | |||||
* | Fixed problems in the last commit. Filenames and line numbers weren't ↵ | Christian Heimes | 2007-11-23 | 1 | -4/+8 |
| | | | | | | reported correctly. Backquotes still don't report the correct file. The AST nodes only contain the line number but not the file name. | ||||
* | Applied patch #1754273 and #1754271 from Thomas Glee | Christian Heimes | 2007-11-23 | 1 | -0/+4 |
| | | | | The patches are adding deprecation warnings for back ticks and <> | ||||
* | Backport of the PCbuild9 directory from the py3k branch. | Christian Heimes | 2007-11-22 | 1 | -1/+1 |
| | | | | | I've finished the last task for the PCbuild9 directory today. I don't think there is much left to do. Now you can all play around with the shiny new VS 2008 and try the PGO builds. I was able to get a speed improvement of about 10% on py3k. Have fun! :) | ||||
* | Patch #1739468: Directories and zipfiles containing __main__.py are now ↵ | Nick Coghlan | 2007-11-18 | 1 | -7/+20 |
| | | | | executable | ||||
* | Merge from py3k branch: | Amaury Forgeot d'Arc | 2007-11-13 | 1 | -7/+12 |
| | | | | | | | | | | | | | | | | | | | | | | Correction for issue1265 (pdb bug with "with" statement). When an unfinished generator-iterator is garbage collected, PyEval_EvalFrameEx is called with a GeneratorExit exception set. This leads to funny results if the sys.settrace function itself makes use of generators. A visible effect is that the settrace function is reset to None. Another is that the eventual "finally" block of the generator is not called. It is necessary to save/restore the exception around the call to the trace function. This happens a lot with py3k: isinstance() of an ABCMeta instance runs def __instancecheck__(cls, instance): """Override for isinstance(instance, cls).""" return any(cls.__subclasscheck__(c) for c in {instance.__class__, type(instance)}) which lets an opened generator expression each time it returns True. Backport candidate, even if the case is less frequent in 2.5. | ||||
* | Patch #1418: Make the AC_REPLACE_FUNCS object files actually work. | Martin v. Löwis | 2007-11-12 | 1 | -2/+1 |
| | |||||
* | Backport of Guido's review of my patch. | Christian Heimes | 2007-11-07 | 1 | -7/+5 |
| | |||||
* | Backported fix for bug #1392 from py3k branch r58903. | Christian Heimes | 2007-11-07 | 1 | -1/+19 |
| | |||||
* | Add build option for faster loop execution. | Raymond Hettinger | 2007-11-07 | 1 | -0/+11 |
| | |||||
* | Fix marshal's incorrect handling of subclasses of builtin types (backport ↵ | Raymond Hettinger | 2007-11-07 | 1 | -10/+10 |
| | | | | candidate). | ||||
* | Missing DECREFs | Raymond Hettinger | 2007-10-25 | 1 | -0/+2 |
| | |||||
* | Fixup error return and add support for intermixed ints and floats/ | Raymond Hettinger | 2007-10-24 | 1 | -1/+7 |
| | |||||
* | Optimize sum() for integer and float inputs. | Raymond Hettinger | 2007-10-24 | 1 | -0/+70 |
| | |||||
* | Fix Coverity 185-186: If the passed in FILE is NULL, uninitialized memory | Neal Norwitz | 2007-10-12 | 1 | -0/+2 |
| | | | | | | would be accessed. Will backport. | ||||
* | Fix Coverity #158: Check the correct variable. | Neal Norwitz | 2007-10-05 | 1 | -1/+1 |
| | |||||
* | Try harder to stay within the 79-column limit. There's still two places that ↵ | Thomas Wouters | 2007-09-20 | 1 | -44/+55 |
| | | | | go (way) over, but those are harder to fix without suffering in readability. | ||||
* | Whitespace cleanup. | Thomas Wouters | 2007-09-19 | 1 | -27/+27 |
| | |||||
* | Fix #1169: remove docstrings in functions for -OO. | Georg Brandl | 2007-09-19 | 1 | -1/+1 |
| | |||||
* | Fix a crasher where Python code managed to infinitely recurse in C code without | Brett Cannon | 2007-09-07 | 1 | -0/+8 |
| | | | | | | | ever going back out to Python code in PyObject_Call(). Required introducing a static RuntimeError instance so that normalizing an exception there is no reliance on a recursive call that would put the exception system over the recursion check itself. | ||||
* | Revert compile.c changes that shouldn't have been included in previous checkin | Nick Coghlan | 2007-08-25 | 1 | -7/+2 |
| | |||||
* | Revert misguided attempt at fixing incompatibility between -m and -i ↵ | Nick Coghlan | 2007-08-25 | 1 | -2/+7 |
| | | | | switches (better fix coming soon) | ||||
* | Second half of #1752175: #ifdef out references to PyImport_DynLoadFiletab if ↵ | Georg Brandl | 2007-08-23 | 1 | -1/+5 |
| | | | | HAVE_DYNAMIC_LOADING is not defined. | ||||
* | Fix compile.c so that it records 0.0 and -0.0 as separate constants in a code | Alex Martelli | 2007-08-22 | 1 | -1/+14 |
| | | | | | object's co_consts tuple; add a test to show that the previous behavior (where these two constants were "collapsed" into one) causes serious malfunctioning. | ||||
* | Revert accidental checkins from last commit. | Georg Brandl | 2007-08-21 | 1 | -10/+0 |
| | |||||
* | Demand version 2.5.1 since 2.5 has a bug with codecs.open context managers. | Georg Brandl | 2007-08-21 | 1 | -0/+10 |
| | |||||
* | Place #ifdef Py_USING_UNICODE around decode_unicode(). | Georg Brandl | 2007-08-06 | 1 | -0/+2 |
| | |||||
* | Handle errors when generating a warning. | Neal Norwitz | 2007-08-05 | 1 | -30/+31 |
| | | | | | | | | The value is always written to the returned pointer if getting it was successful, even if a warning causes an error. (This probably doesn't matter as the caller will probably discard the value.) Will backport. | ||||
* | PEP 3123: Provide forward compatibility with Python 3.0, while keeping | Martin v. Löwis | 2007-07-21 | 4 | -7/+4 |
| | | | | | backwards compatibility. Add Py_Refcnt, Py_Type, Py_Size, and PyVarObject_HEAD_INIT. | ||||
* | SF patch# 1755885 by Kurt Kaiser: show location of Unicode escape errors. | Guido van Rossum | 2007-07-18 | 1 | -2/+19 |
| | | | | (Slightly tweaked for style and refcounts.) | ||||
* | Add T_PYSSIZET in structmember.h: This can be used for | Walter Dörwald | 2007-06-13 | 1 | -0/+10 |
| | | | | | | | | | Py_ssize_t members. Simplify the implementation of UnicodeError objects: start and end attributes are now stored directly as Py_ssize_t members, which simplifies various get and set functions. | ||||
* | Patch #1733960: Allow T_LONGLONG to accept ints. | Martin v. Löwis | 2007-06-09 | 1 | -24/+18 |
| | | | | Will backport to 2.5. | ||||
* | Use macro version of GET_SIZE to avoid Coverity warning (#150) about a ↵ | Neal Norwitz | 2007-06-09 | 1 | -1/+1 |
| | | | | possible error. | ||||
* | Disallow function calls like foo(None=1). | Georg Brandl | 2007-06-07 | 1 | -0/+4 |
| | | | | Backport from py3k rev. 55708 by Guido. | ||||
* | Bug #1722484: remove docstrings again when running with -OO. | Georg Brandl | 2007-06-01 | 1 | -1/+2 |
| | |||||
* | Fix indentation (whitespace only). | Neal Norwitz | 2007-05-30 | 1 | -2/+2 |
| | |||||
* | Include <windows.h> after python.h, so that WINNT is properly set before ↵ | Kristján Valur Jónsson | 2007-05-26 | 1 | -1/+1 |
| | | | | windows.h is included. Fixes warnings in PC builds. | ||||
* | Add a bunch more deprecation warnings for builtins that are going away in 3.0 | Neal Norwitz | 2007-05-23 | 1 | -0/+24 |
| | |||||
* | Add -3 option to the interpreter to warn about features that are | Neal Norwitz | 2007-05-23 | 1 | -0/+5 |
| | | | | | | | deprecated and will be changed/removed in Python 3.0. This patch is mostly from Anthony. I tweaked some format and added a little doc. | ||||
* | Patch #1686487: you can now pass any mapping after '**' in function calls. | Georg Brandl | 2007-05-21 | 1 | -10/+29 |
| | |||||
* | Backport PEP 3110's new 'except' syntax to 2.6. | Collin Winter | 2007-05-18 | 2 | -3/+4 |
| |