summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Make ELLIPSIS a separate token. This makes it a syntax error to write ". . ↵Georg Brandl2007-03-184-7/+9
| | | | ." for Ellipsis.
* Implement PEP 3115 -- new metaclass syntax and semantics.Guido van Rossum2007-03-1812-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 andGuido van Rossum2007-03-181-4/+0
| | | | _seekable.
* Bug 1679498: unset variable 'bs'.Guido van Rossum2007-03-181-0/+2
|
* Add some XXX comments and fix BufferedReader signature.Guido van Rossum2007-03-151-2/+6
|
* Patch #1591665: implement the __dir__() special function lookup in PyObject_Dir.Georg Brandl2007-03-101-4/+59
|
* Move test_unittest, test_doctest and test_doctest2 higher up in the test orderCollin Winter2007-03-081-0/+3
|
* Fix another unittest that broke due to dict views (more precisely, dueGuido van Rossum2007-03-081-1/+1
| | | | to the cowboy way they are currently hacked in).
* Fix embarrassing syntax mix.Guido van Rossum2007-03-081-1/+1
|
* Check in Daniel Stutzbach's _fileio.c and test_fileio.pyGuido van Rossum2007-03-083-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 Rossum2007-03-071-0/+3
|
* Change the specs for readinto() -- it should *not* shorten the buffer toGuido van Rossum2007-03-072-7/+16
| | | | the amount of data read.
* New version from Mike Verdone (sat in my inbox since 2/27).Guido van Rossum2007-03-072-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 Brandl2007-03-062-168/+207
|
* Final part of SF# 1607548 by Tony Lownds: fix pydoc and inspect.Guido van Rossum2007-02-282-20/+110
|
* regenerated to reflect the addition of 'nonlocal' and removal of 'print'Jack Diederich2007-02-281-1/+1
|
* Regenerate symbol.py.Guido van Rossum2007-02-281-50/+51
| | | | This fixes test_compiler, test_transformer, and test_parser.
* Use __builtin__, not __builtins__.Brett Cannon2007-02-281-1/+1
|
* Fix test_pep352 to deal with the removal of the 'exceptions' module.Brett Cannon2007-02-281-2/+8
|
* Fix httplib for removal of slicing from exceptions.Brett Cannon2007-02-271-7/+9
|
* SF patch #1669633, add methods for bytes from Pete Shinners.Neal Norwitz2007-02-271-22/+168
|
* Fix breakage from removing exceptions moduleNeal Norwitz2007-02-271-2/+2
|
* Mike Verdone's checkpoint, cleaned up.Guido van Rossum2007-02-272-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 Rossum2007-02-271-16/+62
|
* Implement bytes.fromhex(), with tests.Georg Brandl2007-02-271-0/+15
|
* Provisional implementation of PEP 3104.Jeremy Hylton2007-02-272-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 Norwitz2007-02-271-0/+4
|
* Checkpoint for new I/O library.Guido van Rossum2007-02-272-0/+326
|
* Remove duplicate refs to int from int/long unification presumably. (There ↵Neal Norwitz2007-02-271-2/+1
| | | | might be more refs like these.)
* Remove the ability to slice/index on exceptions per PEP 352.Brett Cannon2007-02-276-18/+13
|
* Tweak the fix for test_traceback since the fix for it to run on its own brokeBrett Cannon2007-02-271-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 onBrett Cannon2007-02-261-3/+1
| | | | needlessly.
* Remove the exceptions builtin module, all the exceptions are already builtin.Neal Norwitz2007-02-268-32/+21
|
* Fix another loop over a dict that may change... :-(Guido van Rossum2007-02-261-1/+1
|
* Add -d/--debug option to print traceback without -v/--verbose.Guido van Rossum2007-02-261-7/+14
|
* Two more patches by Tony Lownds (SF# 1607548).Guido van Rossum2007-02-263-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 suchBrett Cannon2007-02-261-27/+10
| | | | an object is listed in an 'except' clause.
* Add raw_input() back, named input(). Revive the old unittests too.Guido van Rossum2007-02-261-0/+40
|
* Add a partial list of limitations, stripping out some corresponding XXX ↵Guido van Rossum2007-02-261-6/+27
| | | | comments.
* Change a test to be more predictable.Guido van Rossum2007-02-261-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 Rossum2007-02-261-2/+1
|
* Fix token.py main code vs. dict views.Georg Brandl2007-02-261-1/+1
|
* Fix a bizarre error where test_pickletools fails if preceded by test_pyclbr.Guido van Rossum2007-02-261-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 Rossum2007-02-251-0/+1
|
* Use Glyph's trick to ensure that __globals__ is set properly.Guido van Rossum2007-02-251-14/+14
|
* Add a proper unit test for xreload.py.Guido van Rossum2007-02-251-0/+103
|
* Change all the function attributes from func_* -> __*__. This gets ridNeal Norwitz2007-02-2532-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 Rossum2007-02-251-3/+36
|
* Fix typoNeal Norwitz2007-02-251-1/+1
|
* First draft of a different solution to the reload() problem.Guido van Rossum2007-02-251-0/+136
|