Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Bug #1674503: close the file opened by execfile() in an error condition. | Georg Brandl | 2007-03-06 | 2 | -2/+4 |
| | |||||
* | Patch #1672481: fix bug in idlelib.MultiCall. | Georg Brandl | 2007-03-06 | 1 | -0/+2 |
| | |||||
* | A test case for the fix in #1674228. | Georg Brandl | 2007-03-06 | 1 | -0/+11 |
| | |||||
* | Patch #1121142: Implement ZipFile.open. | Martin v. Löwis | 2007-03-06 | 4 | -49/+665 |
| | |||||
* | Patch #1671450: add a section about subclassing builtin types to the | Georg Brandl | 2007-03-06 | 3 | -1/+190 |
| | | | | "extending and embedding" tutorial. | ||||
* | Nit: a struct field is set to GenericAlloc, not GenericAlloc(). | Georg Brandl | 2007-03-06 | 1 | -1/+1 |
| | |||||
* | Patch #1674228: when assigning a slice (old-style), check for the | Georg Brandl | 2007-03-05 | 3 | -1/+18 |
| | | | | sq_ass_slice instead of the sq_slice slot. | ||||
* | Minor corrections to docs, and an explanation comentary | Facundo Batista | 2007-03-05 | 1 | -13/+14 |
| | |||||
* | Added Pete for 3101 too | Neal Norwitz | 2007-03-05 | 1 | -0/+3 |
| | |||||
* | note MacPorts/BerkDB change in setup.py | Skip Montanaro | 2007-03-04 | 1 | -0/+2 |
| | |||||
* | Teach setup.py how to find Berkeley DB on Macs using MacPorts. | Skip Montanaro | 2007-03-04 | 1 | -8/+10 |
| | |||||
* | Fix a bug in test_dict and test_userdict, found at the PyPy sprint. | Georg Brandl | 2007-03-04 | 2 | -6/+6 |
| | |||||
* | Bugs #1668032, #1668036, #1669304: clarify behavior of PyMem_Realloc and ↵ | Georg Brandl | 2007-03-02 | 1 | -2/+5 |
| | | | | _Resize. | ||||
* | Fix embarrassing typo and fix constantification of None | Raymond Hettinger | 2007-03-02 | 2 | -6/+15 |
| | |||||
* | Bug #1628895: some better tries to find HTML documentation in pydoc. | Georg Brandl | 2007-03-02 | 1 | -7/+12 |
| | |||||
* | Add NamedTuple | Andrew M. Kuchling | 2007-03-01 | 1 | -0/+16 |
| | |||||
* | Add Pat and Eric for work on PEP 3101 in the sandbox | Neal Norwitz | 2007-03-01 | 1 | -0/+3 |
| | |||||
* | Add collections.NamedTuple | Raymond Hettinger | 2007-03-01 | 4 | -3/+170 |
| | |||||
* | Prepare collections module for pure python code entries. | Raymond Hettinger | 2007-02-28 | 6 | -7/+10 |
| | |||||
* | Docstring nit. | Raymond Hettinger | 2007-02-28 | 1 | -1/+1 |
| | |||||
* | Add a test for instantiating SyntaxError with no arguments. | Brett Cannon | 2007-02-28 | 1 | -0/+3 |
| | |||||
* | Modify the segfaulting example to show why r53997 is not a solution to | Armin Rigo | 2007-02-28 | 1 | -0/+20 |
| | | | | it. | ||||
* | Add news about changes to metaclasses and __bases__ error checking. | Jeremy Hylton | 2007-02-27 | 1 | -0/+7 |
| | |||||
* | Add checking for a number of metaclass error conditions. | Jeremy Hylton | 2007-02-27 | 3 | -96/+197 |
| | | | | | | | | | | | | | | | | | | | | | | | We add some new rules that are required for preserving internal invariants of types. 1. If type (or a subclass of type) appears in bases, it must appear before any non-type bases. If a non-type base (like a regular new-style class) occurred first, it could trick type into allocating the new class an __dict__ which must be impossible. 2. There are several checks that are made of bases when creating a type. Those checks are now repeated when assigning to __bases__. We also add the restriction that assignment to __bases__ may not change the metaclass of the type. Add new tests for these cases and for a few other oddball errors that were no previously tested. Remove a crasher test that was fixed. Also some internal refactoring: Extract the code to find the most derived metaclass of a type and its bases. It is now needed in two places. Rewrite the TypeError checks in test_descr to use doctest. The tests now clearly show what exception they expect to see. | ||||
* | whitespace normalization | Jeremy Hylton | 2007-02-27 | 1 | -82/+82 |
| | |||||
* | tabify | Jeremy Hylton | 2007-02-27 | 2 | -2039/+2039 |
| | | | | | Note that ast.c still has a mix of tabs and spaces, because it attempts to use four-space indents for more of the new code. | ||||
* | tabify | Jeremy Hylton | 2007-02-27 | 1 | -97/+97 |
| | |||||
* | Fix long-standing bug in name mangling for package imports | Jeremy Hylton | 2007-02-27 | 2 | -2/+25 |
| | | | | Reported by Mike Verdone. | ||||
* | Add some items | Andrew M. Kuchling | 2007-02-26 | 1 | -2/+48 |
| | |||||
* | SF #1669182, 2.5 was already fixed. Just assert in 2.6 since string exceptions | Neal Norwitz | 2007-02-26 | 1 | -2/+3 |
| | | | | are gone. | ||||
* | Markup fix | Andrew M. Kuchling | 2007-02-26 | 1 | -2/+2 |
| | |||||
* | When printing an unraisable error, don't print exceptions. before the name. | Neal Norwitz | 2007-02-26 | 3 | -3/+7 |
| | | | | This duplicates the behavior whening normally printing exceptions. | ||||
* | Fix assertion. | Jeremy Hylton | 2007-02-26 | 1 | -2/+2 |
| | |||||
* | Do not copy free variables to locals in class namespaces. | Jeremy Hylton | 2007-02-26 | 3 | -19/+113 |
| | | | | | | | | | Fixes bug 1569356, but at the cost of a minor incompatibility in locals(). Add test that verifies that the class namespace is not polluted. Also clarify the behavior in the library docs. Along the way, cleaned up the dict_to_map and map_to_dict implementations and added some comments that explain what they do. | ||||
* | Fix a couple of problems in generating the AST code: | Neal Norwitz | 2007-02-26 | 2 | -171/+59 |
| | | | | | | * use %r instead of backticks since backticks are going away in Py3k * PyArena_Malloc() already sets PyErr_NoMemory so we don't need to do it again * the signature for ast2obj_int incorrectly used a bool, rather than a long | ||||
* | Fix typo. | Georg Brandl | 2007-02-26 | 1 | -1/+1 |
| | |||||
* | Add Steven Bethard to help out with patches. | Neal Norwitz | 2007-02-26 | 1 | -0/+3 |
| | |||||
* | Reformat long lines. | Jeremy Hylton | 2007-02-26 | 1 | -2/+4 |
| | |||||
* | Backport from Py3k branch: fix refleak in PyString_Format. | Georg Brandl | 2007-02-26 | 1 | -1/+5 |
| | |||||
* | Backported r51621 from p3yk: | Thomas Wouters | 2007-02-25 | 2 | -4/+4 |
| | | | | | | Don't use a fixed temporary name (gdbm). Don't use our own temp name creation (dbm). Should be backported to 2.5. | ||||
* | Variation of patch # 1624059 to speed up checking if an object is a subclass | Neal Norwitz | 2007-02-25 | 18 | -22/+61 |
| | | | | | | | | | | | | | | | | | | of some of the common builtin types. Use a bit in tp_flags for each common builtin type. Check the bit to determine if any instance is a subclass of these common types. The check avoids a function call and O(n) search of the base classes. The check is done in the various Py*_Check macros rather than calling PyType_IsSubtype(). All the bits are set in tp_flags when the type is declared in the Objects/*object.c files because PyType_Ready() is not called for all the types. Should PyType_Ready() be called for all types? If so and the change is made, the changes to the Objects/*object.c files can be reverted (remove setting the tp_flags). Objects/typeobject.c would also have to be modified to add conditions for Py*_CheckExact() in addition to each the PyType_IsSubtype check. | ||||
* | - SF patch #1657613: add documentation for the Element interface | Fred Drake | 2007-02-25 | 1 | -93/+163 |
| | | | | - clean up bogus use of the {datadescni} environment everywhere | ||||
* | Put declarations before code. | Jeremy Hylton | 2007-02-25 | 1 | -1/+1 |
| | |||||
* | Fix crash in exec when unicode filename can't be decoded. | Jeremy Hylton | 2007-02-25 | 2 | -0/+3 |
| | | | | | | | I can't think of an easy way to test this behavior. It only occurs when the file system default encoding and the interpreter default encoding are different, such that you can open the file but not decode its name. | ||||
* | Whitespace only changes | Neal Norwitz | 2007-02-25 | 1 | -3/+2 |
| | |||||
* | Add more details when releasing interned strings | Neal Norwitz | 2007-02-25 | 1 | -1/+8 |
| | |||||
* | Refactor PEP 352 tests to make it easier in the future to make sure certain | Brett Cannon | 2007-02-23 | 1 | -18/+34 |
| | | | | things cannot be raised or caught. | ||||
* | Fix typo in comment | Neal Norwitz | 2007-02-23 | 1 | -1/+1 |
| | |||||
* | Remove filler struct item and fix leak. | Raymond Hettinger | 2007-02-21 | 1 | -44/+40 |
| | |||||
* | Add itertools.izip_longest(). | Raymond Hettinger | 2007-02-21 | 4 | -0/+317 |
| |