summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* a few small optimizations that seem to give a 5-10% speedup; theJeremy Hylton2000-11-061-76/+80
| | | | further optimization of com_node makes the most difference.
* move pruneNext method to correct object (doh!)Jeremy Hylton2000-11-061-24/+24
|
* Change the graph structure to contain the code generator object forJeremy Hylton2000-11-063-21/+133
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | embedded code objects (e.g. functions) rather than the generated code object. This change means that the compiler generates code for everything at the end, rather then generating code for each function as it finds it. Implementation note: _convert_LOAD_CONST in pyassem.py must be change to call getCode(). Other changes follow. Several changes creates extra edges between basic blocks to reflect control flow for loops and exceptions. These missing edges had gone unnoticed because they do not affect the current compilation process. pyassem.py: Add _enable_debug() and _disable_debug() methods that print instructions and blocks to stdout as they are generated. Add edges between blocks for instructions like SETUP_LOOP, FOR_LOOP, etc. Add pruneNext to get rid of bogus edges remaining after unconditional transfer ops (e.g. JUMP_FORWARD) Change repr of Block to omit block length. pycodegen.py: Make sure a new block is started after FOR_LOOP, etc. Change assert implementation to use RAISE_VARARGS 1 when there is no user-specified failure output. misc.py: Implement __contains__ and copy for Set.
* If a function contains a doc string, remove the doc string node fromJeremy Hylton2000-11-061-1/+5
| | | | | | | the function's body. If assert is used without an error message, make the AST node None rather than Name('None').
* Added 38,642 missing characters to the Unicode database (first-lastFredrik Lundh2000-11-031-2/+2
| | | | | | | ranges) -- but thanks to the 2.0 compression scheme, this doesn't add a single byte to the resulting binaries (!) Closes bug #117524
* track recent change to test_extcall.pyJeremy Hylton2000-10-301-0/+4
|
* Fix for SF bug #117241Jeremy Hylton2000-10-301-0/+18
| | | | | | | | | When a method is called with no regular arguments and * args, defer the first arg is subclass check until after the * args have been expanded. N.B. The CALL_FUNCTION implementation is getting really hairy; should review it to see if it can be simplified.
* -- properly reset groups in findall (bug #117612)Fredrik Lundh2000-10-282-2/+15
| | | | | | | | -- fixed negative lookbehind to work correctly at the beginning of the target string (bug #117242) -- improved syntax check; you can no longer refer to a group inside itself (bug #110866)
* Fix two typos in __imul__. Closes Bug #117745.Guido van Rossum2000-10-251-2/+2
|
* Many changes.Jeremy Hylton2000-10-251-220/+145
| | | | | | | | | | | | | | | | | | | | | Reformatting -- long lines, "[ ]" -> "[]", a few indentation nits. Replace calls to Node function (which constructed ast nodes) with calls to actual constructors imported from ast module. Optimize com_node (most frequently used method) for the common case -- the appropriate method is found in _dispatch. Fix com_augassign to use class object's rather than node names (rendered invalid by recent changes to ast) Remove expensive tests for sequence-ness in com_stmt and com_append_stmt. These tests should never fail; if they do, something is really broken and exception will be raised elsewhere. Fix com_stmt and com_append_stmt to use isinstance rather than testing's type slot of ast node (this slot disappeared with recent changes to ast).
* Generated from rev 1.1 of ast.txtJeremy Hylton2000-10-251-677/+606
|
* Small optimizations in dispatch method: 1) lookup node's __class__ onceJeremy Hylton2000-10-251-12/+14
| | | | | and store in local; 2) define _preorder to be dispatch (rather than method that called dispatch).
* Also point TK_LIBRARY to the appropriate directory.Guido van Rossum2000-10-251-3/+4
| | | | Changed the landmark to tclIndex, which should occur in both.
* Ka-Ping Yee <ping@lfw.org>:Fred Drake2000-10-241-6/+6
| | | | | | Changes to error messages to increase consistency & clarity. This (mostly) closes SourceForge patch #101839.
* Insert the current directory to the front of sys.path -- and remove itGuido van Rossum2000-10-241-0/+5
| | | | | | | | at the end. This fixes a problem where python Lib/test/test_import.py failed while "make test" succeeded.
* Added a test case for the saxutils.prepare_input_source setSystemId bug.Lars Gustäbel2000-10-242-1/+14
|
* Fix bug in prepare_input_source (patched by Paul P., sourceforge.net downLars Gustäbel2000-10-241-1/+1
| | | | now, so can't find number).
* Updated output.Lars Gustäbel2000-10-241-1/+6
|
* Added some more tests here and there.Lars Gustäbel2000-10-241-0/+84
|
* Make reindent.py happy (convert everything to 4-space indents!).Fred Drake2000-10-239-249/+246
|
* Make reindent.py happy (lots of trailing whitespace removed).Fred Drake2000-10-239-104/+103
|
* Make reindent happy, but not in the way it planned!Fred Drake2000-10-231-3/+3
|
* Make reindent.py happy (convert everything to 4-space indents!).Fred Drake2000-10-2370-1261/+1229
|
* Use 4-space indents.Fred Drake2000-10-231-8/+8
|
* Clean up the temporary file when done with it.Fred Drake2000-10-231-0/+4
|
* Make sure the temporary file is cleaned up even when we raise TestSkipped.Fred Drake2000-10-231-21/+24
|
* Added note saying to use test_support.TESTFN for a temporary filename,Fred Drake2000-10-231-0/+5
| | | | and be clear that you need to clean it up when done.
* Added test for regression on SourceForge bug #117490.Fred Drake2000-10-232-0/+30
|
* Maildir.__init__(): Make sure self.boxes is set.Fred Drake2000-10-231-3/+3
| | | | This closes SourceForge bug #117490.
* Fixed a bug that caused namespace names to be reported as lists ratherLars Gustäbel2000-10-191-0/+2
| | | | than tuples.
* Use test_support.TESTFN as the temporary filename.Fred Drake2000-10-181-3/+3
| | | | | | Fix a minor stylistic nit. This closes SourceForge bug #117032.
* the usual (part II)Jeremy Hylton2000-10-161-30/+40
|
* Test for math.* exceptional behavior only in verbose mode, so that theTim Peters2000-10-162-31/+40
| | | | | oddball platforms (where, e.g., math.exp(+huge) still fails to raise OverflowError) don't fail the std test suite when run normally.
* the usualJeremy Hylton2000-10-1610-259/+488
|
* find(): Application of (slightly modified) SF patch #101928 by UlfBarry Warsaw2000-10-161-4/+4
| | | | | | Betlehem, verified by Peter Funk. Fixes preservation of language search order lost due to use of dictionary keys instead of a list. Closes SF bug #116964.
* Bump version to 1.0.1.Greg Ward2000-10-151-1/+1
|
* Fixed minor problem with reset().Lars Gustäbel2000-10-141-1/+2
|
* Removed debugging code at bottom.Greg Ward2000-10-141-8/+0
|
* Untabified.Greg Ward2000-10-148-14/+14
|
* Bastian Kleineidam: make 'check_lib()' more like AC_CHECK_LIB by addingGreg Ward2000-10-141-3/+6
| | | | an 'other_libraries()' parameter.
* Lyle Johnson: use 'normcase()' in addition to 'normpath()' when testing ifGreg Ward2000-10-141-2/+4
| | | | we actually installed modules to a directory in sys.path.
* Bastian Kleineidam: fix up any supplied command-line options.Greg Ward2000-10-141-1/+16
|
* Now supports entire Python 2.0 language and still supports PythonJeremy Hylton2000-10-134-93/+463
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 1.5.2. The compiler generates code for the version of the interpreter it is run under. ast.py: Print and Printnl add dest attr for extended print new node AugAssign for augmented assignments new nodes ListComp, ListCompFor, and ListCompIf for list comprehensions pyassem.py: add work around for string-Unicode comparison raising UnicodeError on comparison of two objects in code object's const table pycodegen.py: define VERSION, the Python major version number get magic number using imp.get_magic() instead of hard coding implement list comprehensions, extended print, and augmented assignment; augmented assignment uses Delegator classes (see doc string) fix import and tuple unpacking for 1.5.2 transformer.py: various changes to support new 2.0 grammar and old 1.5 grammar add debug_tree helper than converts and symbol and token numbers to their names
* Updated test suite to latest pulldom changes.Lars Gustäbel2000-10-132-19/+19
|
* Moved appendChild calls back to DOMEventStream.Lars Gustäbel2000-10-131-7/+27
| | | | Added SAX2DOM class.
* Clear siblings, now that they are being set.Paul Prescod2000-10-131-0/+2
|
* Make the regrtest.py -l (findleaks) option considerably less obnoxious.Neil Schemenauer2000-10-131-4/+10
| | | | | | First, only report garbage that the GC cannot free. Second, only report the number of objects found, not their repr(). People can dig deeper on their own if they find a leak.
* Fix SF bug #116263: support for from .. import *Jeremy Hylton2000-10-123-4/+13
| | | | | | transformer.py: return '*', None from com_import_as_name pycodegen.py: special case for name == '*' pyassem.py: fix stack counting for IMPORT_ opcodes
* If the status line is invalid, assume it is a pre-1.0 response. TheJeremy Hylton2000-10-121-3/+10
| | | | msg/headers are empty and the entire response is treated as the body.
* Recreated after installer source code changes.Thomas Heller2000-10-121-246/+246
| | | | | This should close SF bug (patch) http://sourceforge.net/patch/?func=detailpatch&patch_id=101844&group_id=5470