Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Teach Python/ceval.c's inlining of 'str += str' about Py_ssize_t sizes; this | Thomas Wouters | 2006-04-19 | 1 | -2/+2 |
| | | | | was having funny effects when called on >2Gb strings ;P | ||||
* | Change those parts of the Python-api that were functions in 2.4, and | Thomas Heller | 2006-04-18 | 1 | -4/+96 |
| | | | | | | are now macros to exported functions again. Fixes [ 1465834 ] bdist_wininst preinstall script support is broken in 2.5a1. | ||||
* | Refactor: Move code that uses co_lnotab from ceval to codeobject | Jeremy Hylton | 2006-04-18 | 1 | -117/+14 |
| | |||||
* | Remove types from type_list if they have no objects | Martin v. Löwis | 2006-04-18 | 1 | -2/+9 |
| | | | | | and unlist_types_without_objects is set. Give dump_counts a FILE* argument. | ||||
* | C++ compiler cleanup: cast... | Skip Montanaro | 2006-04-18 | 1 | -2/+2 |
| | |||||
* | C++ compiler cleanup: extern "C" a couple declarations, cast int to size_t | Skip Montanaro | 2006-04-18 | 1 | -1/+9 |
| | |||||
* | C++ compiler cleanup: migrate to modsupport.h | Skip Montanaro | 2006-04-18 | 1 | -3/+0 |
| | |||||
* | This patches fixes a number of byteorder problems in MacOSX specific code. | Ronald Oussoren | 2006-04-17 | 1 | -2/+6 |
| | |||||
* | moduleName can be NULL | Neal Norwitz | 2006-04-17 | 1 | -1/+1 |
| | |||||
* | Add missing DECREF to PyErr_WriteUnraisable(). That function reports | Thomas Wouters | 2006-04-15 | 1 | -0/+1 |
| | | | | | | | | | | | exceptions that can't be raised any further, because (for instance) they occur in __del__ methods. The coroutine tests in test_generators was triggering this leak. Remove the leakers' testcase, and add a simpler testcase that explicitly tests this leak to test_generators. test_generators now no longer leaks at all, on my machine. This fix may also solve other leaks, but my full refleakhunting run is still busy, so who knows? | ||||
* | Use Py_VISIT in all tp_traverse methods, instead of traversing manually or | Thomas Wouters | 2006-04-15 | 1 | -9/+3 |
| | | | | | | | | using a custom, nearly-identical macro. This probably changes how some of these functions are compiled, which may result in fractionally slower (or faster) execution. Considering the nature of traversal, visiting much of the address space in unpredictable patterns, I'd argue the code readability and maintainability is well worth it ;P | ||||
* | Zap ZAP. | Martin v. Löwis | 2006-04-15 | 1 | -25/+18 |
| | |||||
* | Use Py_CLEAR instead of in-place DECREF/XDECREF or custom macros, for | Thomas Wouters | 2006-04-15 | 1 | -4/+2 |
| | | | | tp_clear methods. | ||||
* | Fix sys.getobjects(0): we get a reference to the | Martin v. Löwis | 2006-04-15 | 1 | -0/+3 |
| | | | | | arena's "private" list of objects, so there might be two references to that list. | ||||
* | Make Py_BuildValue, PyObject_CallFunction and | Martin v. Löwis | 2006-04-14 | 3 | -25/+73 |
| | | | | PyObject_CallMethod aware of PY_SSIZE_T_CLEAN. | ||||
* | SF Bug #1454485, array.array('u') could crash the interpreter when | Neal Norwitz | 2006-04-14 | 1 | -5/+2 |
| | | | | | | | | passing a string. Martin already fixed the actual crash by ensuring Py_UNICODE is unsigned. As discussed on python-dev, this fix removes the possibility of creating a unicode string from a raw buffer. There is an outstanding question of how to fix the crash in 2.4. | ||||
* | ALIGNMENT_SHIFT is not used | Neal Norwitz | 2006-04-14 | 1 | -1/+0 |
| | |||||
* | Force 8-alignment of memory blocks, as needed on | Martin v. Löwis | 2006-04-13 | 1 | -1/+8 |
| | | | | 64-bit machines that require pointers to be aligned (e.g. IA64) | ||||
* | Fix type errors. | Martin v. Löwis | 2006-04-13 | 1 | -2/+2 |
| | |||||
* | Introduce asdl_int_seq, to hold cmpop_ty. | Martin v. Löwis | 2006-04-13 | 4 | -18/+27 |
| | |||||
* | revert - breaks build of Python/ast.c w/ gcc | Skip Montanaro | 2006-04-13 | 1 | -2/+5 |
| | |||||
* | Use union to discriminate pointer types from enum/int types. | Skip Montanaro | 2006-04-13 | 1 | -5/+2 |
| | |||||
* | Add a test for Py_ssize_t. Correct typo in getargs.c. | Georg Brandl | 2006-04-13 | 1 | -2/+2 |
| | |||||
* | Replace INT_MAX with PY_SSIZE_T_MAX. | Martin v. Löwis | 2006-04-13 | 3 | -9/+8 |
| | |||||
* | spread the extern "C" { } magic pixie dust around. Python itself builds now | Anthony Baxter | 2006-04-13 | 6 | -0/+55 |
| | | | | | using a C++ compiler. Still lots and lots of errors in the modules built by setup.py, and a bunch of warnings from g++ in the core. | ||||
* | casting nastiness to make C++ compiler happy | Anthony Baxter | 2006-04-13 | 1 | -2/+10 |
| | |||||
* | Ignore the references to the dummy objects used as deleted keys | Armin Rigo | 2006-04-12 | 2 | -4/+3 |
| | | | | in dicts and sets when computing the total number of references. | ||||
* | avoid C++ name mangling for the _Py.*SizeT functions | Anthony Baxter | 2006-04-12 | 1 | -0/+6 |
| | |||||
* | Make symtable.c safe for C++ compilers. Changed macros in the same way as | Anthony Baxter | 2006-04-12 | 1 | -11/+13 |
| | | | | compile.c to add a cast. | ||||
* | per Jeremy's email, remove the _WITH_CAST versions of macros. g++ | Anthony Baxter | 2006-04-12 | 1 | -46/+24 |
| | | | | | still has errors from the casts of asdl_seq_GET to cmpop_ty, but otherwise it's C++ clean. | ||||
* | Part two of the fix for SF bug #1466641: Regenerate graminit.c and add test | Thomas Wouters | 2006-04-12 | 1 | -2/+2 |
| | | | | for the bogus failure. | ||||
* | Some more changes to make code compile under a C++ compiler. | Anthony Baxter | 2006-04-11 | 1 | -1/+1 |
| | |||||
* | more low-hanging fruit to make code compile under a C++ compiler. Not | Anthony Baxter | 2006-04-11 | 4 | -68/+100 |
| | | | | | entirely happy with the two new VISIT macros in compile.c, but I couldn't see a better approach. | ||||
* | Convert 0 to their respective enum types. Convert | Martin v. Löwis | 2006-04-11 | 1 | -11/+11 |
| | | | | | void* to their respective _ty types. Fix signature of ast_for_exprlist. | ||||
* | Regenerate. | Martin v. Löwis | 2006-04-11 | 1 | -2/+0 |
| | |||||
* | Make _kind types global for C++ compilation. | Martin v. Löwis | 2006-04-11 | 1 | -1/+1 |
| | | | | Explicitly cast void* to int to cmpop_ty. | ||||
* | low-hanging fruit in Python/ - g++ still hates all the enum_kind declarations | Anthony Baxter | 2006-04-11 | 4 | -22/+24 |
| | | | | in Python/Python-ast.c. Not sure what to do about those. | ||||
* | SF Patch #1463867: Improved generator finalization to allow generators | Phillip J. Eby | 2006-04-10 | 1 | -0/+3 |
| | | | | | | | | that are suspended outside of any try/except/finally blocks to be garbage collected even if they are part of a cycle. Generators that suspend inside of an active try/except or try/finally block (including those created by a ``with`` statement) are still not GC-able if they are part of a cycle, however. | ||||
* | Use PyObject_* allocator since FutureFeatures is small | Neal Norwitz | 2006-04-10 | 2 | -3/+3 |
| | |||||
* | Fix some warnings on HP-UX when using cc/aCC | Neal Norwitz | 2006-04-10 | 1 | -4/+7 |
| | |||||
* | Regenerate. | Martin v. Löwis | 2006-04-07 | 1 | -1/+1 |
| | |||||
* | Fix refleak in __import__("") (probably the cause of the 2 refleaks in | Thomas Wouters | 2006-04-05 | 1 | -0/+2 |
| | | | | test_builtin.) | ||||
* | Fix __import__("") to raise ValueError rather than return None. | Thomas Wouters | 2006-04-04 | 1 | -1/+10 |
| | |||||
* | Generate line number table entries for except handlers. | Jeremy Hylton | 2006-04-04 | 1 | -0/+2 |
| | | | | Re-enable all the tests in test_trace.py except one. Still not sure that these tests test what they used to test, but they pass. One failing test seems to be caused by undocumented line number table behavior in Python 2.4. | ||||
* | Disable .DLL as an extension for extension modules. | Martin v. Löwis | 2006-04-04 | 1 | -0/+6 |
| | |||||
* | Add lineno, col_offset to excephandler to enable future fix for | Jeremy Hylton | 2006-04-04 | 2 | -31/+66 |
| | | | | | | | | | | | | | | | tracing/line number table in except blocks. Reflow long lines introduced by col_offset changes. Update test_ast to handle new fields in excepthandler. As note in Python.asdl says, we might want to rethink how attributes are handled. Perhaps they should be the same as other fields, with the primary difference being how they are defined for all types within a sum. Also fix asdl_c so that constructors with int fields don't fail when passed a zero value. | ||||
* | Bug #1421664: Set sys.stderr.encoding | Martin v. Löwis | 2006-04-03 | 2 | -0/+15 |
| | |||||
* | Don't abbreviate ABS, use long name ABSOLUTE. | Neal Norwitz | 2006-04-03 | 2 | -4/+4 |
| | |||||
* | * Fix a refleak of *_attributes. | Neal Norwitz | 2006-04-03 | 1 | -144/+146 |
| | | | | | | * Cleanup formatting a bit (add spaces). * Move static var initialized inside init_types() since that's the only place it's used. | ||||
* | Accept keyword arguments for __import__ and doc the addition of the level ↵ | Neal Norwitz | 2006-04-03 | 1 | -6/+11 |
| | | | | param from PEP 328. |