summaryrefslogtreecommitdiffstats
path: root/Tools
Commit message (Collapse)AuthorAgeFilesLines
* Moved SequenceMatcher from ndiff into new std library module difflib.py.Tim Peters2001-02-101-292/+2
| | | | | | | | | Guido told me to do this <wink>. Greatly expanded docstrings, and fleshed out with examples. New std test. Added new get_close_matches() function for ESR. Needs docs, but LaTeXification of the module docstring is all it needs. \CVS: ----------------------------------------------------------------------
* Whitespace normalization.Tim Peters2001-02-091-1/+1
|
* move "from Tkinter import *" to module levelJeremy Hylton2001-02-022-2/+2
|
* Special case around some of the nastier annoyances with the type-inBarry Warsaw2001-02-011-6/+25
| | | | | | | fields. You can now backspace out the 0 in 0x0, and you can clear the field when in decimal mode. There are still some oddities about typing into these fields, but it should be much less annoying. The real solution is to ditch the update-while-typing "feature".
* Move the "from Tkinter import *" out of the method and into the moduleBarry Warsaw2001-02-011-1/+2
| | | | | scope (still inside the __name__=='__main__' guard). Necessitated by recent addition of nested scopes.
* Allow installation of IDLE via distutils (patch #103138).Martin v. Löwis2001-01-282-0/+93
|
* Windows: ucnhash subproject no longer exists (/F merged into unicodedata).Tim Peters2001-01-241-3/+0
|
* Unicode nits: Don't include unicodedatabase.h no more. And make sureFredrik Lundh2001-01-211-2/+2
| | | | to build *all* tables in makeunicodedata.py.
* compress unicode decomposition tables (this saves another 55k)Fredrik Lundh2001-01-211-41/+76
|
* forgot to check in the new makeunicodedata.py scriptFredrik Lundh2001-01-211-17/+271
|
* Color all word instances of "as" after "import", & on the same line, as ifTim Peters2001-01-191-0/+13
| | | | keywords. Cheap approximation to the truth.
* This still mentioned IdlePrefs.py as the place to edit colorGuido van Rossum2001-01-191-1/+2
| | | | preferences. It is now in config.txt or ~/.idle.
* Hand repair of cases where reindent changed lines of the formTim Peters2001-01-176-18/+18
| | | | | | | | | | | \t\t\t\t\treal code ##\t\t\t\t\tunused code \t\t\t\t\treal code via untabifying and shifting the real code left. Semantically the same but made the intent of the commented-out-in-column-0 unused code unclear. The exact same unused code appears to have gotten copied from file to file over the years.
* Whitespace normalization.Tim Peters2001-01-1756-2461/+2455
|
* New, improved README from Mike Clarkson. Wow!Guido van Rossum2001-01-031-20/+143
|
* This patch changes the default behaviour of the builtin charmapMarc-André Lemburg2001-01-031-11/+39
| | | | | | | | | | | | | | | | codec to not apply Latin-1 mappings for keys which are not found in the mapping dictionaries, but instead treat them as undefined mappings. The patch was originally written by Martin v. Loewis with some additional (cosmetic) changes and an updated test script by Marc-Andre Lemburg. The standard codecs were recreated from the most current files available at the Unicode.org site using the Tools/scripts/gencodec.py tool. This patch closes the bugs #116285 and #119960.
* Make the test program work outside IDLE.Guido van Rossum2001-01-021-6/+6
|
* Add Alt-slash to Unix keydefs (I somehow need it on RH 6.2).Guido van Rossum2001-01-021-2/+1
| | | | Get rid of assignment to unused self.text.wordlist.
* Fixed snake logo and minus image by Daniel Calvelo.Guido van Rossum2000-12-272-0/+0
|
* Optionally weed out duplicate prototypes for the same function (whichJack Jansen2000-12-123-3/+11
| | | | happens because the scanner ignores preprocessor #ifs).
* Adapted to new standard for initmodule() routine: don't callJack Jansen2000-12-121-2/+1
| | | | Py_FatalError on errors.
* Various new standard types.Jack Jansen2000-12-121-1/+16
|
* Added support for generating a single module from multiple .h files.Jack Jansen2000-12-121-3/+20
| | | | Allow /* */ comments within function prototypes.
* SF bug 124051: ndiff "?" lines can be confusing. Well, they still can, butTim Peters2000-12-091-28/+19
| | | | after implementing it I liked Gregor's two-"?" line idea a lot.
* 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').
* Application of [ Patch #102226 ] freeze/modulefinder.py should use _winreg, ↵Mark Hammond2000-11-061-15/+6
| | | | not win32api
* Added 38,642 missing characters to the Unicode database (first-lastFredrik Lundh2000-11-031-11/+39
| | | | | | | ranges) -- but thanks to the 2.0 compression scheme, this doesn't add a single byte to the resulting binaries (!) Closes bug #117524
* Hack ndiff to display lines w/ leading tabs more intuitively. This synchsTim Peters2000-11-011-9/+24
| | | | ndiff w/ a custom version I made for Guido during the pre-2.0 freeze.
* Added the -D/--docstrings option for extraction of unmarked module,Barry Warsaw2000-10-271-40/+82
| | | | class, method, and function docstrings.
* Remove bogus stdout redirection and use of sys.__stdout__; useFred Drake2000-10-261-46/+42
| | | | augmented print statement instead.
* Remove bogus stdout redirection and use of sys.__stdout__; useFred Drake2000-10-261-32/+28
| | | | augmented print statement instead.
* Add IDLE wish: access items of arraysGuido van Rossum2000-10-251-0/+1
|
* 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).
* Support for generation of ast.py from simple description of nodeJeremy Hylton2000-10-254-0/+518
| | | | structure (ast.txt). Usage is python astgen.py > ast.py.
* run the std regression test suite using bytecode produced by the compilerJeremy Hylton2000-10-131-0/+55
|
* add -d option that dumps entire AST before compilingJeremy Hylton2000-10-131-2/+5
|
* 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
* 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
* read in a .pyc file and disassemble the code objectsJeremy Hylton2000-10-091-0/+39
|
* Fix for next iteration of SF bug 115690 (Unicode headaches in IDLE). TheTim Peters2000-10-061-0/+13
| | | | | | parsing functions in support of auto-indent weren't expecting Unicode strings, but text.get() can now return them (although it remains muddy as to exactly when or why that can happen). Fixed that with a Big Hammer.
* I'm moving redemo.py here from Demo/tkinter/guido, since it isGuido van Rossum2000-10-061-0/+171
| | | | | | | somewhat useful to learn regular expressions, and this way it'll be installed on Windows. This closes bug report 115609.
* New tool for normalizing indentation of .py files.Tim Peters2000-10-051-0/+258
|
* - don't set the titlecase flag for uppercase letters (sorry, tim)Fredrik Lundh2000-09-251-2/+2
|
* unicode database compression, step 3:Fredrik Lundh2000-09-251-4/+19
| | | | - added decimal digit and digit properties to the unidb tables
* unicode database compression, step 3:Fredrik Lundh2000-09-252-9/+100
| | | | | | | - use unidb compression for the unicodectype module. smaller, faster, and slightly more portable... - also mention the unicode directory in Tools/README