Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Deprecate the compiler package for removal in 3.0. | Brett Cannon | 2008-05-10 | 1 | -2/+2 |
| | |||||
* | Another test for __future__ print_function. | Eric Smith | 2008-03-19 | 1 | -0/+11 |
| | |||||
* | Patch #2167 from calvin: Remove unused imports | Christian Heimes | 2008-02-23 | 1 | -1/+2 |
| | |||||
* | Patch #1031213: Decode source line in SyntaxErrors back to its original | Martin v. Löwis | 2007-09-04 | 1 | -0/+26 |
| | | | | source encoding. Will backport to 2.5. | ||||
* | Patch #1638243: the compiler package is now able to correctly compile | Georg Brandl | 2007-01-27 | 1 | -0/+31 |
| | | | | | a with statement; previously, executing code containing a with statement compiled by the compiler package crashed the interpreter. | ||||
* | Fix a bug in the ``compiler`` package that caused invalid code to be | Neil Schemenauer | 2006-08-16 | 1 | -0/+7 |
| | | | | generated for generator expressions. | ||||
* | Whitespace normalization. | Tim Peters | 2006-08-04 | 1 | -1/+1 |
| | |||||
* | Fix the 'compiler' package to generate correct code for MAKE_CLOSURE. | Neil Schemenauer | 2006-08-04 | 1 | -0/+13 |
| | | | | | | In the 2.5 development cycle, MAKE_CLOSURE as changed to take free variables as a tuple rather than as individual items on the stack. Closes patch #1534084. | ||||
* | Bug #1441397: The compiler module now recognizes module and function | Georg Brandl | 2006-07-29 | 1 | -0/+8 |
| | | | | docstrings correctly as it did in Python 2.4. | ||||
* | Test for correct compilation of try-except-finally stmt. | Georg Brandl | 2006-06-22 | 1 | -0/+15 |
| | | | | Test for correct lineno on list, tuple, dict literals. | ||||
* | Make use of new str.startswith/endswith semantics. | Georg Brandl | 2006-06-09 | 1 | -1/+1 |
| | | | | Occurences in email and compiler were ignored due to backwards compat requirements. | ||||
* | Bug #1385040: don't allow "def foo(a=1, b): pass" in the compiler package. | Georg Brandl | 2006-05-03 | 1 | -0/+3 |
| | |||||
* | Try to really fix the slow buildbots this time. | Neal Norwitz | 2006-04-28 | 1 | -0/+1 |
| | | | | | | Printing to stdout, doesn't mean the data was actually written. It depends on the buffering, so we need to flush. This will hopefully really fix the buildbots getting killed due to no output on the slow bots. | ||||
* | test_compile can be really long if we are using -u compiler. | Neal Norwitz | 2006-04-13 | 1 | -2/+11 |
| | | | | | | | | | This may be causing the debian sparc buildbot to fail. Print a little message to let the user ^w buildbot know it's still thinking. We may want to adjust the time period which is currently 5 minutes. Will backport. | ||||
* | Fix failure of test_compiler.py when compiling test_contextlib.py. | Guido van Rossum | 2006-03-02 | 1 | -1/+4 |
| | | | | | | The culprit was an expression-less yield -- the first apparently in the standard library. I added a unit test for this. Also removed the hack to force compilation of test_with.py. | ||||
* | Reformat the exception message by going through a list. | Martin v. Löwis | 2006-03-01 | 1 | -1/+3 |
| | |||||
* | Make failures in test cases print failing source file. | Martin v. Löwis | 2006-03-01 | 1 | -1/+5 |
| | |||||
* | Update the compiler package to compile the with-statement. | Guido van Rossum | 2006-02-28 | 1 | -1/+1 |
| | | | | Jeremy, please review! | ||||
* | Revert revision 41940: the test causes -uall to | Tim Peters | 2006-01-07 | 1 | -4/+1 |
| | | | | fail everywhere. | ||||
* | Add compiler test regarding optional arguments. | Georg Brandl | 2006-01-06 | 1 | -1/+4 |
| | |||||
* | Fix compiler test when run with -u (long mode) | Neal Norwitz | 2005-10-24 | 1 | -1/+1 |
| | |||||
* | Fix compiler.ast.flatten function so that it works on lists. | Neil Schemenauer | 2005-06-02 | 1 | -0/+5 |
| | |||||
* | Whitespace normalization. | Tim Peters | 2005-04-20 | 1 | -1/+1 |
| | |||||
* | Flush out support for ``class B(): pass`` syntax by adding support to the | Brett Cannon | 2005-04-09 | 1 | -0/+3 |
| | | | | | | 'parser' module and 'compiler' package. Closes patch #1176012. Thanks logistix. | ||||
* | test for fixedness of bug #1057835. | Michael W. Hudson | 2004-11-08 | 1 | -0/+2 |
| | | | | (thanks to Raymond for the prod). | ||||
* | Open source files in universal newlines mode. | Michael W. Hudson | 2004-10-11 | 1 | -1/+1 |
| | |||||
* | Whitespace normalization. | Tim Peters | 2004-09-12 | 1 | -4/+4 |
| | |||||
* | compiler.transformer: correct lineno attribute when possible | Jeremy Hylton | 2004-09-07 | 1 | -0/+59 |
| | | | | | | | | | | | | | | | | SF patch #1015989 The basic idea of this patch is to compute lineno attributes for all AST nodes. The actual implementation lead to a lot of restructing and code cleanup. The generated AST nodes now have an optional lineno argument to constructor. Remove the top-level asList(), since it didn't seem to serve any purpose. Add an __iter__ to ast nodes. Use isinstance() instead of explicit type tests. Change transformer to use the new lineno attribute, which replaces three lines of code with one. Use universal newlines so that we can get rid of special-case code for line endings. Use lookup_node() in a few more frequently called, but simple com_xxx methods(). Change string exception to class exception. | ||||
* | Change the strategy for coping with time intensive tests from | Raymond Hettinger | 2004-09-04 | 1 | -1/+5 |
| | | | | | | | | "all or none" to "all or some". This provides much greater test coverage without eating much time. It also makes it more likely that routine regression testing will unearth bugs. | ||||
* | Tell unittest that source files with "badsyntax" in their names should | Tim Peters | 2004-08-08 | 1 | -1/+5 |
| | | | | | raise SyntaxError. test_compiler passes now on WinXP, at least in a release-build non-O run. | ||||
* | Renamed locals to better reflect their meanings. | Tim Peters | 2004-08-08 | 1 | -6/+6 |
| | |||||
* | In verbose mode, display the name of each file before trying to compile | Tim Peters | 2004-08-08 | 1 | -1/+4 |
| | | | | | it. Else when this fails, there's no way to tell which file it was chewing on. | ||||
* | Whitespace normalization. | Tim Peters | 2004-08-08 | 1 | -3/+0 |
| | |||||
* | Add a trivial test for the compiler package, guarded by compiler resource. | Jeremy Hylton | 2004-08-07 | 1 | -0/+34 |
This test is insanely slow, so it requires a resource. On my machine, it also appears to dump core. I think the problem is a stack overflow, but haven't been able to confirm. |