Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Make ELLIPSIS a separate token. This makes it a syntax error to write ". . ↵ | Georg Brandl | 2007-03-18 | 4 | -7/+9 |
| | | | | ." for Ellipsis. | ||||
* | Implement PEP 3115 -- new metaclass syntax and semantics. | Guido van Rossum | 2007-03-18 | 12 | -61/+278 |
| | | | | | | | The compiler package hasn't been updated yet; test_compiler.py fails. Otherwise all tests seem to be passing now. There are no occurrences of __metaclass__ left in the standard library. Docs have not been updated. | ||||
* | Bug 1679498: remove unused instance variables _readable, _writable and | Guido van Rossum | 2007-03-18 | 1 | -4/+0 |
| | | | | _seekable. | ||||
* | Bug 1679498: unset variable 'bs'. | Guido van Rossum | 2007-03-18 | 1 | -0/+2 |
| | |||||
* | Add some XXX comments and fix BufferedReader signature. | Guido van Rossum | 2007-03-15 | 1 | -2/+6 |
| | |||||
* | Patch #1591665: implement the __dir__() special function lookup in PyObject_Dir. | Georg Brandl | 2007-03-10 | 1 | -4/+59 |
| | |||||
* | Move test_unittest, test_doctest and test_doctest2 higher up in the test order | Collin Winter | 2007-03-08 | 1 | -0/+3 |
| | |||||
* | Fix another unittest that broke due to dict views (more precisely, due | Guido van Rossum | 2007-03-08 | 1 | -1/+1 |
| | | | | to the cowboy way they are currently hacked in). | ||||
* | Fix embarrassing syntax mix. | Guido van Rossum | 2007-03-08 | 1 | -1/+1 |
| | |||||
* | Check in Daniel Stutzbach's _fileio.c and test_fileio.py | Guido van Rossum | 2007-03-08 | 3 | -1/+286 |
| | | | | | | (see SF#1671314) with small tweaks. The io module now uses this instead of its own implementation of the FileIO class, if it can import _fileio. | ||||
* | Delete TESTFN after the test. | Guido van Rossum | 2007-03-07 | 1 | -0/+3 |
| | |||||
* | Change the specs for readinto() -- it should *not* shorten the buffer to | Guido van Rossum | 2007-03-07 | 2 | -7/+16 |
| | | | | the amount of data read. | ||||
* | New version from Mike Verdone (sat in my inbox since 2/27). | Guido van Rossum | 2007-03-07 | 2 | -87/+288 |
| | | | | | | | I cleaned up whitespace but otherwise didn't change it. This will need work to reflect the tentative decision to drop nonblocking I/O support from the buffering layers. | ||||
* | Addendum of patch #1669633: additional tests for bytes methods. | Georg Brandl | 2007-03-06 | 2 | -168/+207 |
| | |||||
* | Final part of SF# 1607548 by Tony Lownds: fix pydoc and inspect. | Guido van Rossum | 2007-02-28 | 2 | -20/+110 |
| | |||||
* | regenerated to reflect the addition of 'nonlocal' and removal of 'print' | Jack Diederich | 2007-02-28 | 1 | -1/+1 |
| | |||||
* | Regenerate symbol.py. | Guido van Rossum | 2007-02-28 | 1 | -50/+51 |
| | | | | This fixes test_compiler, test_transformer, and test_parser. | ||||
* | Use __builtin__, not __builtins__. | Brett Cannon | 2007-02-28 | 1 | -1/+1 |
| | |||||
* | Fix test_pep352 to deal with the removal of the 'exceptions' module. | Brett Cannon | 2007-02-28 | 1 | -2/+8 |
| | |||||
* | Fix httplib for removal of slicing from exceptions. | Brett Cannon | 2007-02-27 | 1 | -7/+9 |
| | |||||
* | SF patch #1669633, add methods for bytes from Pete Shinners. | Neal Norwitz | 2007-02-27 | 1 | -22/+168 |
| | |||||
* | Fix breakage from removing exceptions module | Neal Norwitz | 2007-02-27 | 1 | -2/+2 |
| | |||||
* | Mike Verdone's checkpoint, cleaned up. | Guido van Rossum | 2007-02-27 | 2 | -13/+277 |
| | | | | | | Also implemented Neal's suggestion (add fileno() to SocketIO) and some unrelated changes, e.g. remove Google copyright and make BytesIO a subclass of BufferedIOBase. | ||||
* | Added some comments and docstrings. More is needed. | Guido van Rossum | 2007-02-27 | 1 | -16/+62 |
| | |||||
* | Implement bytes.fromhex(), with tests. | Georg Brandl | 2007-02-27 | 1 | -0/+15 |
| | |||||
* | Provisional implementation of PEP 3104. | Jeremy Hylton | 2007-02-27 | 2 | -0/+124 |
| | | | | | | | | | | | | | | | | Add nonlocal_stmt to Grammar and Nonlocal node to AST. They both parallel the definitions for globals. The symbol table treats variables declared as nonlocal just like variables that are free implicitly. This change is missing the language spec changes, but makes some decisions about what the spec should say via the unittests. The PEP is silent on a number of decisions, so we should review those before claiming that nonlocal is complete. Thomas Wouters made the grammer and ast changes. Jeremy Hylton added the symbol table changes and the tests. Pete Shinners and Neal Norwitz helped review the code. | ||||
* | Add some XXX comments for Guido to look at. | Neal Norwitz | 2007-02-27 | 1 | -0/+4 |
| | |||||
* | Checkpoint for new I/O library. | Guido van Rossum | 2007-02-27 | 2 | -0/+326 |
| | |||||
* | Remove duplicate refs to int from int/long unification presumably. (There ↵ | Neal Norwitz | 2007-02-27 | 1 | -2/+1 |
| | | | | might be more refs like these.) | ||||
* | Remove the ability to slice/index on exceptions per PEP 352. | Brett Cannon | 2007-02-27 | 6 | -18/+13 |
| | |||||
* | Tweak the fix for test_traceback since the fix for it to run on its own broke | Brett Cannon | 2007-02-27 | 1 | -1/+5 |
| | | | | | it under regrtest. 'traceback' likes to strip out the module name if it is __main__ or __builtin__ but not in other cases. | ||||
* | Fix a broken test in test_traceback where the module name was being tacked on | Brett Cannon | 2007-02-26 | 1 | -3/+1 |
| | | | | needlessly. | ||||
* | Remove the exceptions builtin module, all the exceptions are already builtin. | Neal Norwitz | 2007-02-26 | 8 | -32/+21 |
| | |||||
* | Fix another loop over a dict that may change... :-( | Guido van Rossum | 2007-02-26 | 1 | -1/+1 |
| | |||||
* | Add -d/--debug option to print traceback without -v/--verbose. | Guido van Rossum | 2007-02-26 | 1 | -7/+14 |
| | |||||
* | Two more patches by Tony Lownds (SF# 1607548). | Guido van Rossum | 2007-02-26 | 3 | -0/+28 |
| | | | | | | | | | | | | | | | | | (1) Combines the code paths for MAKE_FUNCTION and MAKE_CLOSURE. Fixes a crash where functions with closures and either annotations or keyword-only arguments result in MAKE_CLOSURE, but only MAKE_FUNCTION has the code to handle annotations or keyword-only arguments. Includes enough tests to trigger the bug. (2) Change peepholer to not bail in the presence of EXTENDED_ARG + MAKE_FUNCTION. Enforce the natural 16-bit limit of annotations in compile.c. Also update Misc/NEWS with the "input = raw_input" change. | ||||
* | You can no longer catch non-BaseException objects; TypeError is raised if such | Brett Cannon | 2007-02-26 | 1 | -27/+10 |
| | | | | an object is listed in an 'except' clause. | ||||
* | Add raw_input() back, named input(). Revive the old unittests too. | Guido van Rossum | 2007-02-26 | 1 | -0/+40 |
| | |||||
* | Add a partial list of limitations, stripping out some corresponding XXX ↵ | Guido van Rossum | 2007-02-26 | 1 | -6/+27 |
| | | | | comments. | ||||
* | Change a test to be more predictable. | Guido van Rossum | 2007-02-26 | 1 | -4/+4 |
| | | | | | The problem with using random.random is that several modules and tests do "from random in random" which confuses pickle.whichmodule(). | ||||
* | Use better idiom to sort keys. | Guido van Rossum | 2007-02-26 | 1 | -2/+1 |
| | |||||
* | Fix token.py main code vs. dict views. | Georg Brandl | 2007-02-26 | 1 | -1/+1 |
| | |||||
* | Fix a bizarre error where test_pickletools fails if preceded by test_pyclbr. | Guido van Rossum | 2007-02-26 | 1 | -1/+1 |
| | | | | | The fix is in neither, but in pickle.py where a loop over sys.modules.items() could modify sys.modules, occasionally. | ||||
* | Fix merge bug (lost line causing syntax error). | Guido van Rossum | 2007-02-25 | 1 | -0/+1 |
| | |||||
* | Use Glyph's trick to ensure that __globals__ is set properly. | Guido van Rossum | 2007-02-25 | 1 | -14/+14 |
| | |||||
* | Add a proper unit test for xreload.py. | Guido van Rossum | 2007-02-25 | 1 | -0/+103 |
| | |||||
* | Change all the function attributes from func_* -> __*__. This gets rid | Neal Norwitz | 2007-02-25 | 32 | -141/+122 |
| | | | | | of func_name, func_dict and func_doc as they already exist as __name__, __dict__ and __doc__. | ||||
* | Add support for static and class methods. | Guido van Rossum | 2007-02-25 | 1 | -3/+36 |
| | |||||
* | Fix typo | Neal Norwitz | 2007-02-25 | 1 | -1/+1 |
| | |||||
* | First draft of a different solution to the reload() problem. | Guido van Rossum | 2007-02-25 | 1 | -0/+136 |
| |