summaryrefslogtreecommitdiffstats
path: root/Python
Commit message (Collapse)AuthorAgeFilesLines
* Refactor code for translating "power" nodes.Neil Schemenauer2005-10-251-91/+95
|
* Write a separate ast_for_testlist_gexp() function instead of overloadingNeil Schemenauer2005-10-251-62/+77
| | | | | ast_for_testlist(). Also, write a ast_for_class_bases() function and in the process fix a memory leak. Add some assertions.
* Ensure that compiler_exit_scope() is called as necessary to free memoryNeil Schemenauer2005-10-251-10/+18
| | | | | allocated by compiler_enter_scope(). Change return type for compiler_exit_scope() to be void.
* Do not pollute name block_ty, prefix with _Py_Neal Norwitz2005-10-241-3/+3
|
* Fix problem handling EXTENDED_ARGs from SF bug # 1333982Neal Norwitz2005-10-231-1/+30
|
* cleanup a bit and reuse instrsize (instruction size). working towards ↵Neal Norwitz2005-10-231-30/+24
| | | | fixing problems with EXTENDED_ARG
* Use PyErr_NoMemory() instead of rolling our own.Neal Norwitz2005-10-231-61/+54
| | | | Get rid of "int i" unused warnings from Python-ast.c which we are generating.
* Remove unnecessary local variable.Neil Schemenauer2005-10-231-3/+2
|
* Fix check_unoptimized() function. The only optimized namespaces areNeil Schemenauer2005-10-231-1/+1
| | | | | in function blocks. This elimiates spurious warnings about "import *" and related statements at the class level.
* Fix private name mangling. The symtable also must do mangles so thatNeil Schemenauer2005-10-232-18/+46
| | | | the scope of names can be correctly determined.
* Use PyTuple_Pack instead of Py_BuildValue.Neil Schemenauer2005-10-231-2/+1
|
* Fix arigo's funky LOAD_NAME bug: implicit globals inside classes haveNeil Schemenauer2005-10-231-1/+2
| | | | | historically been looked up using LOAD_NAME, not LOAD_GLOBAL. looked up by LOAD_NAME, not
* Don't stop generating code for import statements after the first "import as"Neil Schemenauer2005-10-231-2/+3
| | | | part. Fixes one bug from #1333982.
* Add an assert.Neil Schemenauer2005-10-231-0/+1
|
* Use <lamba> as the function name for lambdas (matches old compiler).Neil Schemenauer2005-10-211-1/+1
|
* Fix a bunch of imports to use code.h instead of compile.h.Jeremy Hylton2005-10-213-3/+0
| | | | Remove duplicate declarations from compile.h
* ANSI-C-ify the placement of local var declarations.Armin Rigo2005-10-213-9/+14
|
* the ast-branch changed the stack discipline of MAKE_CLOSURE, so we need toMichael W. Hudson2005-10-211-1/+3
| | | | bump MAGIC.
* Fix SF bug #1167751, Argument genexp corner caseNeal Norwitz2005-10-211-7/+15
| | | | | | | | | | | | | Incorrect code was generated for: foo(a = i for i in range(10)) This should have generated a SyntaxError. Fix the Grammar so it raises a SyntaxError and test it. I'm uncertain whether this should be backported. It makes something that was Syntactically valid invalid. However, the code would either be completely broken or do the wrong thing.
* Oops, "=" is not a comparison operatorNeal Norwitz2005-10-211-1/+0
|
* Fix some mods that got dropped from the AST mergeNeal Norwitz2005-10-211-2/+2
|
* Merge ast-branch to headJeremy Hylton2005-10-2013-6074/+9774
| | | | | | | | | | This change implements a new bytecode compiler, based on a transformation of the parse tree to an abstract syntax defined in Parser/Python.asdl. The compiler implementation is not complete, but it is in stable enough shape to run the entire test suite excepting two disabled tests.
* Fix SF bug #976608, Unhelpful error message when mtime of a module is -1Neal Norwitz2005-10-031-1/+5
| | | | Will backport.
* SF bug #887946, segfault if redirecting directoryNeal Norwitz2005-10-031-0/+9
| | | | | | | Also provide a warning if a directory is passed on the command line. Add minimal command line test. Will backport.
* - Fix segfault with invalid coding.Neal Norwitz2005-10-021-1/+1
| | | | | | | - SF Bug #772896, unknown encoding results in MemoryError, which is not helpful I will only backport the segfault fix. I'll let Anthony decide if he wants the other changes backported. I will do the backport if asked.
* Forward port bugfix:Michael W. Hudson2005-09-301-0/+4
| | | | | | [ 1307978 ] Unsatisfied symbols: _PyGILState_NoteThreadState (code) (note that this only happens in a threads-disabled build).
* Convert iterator __len__() methods to a private API.Raymond Hettinger2005-09-241-3/+3
|
* clean-up tracing of C functions. In particular, don't call the trace funcArmin Rigo2005-09-201-26/+31
| | | | with an exception currently set!
* Removed a check "if (args != NULL)" which is always True and makes no sense.Armin Rigo2005-09-201-5/+3
|
* Don't call memset() before checking that the ptr is not NULL.Armin Rigo2005-09-201-1/+1
|
* patch [ 1119423 ] python -c readlink()s and stat()s '-c'Georg Brandl2005-09-151-3/+3
|
* bug [ 868706 ] Calling builtin function 'eval' from C causes seg fault.Georg Brandl2005-09-151-0/+7
|
* Complete format code support in getargs.c::skipitem(), which is called whenGeorg Brandl2005-09-141-59/+39
| | | | evaluating keyword arguments.
* - Changes donated by Elemental Security to make it work on AIX 5.3Guido van Rossum2005-09-141-0/+12
| | | | | with IBM's 64-bit compiler (SF patch #1284289). This also closes SF bug #105470: test_pwd fails on 64bit system (Opteron).
* - Changes donated by Elemental Security to make it work on HP-UX 11 onGuido van Rossum2005-09-141-0/+14
| | | | Itanium2 with HP's 64-bit compiler (SF patch #1225212).
* Patch #1290454: Fix reload() error message when parent module is not inGeorg Brandl2005-09-141-2/+3
| | | | sys.modules.
* Whitespace normalization.Georg Brandl2005-08-311-7/+7
|
* Disallow keyword arguments for type constructors that don't use them.Georg Brandl2005-08-261-0/+26
| | | | (fixes bug #1119418)
* Forward UnicodeDecodeError into SyntaxError for source encoding errors.Martin v. Löwis2005-08-241-5/+7
| | | | Will backport to 2.4.
* SF bug #1242657: list(obj) can swallow KeyboardInterruptRaymond Hettinger2005-08-211-0/+12
| | | | | | Fix over-aggressive PyErr_Clear(). The same code fragment appears in various guises in list.extend(), map(), filter(), zip(), and internally in PySequence_Tuple().
* Add a C API for sets and frozensets.Raymond Hettinger2005-08-161-4/+2
|
* Port from the Python 2.4 branch, patches for SF bug # 900092,Barry Warsaw2005-08-151-8/+14
| | | | hotshot.stats.load.
* com_yield_expr(): Squash new compiler wng about unreferenced local.Tim Peters2005-08-031-1/+0
|
* PEP 342 implementation. Per Guido's comments, the generator throw()Phillip J. Eby2005-08-024-126/+212
| | | | | method still needs to support string exceptions, and allow None for the third argument. Documentation updates are needed, too.
* * Improve code for the empty frozenset singleton:Raymond Hettinger2005-08-011-0/+1
| | | | | | | | | | | - Handle both frozenset() and frozenset([]). - Do not use singleton for frozenset subclasses. - Finalize the singleton. - Add test cases. * Factor-out set_update_internal() from set_update(). Simplifies the code for several internal callers. * Factor constant expressions out of loop in set_merge_internal(). * Minor comment touch-ups.
* Fix cleanup DECREF logic in builtin_filter function.Georg Brandl2005-07-191-6/+6
|
* bug 1234979 additionGeorg Brandl2005-07-091-2/+2
|
* bug [ 1234979 ] Lock.acquire treats only 1 as TrueGeorg Brandl2005-07-081-1/+1
|
* Fix signedness of various char variables to stop causing a warning under gcc 4.Brett Cannon2005-06-253-12/+12
|
* Add comments about PyThreadState and the usage of its fields.Brett Cannon2005-06-251-0/+4
|