Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix mismatch opening and closing quotes on a string. | Brett Cannon | 2006-03-02 | 1 | -2/+1 |
| | |||||
* | Fix failure of test_compiler.py when compiling test_contextlib.py. | Guido van Rossum | 2006-03-02 | 2 | -4/+7 |
| | | | | | | 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 |
| | |||||
* | Whitespace normalization. | Tim Peters | 2006-03-01 | 1 | -1/+1 |
| | |||||
* | Patch #1440601: Add col_offset attribute to AST nodes. | Martin v. Löwis | 2006-03-01 | 1 | -42/+67 |
| | |||||
* | Make failures in test cases print failing source file. | Martin v. Löwis | 2006-03-01 | 1 | -1/+5 |
| | |||||
* | Fix a bug in nested() - if one of the sub-context-managers swallows the | Guido van Rossum | 2006-03-01 | 2 | -1/+58 |
| | | | | exception, it should not be propagated up. With unit tests. | ||||
* | Set svn:eol-style to native. | Tim Peters | 2006-03-01 | 5 | -281/+281 |
| | |||||
* | Fix parsing of exception_hierarchy.txt when a platform-specific exception is | Brett Cannon | 2006-03-01 | 1 | -0/+1 |
| | | | | specified. Hopefully this wll bring warming to Tim's Windows-loving heart. | ||||
* | Remove redundant isinstance() check. | Thomas Wouters | 2006-03-01 | 1 | -1/+1 |
| | |||||
* | PEP 352 implementation. Creates a new base class, BaseException, which has an | Brett Cannon | 2006-03-01 | 8 | -38/+239 |
| | | | | | | | | | added message attribute compared to the previous version of Exception. It is also a new-style class, making all exceptions now new-style. KeyboardInterrupt and SystemExit inherit from BaseException directly. String exceptions now raise DeprecationWarning. Applies patch 1104669, and closes bugs 1012952 and 518846. | ||||
* | Regenerate. | Thomas Wouters | 2006-02-28 | 1 | -0/+2 |
| | |||||
* | Updates to the with-statement: | Guido van Rossum | 2006-02-28 | 7 | -87/+506 |
| | | | | | | | | | | | | | | | | - New semantics for __exit__() -- it must re-raise the exception if type is not None; the with-statement itself doesn't do this. (See the updated PEP for motivation.) - Added context managers to: - file - thread.LockType - threading.{Lock,RLock,Condition,Semaphore,BoundedSemaphore} - decimal.Context - Added contextlib.py, which defines @contextmanager, nested(), closing(). - Unit tests all around; bot no docs yet. | ||||
* | Add a note about removing the file once the bug is fixed | Neal Norwitz | 2006-02-28 | 1 | -1/+2 |
| | |||||
* | Make __future__ features similar for with and absolute import since they ↵ | Neal Norwitz | 2006-02-28 | 1 | -2/+2 |
| | | | | were both added before a1 | ||||
* | Gave README a .txt extension. | Tim Peters | 2006-02-28 | 1 | -0/+0 |
| | |||||
* | from __future__ import with_statement addon for 'with', mostly written by | Thomas Wouters | 2006-02-28 | 3 | -1/+10 |
| | | | | Neal. | ||||
* | Add directory which contains known ref leaks. Some of these are likely to ↵ | Neal Norwitz | 2006-02-28 | 4 | -0/+52 |
| | | | | be system dependent (like test_gestalt). | ||||
* | Set EOL style to native. | Tim Peters | 2006-02-28 | 4 | -811/+811 |
| | |||||
* | Whitespace normalization. | Tim Peters | 2006-02-28 | 6 | -819/+816 |
| | |||||
* | Instead of printing the exception when you interrupt a test (Ctrl-C), | Neal Norwitz | 2006-02-28 | 1 | -1/+9 |
| | | | | print the status so far and suppress printing the exception (but still exit). | ||||
* | Update comments | Neal Norwitz | 2006-02-28 | 1 | -1/+2 |
| | |||||
* | Test case to cover subscription bug from SF 1333982 | Jeremy Hylton | 2006-02-28 | 2 | -0/+12 |
| | |||||
* | SF patch #1438387, PEP 328: relative and absolute imports. | Thomas Wouters | 2006-02-28 | 3 | -1/+47 |
| | | | | | | | | | | | | | | | | | | | | | | | - IMPORT_NAME takes an extra argument from the stack: the relativeness of the import. Only passed to __import__ when it's not -1. - __import__() takes an optional 5th argument for the same thing; it __defaults to -1 (old semantics: try relative, then absolute) - 'from . import name' imports name (be it module or regular attribute) from the current module's *package*. Likewise, 'from .module import name' will import name from a sibling to the current module. - Importing from outside a package is not allowed; 'from . import sys' in a toplevel module will not work, nor will 'from .. import sys' in a (single-level) package. - 'from __future__ import absolute_import' will turn on the new semantics for import and from-import: imports will be absolute, except for from-import with dots. Includes tests for regular imports and importhooks, parser changes and a NEWS item, but no compiler-package changes or documentation changes. | ||||
* | Forgot to explain the effect of the new opcode. | Guido van Rossum | 2006-02-28 | 1 | -0/+1 |
| | | | | Sigh -- we really should have one place for all opcode metadata. | ||||
* | Update the compiler package to compile the with-statement. | Guido van Rossum | 2006-02-28 | 3 | -1/+63 |
| | | | | Jeremy, please review! | ||||
* | Finish removal of CO_GENERATOR_ALLOWED. | Neal Norwitz | 2006-02-27 | 1 | -1/+1 |
| | |||||
* | PEP 343 -- the with-statement. | Guido van Rossum | 2006-02-27 | 6 | -52/+709 |
| | | | | | | | | | | | | | This was started by Mike Bland and completed by Guido (with help from Neal). This still needs a __future__ statement added; Thomas is working on Michael's patch for that aspect. There's a small amount of code cleanup and refactoring in ast.c, compile.c and ceval.c (I fixed the lltrace behavior when EXT_POP is used -- however I had to make lltrace a static global). | ||||
* | Even though we don't currently use unicode or complex numbers in the test, | Neal Norwitz | 2006-02-27 | 1 | -3/+3 |
| | | | | | | be complete when when checking types. Yield cannot be tested outside a function, so add a comment to that effect. | ||||
* | Don't filter out OverflowWarning; should be a test failure if it is raised by | Brett Cannon | 2006-02-27 | 1 | -2/+1 |
| | | | | the interpreter in 2.5 . | ||||
* | Make or_test similar to test, not testlist. | Martin v. Löwis | 2006-02-27 | 1 | -1/+2 |
| | |||||
* | Skip over doc strings. | Martin v. Löwis | 2006-02-27 | 1 | -1/+8 |
| | |||||
* | Handle testlist_safe and or_test like testlist. | Martin v. Löwis | 2006-02-27 | 1 | -2/+2 |
| | |||||
* | Alias non-terminals introduced for backwards compatibility. | Martin v. Löwis | 2006-02-27 | 1 | -0/+3 |
| | |||||
* | regenerated. please read PEP 306 when changing Python's grammar! | Anthony Baxter | 2006-02-27 | 1 | -37/+40 |
| | |||||
* | PEP 308 implementation, including minor refdocs and some testcases. It | Thomas Wouters | 2006-02-27 | 1 | -0/+25 |
| | | | | | | | | | | | | | | | | | | | | | | | | | breaks the parser module, because it adds the if/else construct as well as two new grammar rules for backward compatibility. If no one else fixes parsermodule, I guess I'll go ahead and fix it later this week. The TeX code was checked with texcheck.py, but not rendered. There is actually a slight incompatibility: >>> (x for x in lambda:0) Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: iteration over non-sequence changes into >>> (x for x in lambda: 0) File "<stdin>", line 1 (x for x in lambda: 0) ^ SyntaxError: invalid syntax Since there's no way the former version can be useful, it's probably a bugfix ;) | ||||
* | Generate code to recursively copy an AST into | Martin v. Löwis | 2006-02-26 | 1 | -0/+179 |
| | | | | a tree of Python objects. Expose this through compile(). | ||||
* | Whitespace normalization. | Tim Peters | 2006-02-26 | 1 | -1/+1 |
| | |||||
* | - Patch 1433928: | Guido van Rossum | 2006-02-25 | 6 | -2/+259 |
| | | | | | | | | - The copy module now "copies" function objects (as atomic objects). - dict.__getitem__ now looks for a __missing__ hook before raising KeyError. - Added a new type, defaultdict, to the collections module. This uses the new __missing__ hook behavior added to dict (see above). | ||||
* | Got rid of byte-order dependencies. | Jack Jansen | 2006-02-23 | 1 | -2/+2 |
| | |||||
* | RFE #1436243: make integers in [0..256] preallocated. | Georg Brandl | 2006-02-22 | 1 | -0/+4 |
| | |||||
* | Add test for classmethod ./. keyword args. | Georg Brandl | 2006-02-21 | 1 | -0/+8 |
| | |||||
* | Suppress another deprecation warning in the tests. | Tim Peters | 2006-02-21 | 1 | -1/+8 |
| | |||||
* | Whitespace normalization. | Tim Peters | 2006-02-20 | 3 | -5/+5 |
| | |||||
* | Bug #1210377: close bsddb cursor correctly after NotFoundError. | Georg Brandl | 2006-02-20 | 1 | -1/+4 |
| | |||||
* | Detect Win64 builds. | Martin v. Löwis | 2006-02-20 | 1 | -10/+39 |
| | |||||
* | Let the SDK setup override distutils logic. | Martin v. Löwis | 2006-02-20 | 1 | -15/+25 |
| | |||||
* | Bug #1101233: fix test_fcntl on netbsd2 platform. | Georg Brandl | 2006-02-20 | 1 | -1/+1 |
| | |||||
* | Bug #1413790: zipfile now sanitizes absolute archive names that are | Georg Brandl | 2006-02-20 | 2 | -3/+15 |
| | | | | not allowed by the specs. | ||||
* | Whitespace normalization. | Tim Peters | 2006-02-19 | 1 | -2/+2 |
| |