Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Repair bizarre indentation created by VC 7.1. | Tim Peters | 2006-01-08 | 1 | -1/+1 |
| | |||||
* | alias_for_import_name(): Dueling compiler warnings ;-) | Tim Peters | 2006-01-08 | 1 | -1/+2 |
| | | | | | | | Squash new warnings from VC 7.1 about mixing signed and unsigned types in comparisons. I can see why `len` was changed to size_t here, but don't see why `i` was also changed. Change `i` back to int. | ||||
* | analyze_cells(): This no longer compiled under VC 7.1. | Tim Peters | 2006-01-08 | 1 | -1/+2 |
| | | | | Move declaration of local `flags` to top of block. | ||||
* | Fix icc warnings: conversion from "long" to "int" may lose significant bits | Neal Norwitz | 2006-01-08 | 2 | -15/+15 |
| | |||||
* | Fix icc warnings: strlen() returns size_t | Neal Norwitz | 2006-01-08 | 1 | -3/+2 |
| | |||||
* | Fix icc warnings: shadowing local variable (i) and complex is set but not ↵ | Neal Norwitz | 2006-01-07 | 1 | -3/+2 |
| | | | | used, so remove | ||||
* | Fix icc warnings: single bit fields should be unsigned, shadowing local ↵ | Neal Norwitz | 2006-01-07 | 1 | -16/+16 |
| | | | | variables | ||||
* | Fix icc warnings: shadowing local variables | Neal Norwitz | 2006-01-07 | 1 | -2/+1 |
| | |||||
* | svnversion_init(): Use standard layout for function defn. | Tim Peters | 2006-01-06 | 1 | -1/+2 |
| | |||||
* | Trimmed trailing whitespace. | Tim Peters | 2006-01-06 | 1 | -20/+20 |
| | |||||
* | Drop sys.build_number. Add sys.subversion. | Martin v. Löwis | 2006-01-05 | 1 | -2/+84 |
| | |||||
* | Fix a warning from gcc by adding a missed const qualifier. | Hye-Shik Chang | 2006-01-04 | 1 | -1/+1 |
| | |||||
* | Regenerate. | Martin v. Löwis | 2006-01-02 | 1 | -45/+45 |
| | |||||
* | Adjust usage of compiler_use_new_block to its return type. | Martin v. Löwis | 2006-01-02 | 1 | -2/+2 |
| | |||||
* | SF#1391872 | Fredrik Lundh | 2005-12-29 | 1 | -2/+2 |
| | | | | | Floating point literals don't work in non-US locale in 2.5. Patch and new locale tests by Hye-Shik Chang. | ||||
* | do_mkvalue(), 'I' and 'k' cases: squash legitimate | Tim Peters | 2005-12-24 | 1 | -2/+2 |
| | | | | | compiler warnings about mixing signed and unsigned types in comparisons. | ||||
* | const poisoning, spreading to fix new const warnings | Tim Peters | 2005-12-24 | 1 | -3/+3 |
| | | | | in _winreg.c. | ||||
* | Remove extra parens | Neal Norwitz | 2005-12-19 | 1 | -1/+1 |
| | |||||
* | Fix SF bug #1072182, problems with signed characters. | Neal Norwitz | 2005-12-19 | 3 | -6/+6 |
| | | | | Most of these can be backported. | ||||
* | Bug #889500, fix line number on SyntaxWarning for global declarations. | Neal Norwitz | 2005-12-19 | 1 | -7/+10 |
| | |||||
* | fixed compilation with an ordinary C89 compiler | Fredrik Lundh | 2005-12-18 | 2 | -4/+3 |
| | |||||
* | Fix Armin's bug 1333982. He found it, he didn't created it :-) | Neal Norwitz | 2005-12-18 | 1 | -9/+1 |
| | | | | | | | | | | This code generated a C assertion: assert 1, ([s for s in x] + [s for s in x]) pass assert was completely broken, it needed to use the proper block. compiler_use_block() is now no longer used, so remove it. | ||||
* | Fix compiler warnings | Neal Norwitz | 2005-12-18 | 1 | -2/+2 |
| | |||||
* | Handle more error conditions with SystemError | Neal Norwitz | 2005-12-18 | 1 | -8/+22 |
| | |||||
* | Fix Bug #1378022, UTF-8 files with a leading BOM crashed the interpreter. | Neal Norwitz | 2005-12-18 | 1 | -2/+2 |
| | | | | Needs backport. | ||||
* | Get float() to be more portable across platforms. Disable hex strings. | Neal Norwitz | 2005-12-18 | 1 | -48/+25 |
| | |||||
* | Set MemoryError when alloc fails | Neal Norwitz | 2005-12-18 | 1 | -3/+11 |
| | |||||
* | Wrap long lines in the grammar | Neal Norwitz | 2005-12-18 | 1 | -16/+17 |
| | |||||
* | Cleanup a bit and make things more consistent. | Neal Norwitz | 2005-12-18 | 2 | -142/+87 |
| | | | | | Don't double check for NULLs and don't initialize if not necessary. No functional changes. | ||||
* | Expose Subversion revision number (calculated via "svnversion .") to Python. | Barry Warsaw | 2005-12-18 | 1 | -0/+3 |
| | | | | | | | Add C API function Py_GetBuildNumber(), add it to the interactive prompt banner (i.e. Py_GetBuildInfo()), and add it as the sys.build_number attribute. The build number is a string instead of an int because it may contain a trailing 'M' if there are local modifications. | ||||
* | SF patch #1355913, PEP 341 - Unification of try/except and try/finally | Neal Norwitz | 2005-12-17 | 2 | -55/+81 |
| | | | | Modified since ast-arenas was implemented. | ||||
* | Merge from ast-arena. This reduces the code in Python/ast.c by ~300 lines, | Neal Norwitz | 2005-12-17 | 7 | -1164/+576 |
| | | | | simplifies a lot of error handling code, and fixes many memory leaks. | ||||
* | Fix an int/long mismatch identified here: | Neal Norwitz | 2005-12-15 | 1 | -1/+2 |
| | | | | | | | | http://www.tortall.net/mu/blog/2005/12/01 Pointed out from SF #1365916. Backport candidate. | ||||
* | SF #1373150, diffs in working copy after a build | Neal Norwitz | 2005-12-11 | 1 | -1/+1 |
| | | | | | | | | Strip off leading dots and slash so the generated files are the same regardless of whether you configure in the checkout directory or build. If anyone configures in a different directory, we might want a cleaner approach using os.path.*(). Hopefully this is good enough. | ||||
* | SF #1377897, Bus error in ast | Neal Norwitz | 2005-12-11 | 1 | -0/+5 |
| | | | | | | If a line had multiple semi-colons and ended with a semi-colon, we would loop too many times and access a NULL node. Exit the loop early if there are no more children. | ||||
* | SF #1370197, memory leak - ast_error_finish (in error conditions). | Neal Norwitz | 2005-12-11 | 1 | -2/+6 |
| | |||||
* | Add const to several API functions that take char *. | Jeremy Hylton | 2005-12-10 | 5 | -69/+67 |
| | | | | | | | | | | | | | | | | | | | In C++, it's an error to pass a string literal to a char* function without a const_cast(). Rather than require every C++ extension module to put a cast around string literals, fix the API to state the const-ness. I focused on parts of the API where people usually pass literals: PyArg_ParseTuple() and friends, Py_BuildValue(), PyMethodDef, the type slots, etc. Predictably, there were a large set of functions that needed to be fixed as a result of these changes. The most pervasive change was to make the keyword args list passed to PyArg_ParseTupleAndKewords() to be a const char *kwlist[]. One cast was required as a result of the changes: A type object mallocs the memory for its tp_doc slot and later frees it. PyTypeObject says that tp_doc is const char *; but if the type was created by type_new(), we know it is safe to cast to char *. | ||||
* | Simplify logic for handling import * | Neal Norwitz | 2005-12-06 | 1 | -6/+3 |
| | |||||
* | Reduce scope of feature | Neal Norwitz | 2005-12-06 | 1 | -2/+1 |
| | |||||
* | Remove unused macro, check is done elsewhere | Neal Norwitz | 2005-12-06 | 1 | -1/+0 |
| | |||||
* | Remove unnecessary extern variable | Neal Norwitz | 2005-12-05 | 1 | -2/+0 |
| | |||||
* | Patch #1350409: Port signal handling to VS 2005. | Martin v. Löwis | 2005-11-28 | 1 | -0/+17 |
| | |||||
* | Fix memory leaks | Neal Norwitz | 2005-11-27 | 1 | -5/+8 |
| | |||||
* | Fix a few more ref leaks. Backport candidate | Neal Norwitz | 2005-11-24 | 3 | -4/+8 |
| | |||||
* | bug #1281408: make Py_BuildValue work with unsigned longs and long longs | Georg Brandl | 2005-11-24 | 1 | -3/+20 |
| | |||||
* | Fix a few more memory leaks | Neal Norwitz | 2005-11-20 | 3 | -2/+14 |
| | | | | | Document more info about the benefits of configuring without pymalloc when running valgrind | ||||
* | Last batch of ref leaks in new AST code. | Neal Norwitz | 2005-11-19 | 2 | -29/+58 |
| | | | | | | Also converted a bunch of assert(0) to SystemError's. There are still printfs, etc that need to be cleaned up. | ||||
* | Correctly handle identifiers for anonymous scopes and align genexpr name ↵ | Nick Coghlan | 2005-11-16 | 1 | -11/+17 |
| | | | | with symtable.c | ||||
* | Bring handling of genexpr in line with other anonymous scope names | Nick Coghlan | 2005-11-16 | 1 | -4/+3 |
| | |||||
* | add more doc | Neal Norwitz | 2005-11-16 | 1 | -1/+22 |
| |