Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | #2358: add py3k warning to sys.exc_clear(). | Georg Brandl | 2008-03-21 | 1 | -1/+9 | |
| | ||||||
* | The filter() function does support a None argument in Py3.0. | Raymond Hettinger | 2008-03-19 | 1 | -7/+0 | |
| | ||||||
* | Issue #2400: Allow relative imports to "import *". | Martin v. Löwis | 2008-03-19 | 1 | -4/+0 | |
| | ||||||
* | Backport of the print function, using a __future__ import. | Eric Smith | 2008-03-18 | 3 | -4/+80 | |
| | | | | | | | | This work is substantially Anthony Baxter's, from issue 1633807. I just freshened it, made a few minor tweaks, and added the test cases. I also created issue 2412, which is to check for 2to3's behavior with the print function. I also added myself to ACKS. | |||||
* | Added a warning when -3 is enabled and None is passed to filter as the first ↵ | David Wolever | 2008-03-18 | 1 | -0/+7 | |
| | | | | argument. | |||||
* | Finish backporting new buffer API to Python 2.6. Left to do: memoryview ↵ | Travis E. Oliphant | 2008-03-18 | 1 | -0/+1 | |
| | | | | object and structmodule. But, these need to be finished in Python 3.0 first. No objects support the new buffer API in Python 2.6 as of yet, and except for the memoryview object, I don't think they will. | |||||
* | Issue #2341: Add a Py3k warning when raising an exception that doesn't | Guido van Rossum | 2008-03-18 | 1 | -0/+9 | |
| | | | | derive from BaseException. | |||||
* | Remove our implementation of memmove() and strerror(); both are in the C89 | Brett Cannon | 2008-03-18 | 2 | -44/+0 | |
| | | | | standard library. | |||||
* | Clean up the Py3k warnings for non-BaseException-subclasses a bit. We | Guido van Rossum | 2008-03-18 | 1 | -4/+6 | |
| | | | | | now don't warn for some corner cases that deserve a warning, rather than warning double or incorrectly for some other corner cases. | |||||
* | - Issue #2371: Add a Py3k warning when catching an exception that | Guido van Rossum | 2008-03-18 | 1 | -0/+27 | |
| | | | | doesn't derive from BaseException. | |||||
* | Finished backporting PEP 3127, Integer Literal Support and Syntax. | Eric Smith | 2008-03-17 | 1 | -6/+54 | |
| | | | | | | | | Added 0b and 0o literals to tokenizer. Modified PyOS_strtoul to support 0b and 0o inputs. Modified PyLong_FromString to support guessing 0b and 0o inputs. Renamed test_hexoct.py to test_int_literal.py and added binary tests. Added upper and lower case 0b, 0O, and 0X tests to test_int_literal.py | |||||
* | Reformated lines > 79 chars. | Eric Smith | 2008-03-17 | 1 | -8/+12 | |
| | | | | Deleted unused macro ISXDIGIT. | |||||
* | Issue 2264: empty float presentation type needs to have at least one digit ↵ | Eric Smith | 2008-03-17 | 1 | -17/+61 | |
| | | | | | | | | | past the decimal point. Added "Z" format_char to PyOS_ascii_formatd to support empty float presentation type. Renamed buf_size in PyOS_ascii_formatd to more accurately reflect it's meaning. Modified format.__float__ to use the new "Z" format as the default. Added test cases. | |||||
* | Handle memory allocation failure. Found by Adam Olsen | Neal Norwitz | 2008-03-15 | 1 | -2/+3 | |
| | ||||||
* | Add a warning for code like: | Neal Norwitz | 2008-03-15 | 1 | -0/+8 | |
| | | | | | | | | | | assert (0, 'message') An empty tuple does not create a warning. While questionable usage: assert (), 'message' should not display a warning. Tested manually. The warning message could be improved. Feel free to update it. | |||||
* | Speed up with statements by storing the __exit__ method on the stack instead ↵ | Nick Coghlan | 2008-03-07 | 3 | -39/+58 | |
| | | | | of in a temp variable (bumps the magic number for pyc files) | |||||
* | Issue#2238: some syntax errors from *args or **kwargs expressions | Amaury Forgeot d'Arc | 2008-03-05 | 1 | -0/+4 | |
| | | | | | | | | | | | | | | would give bogus error messages, because of untested exceptions:: >>> f(**g(1=2)) XXX undetected error Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: 'int' object is not iterable instead of the expected SyntaxError: keyword can't be an expression Will backport. | |||||
* | compile.c always emits END_FINALLY after WITH_CLEANUP, so predict that in | Jeffrey Yasskin | 2008-03-03 | 1 | -0/+2 | |
| | | | | ceval.c. This is worth about a .03-.04us speedup on a simple with block. | |||||
* | More copyright year and version number bumpsv2.6a1 | Barry Warsaw | 2008-03-01 | 1 | -1/+1 | |
| | ||||||
* | Patch #1691070 from Roger Upole: Speed up PyArg_ParseTupleAndKeywords() and ↵ | Christian Heimes | 2008-02-26 | 1 | -154/+109 | |
| | | | | | | improve error msg My tests don't show the promised speed up of 10%. The code is as fast as the old code for simple cases and slightly faster for complex cases with several of args and kwargs. But the patch simplifies the code, too. | |||||
* | Whitespace normalization | Neal Norwitz | 2008-02-26 | 1 | -6/+6 | |
| | ||||||
* | Fix indentation | Neal Norwitz | 2008-02-25 | 2 | -2/+2 | |
| | ||||||
* | Add a little info to the 3k deprecation warnings about what to use instead. | Neal Norwitz | 2008-02-24 | 1 | -4/+4 | |
| | | | | Suggested by Raymond Hettinger. | |||||
* | map(None, ...) is not supported in 3.0. | Neal Norwitz | 2008-02-24 | 1 | -3/+9 | |
| | ||||||
* | MS Windows doesn't have mode_t but stat.st_mode is defined as unsigned short. | Christian Heimes | 2008-02-23 | 1 | -0/+5 | |
| | ||||||
* | Issue #2051 and patch from Alexander Belopolsky: | Christian Heimes | 2008-02-23 | 2 | -15/+16 | |
| | | | | Permission for pyc and pyo files are inherited from the py file. | |||||
* | Removed duplicate Py_CHARMASK define. It's already defined in Python.h. | Eric Smith | 2008-02-23 | 1 | -8/+0 | |
| | ||||||
* | Patch #1759: Backport of PEP 3129 class decorators | Christian Heimes | 2008-02-23 | 5 | -1202/+1260 | |
| | | | | with some help from Georg | |||||
* | Added bin() builtin. I'm going to check in the tests in a seperate checkin, ↵ | Eric Smith | 2008-02-22 | 1 | -0/+13 | |
| | | | | because the builtin doesn't need to be ported to py3k, but the tests are missing in py3k and need to be merged there. | |||||
* | Trim leading zeros from a floating point exponent, per C99. See issue 1600. ↵ | Eric Smith | 2008-02-20 | 1 | -27/+127 | |
| | | | | As far as I know, this only affects Windows. Add float type 'n' to PyOS_ascii_formatd (see PEP 3101 for 'n' description). | |||||
* | Perform correct handling of stack overflow for windows: Catch the correct ↵ | Kristján Valur Jónsson | 2008-02-18 | 1 | -2/+8 | |
| | | | | exception code and reset the overflow condition when handled. | |||||
* | Backport of PEP 3101, Advanced String Formatting, from py3k. | Eric Smith | 2008-02-17 | 3 | -0/+47 | |
| | | | | | | | | | | | | | | | Highlights: - Adding PyObject_Format. - Adding string.Format class. - Adding __format__ for str, unicode, int, long, float, datetime. - Adding builtin format. - Adding ''.format and u''.format. - str/unicode fixups for formatters. The files in Objects/stringlib that implement PEP 3101 (stringdefs.h, unicodedefs.h, formatter.h, string_format.h) are identical in trunk and py3k. Any changes from here on should be made to trunk, and changes will propogate to py3k). | |||||
* | Deallocate content of the dict free list on interpreter shutdown | Christian Heimes | 2008-02-08 | 1 | -0/+1 | |
| | ||||||
* | Remove unnecessary curly braces around an int literal. | Brett Cannon | 2008-02-07 | 1 | -2/+2 | |
| | ||||||
* | Cast a struct to a void pointer so as to do a type-safe pointer comparison | Brett Cannon | 2008-02-07 | 1 | -3/+3 | |
| | | | | (mistmatch found by clang). | |||||
* | Change r60575 broke test_compile: | Amaury Forgeot d'Arc | 2008-02-05 | 1 | -0/+3 | |
| | | | | there is no need to emit co_lnotab item when both offsets are zeros. | |||||
* | #1750076: Debugger did not step on every iteration of a while statement. | Amaury Forgeot d'Arc | 2008-02-04 | 1 | -14/+15 | |
| | | | | | | | | | | | | The mapping between bytecode offsets and source lines (lnotab) did not contain an entry for the beginning of the loop. Now it does, and the lnotab can be a bit larger: in particular, several statements on the same line generate several entries. However, this does not bother the settrace function, which will trigger only one 'line' event. The lnotab seems to be exactly the same as with python2.4. | |||||
* | Patch #1953 | Christian Heimes | 2008-02-04 | 1 | -13/+34 | |
| | | | | | I implemented the function sys._compact_freelists() and C API functions PyInt_/PyFloat_CompactFreeList() to compact the pre-allocated blocks of ints and floats. They allow the user to reduce the memory usage of a Python process that deals with lots of numbers. The patch also renames sys._cleartypecache to sys._clear_type_cache | |||||
* | Fix refleak | Neal Norwitz | 2008-02-01 | 1 | -0/+1 | |
| | ||||||
* | Move __builtins__.trunc() to math.trunc() per | Jeffrey Yasskin | 2008-02-01 | 1 | -15/+0 | |
| | | | | | http://mail.python.org/pipermail/python-dev/2008-January/076626.html and issue 1965. | |||||
* | Issue #1678380. Fix a bug that identifies 0j and -0j when they appear | Mark Dickinson | 2008-01-31 | 1 | -12/+47 | |
| | | | | | in the same code unit. The fix is essentially the same as the fix for a previous bug identifying 0. and -0. | |||||
* | The previous change was causing a segfault after multiple calls to ↵ | Christian Heimes | 2008-01-30 | 1 | -3/+3 | |
| | | | | Py_Initialize() and Py_Finalize(). | |||||
* | Fixed some references leaks in sys. | Christian Heimes | 2008-01-30 | 2 | -21/+19 | |
| | ||||||
* | Removed unused var | Christian Heimes | 2008-01-30 | 1 | -1/+1 | |
| | ||||||
* | CallMethod is faster with a NULL third-argument than with an empty format ↵ | Raymond Hettinger | 2008-01-29 | 1 | -1/+1 | |
| | | | | string. | |||||
* | Removed unnecessary conditional (spotted by Neal Norwitz). | Raymond Hettinger | 2008-01-28 | 1 | -1/+1 | |
| | ||||||
* | Let marshal built-up sets and frozensets one element at a time (without ↵ | Raymond Hettinger | 2008-01-28 | 1 | -12/+8 | |
| | | | | creating an intermediate tuple). | |||||
* | static PyObject* variables should use PyString_InternFromString() instead of ↵ | Christian Heimes | 2008-01-28 | 1 | -2/+2 | |
| | | | | PyObject_FromString() to store a python string in a function level static var. | |||||
* | Added clear cache methods to clear the internal type lookup cache for ref ↵ | Christian Heimes | 2008-01-27 | 2 | -0/+16 | |
| | | | | leak test runs. | |||||
* | Reduce buffer size since we do not need 1k | Neal Norwitz | 2008-01-27 | 1 | -1/+1 | |
| |