summaryrefslogtreecommitdiffstats
path: root/Tools
Commit message (Collapse)AuthorAgeFilesLines
* fix import to refer to compiler packageJeremy Hylton2000-03-061-1/+1
|
* revise arguments for addCode method on lnotab. take several numbersJeremy Hylton2000-03-061-10/+13
| | | | that are internally converted to chars, rather than taking a string.
* change node Classdef to ClassJeremy Hylton2000-03-062-24/+25
| | | | | | | add doc string to transformer module add two helper functions: parse(buf) -> AST parseFile(path) -> AST
* factor out the tree walking/visitor code that was in compile.pyJeremy Hylton2000-03-061-0/+127
|
* Defer all the work to idle.py, which has recently become tooGuido van Rossum2000-03-061-2/+1
| | | | complicated to copy in-line here.
* In getdef(), don't die when the section doesn't exist.Guido van Rossum2000-03-061-2/+2
|
* Don't use 1.6-isms (s.startswith()) -- we want to distribute thisGuido van Rossum2000-03-062-4/+4
| | | | before 1.6 is out so it has to be compatible with 1.5.2.
* superceded by IdleConf/config.txtJeremy Hylton2000-03-031-19/+0
|
* migrate to use of IdleConf and config files to set optionsJeremy Hylton2000-03-036-86/+51
| | | | | | | | | | | | | | | | | | | | | | | idle.py: Load the config files before anything else happens XXX Need to define standard way to get files relative to the IDLE install dir PyShell.py: ColorDelegator.py: Get color defns out of IdleConf instead of IdlePrefs EditorWindow.py: Replace hard-coded font & window size with config options Get extension names via IdleConf.getextensions extend.py: Obsolete. Extensions defined in config file. ParenMatch.py: Use config file for extension options. Revise comment about parser requirements. Simplify logic on find returning None.
* default to cwd if os.environ['HOME'] does not existJeremy Hylton2000-03-031-2/+6
|
* a ConfigParser for idle and three configuration filesJeremy Hylton2000-03-034-0/+187
|
* Patch by Tim Peters:Guido van Rossum2000-03-031-9/+11
| | | | | | | | | | | | | | | | Changes the one regexp in PyParse capable of making the re module blow the C stack when passed unreasonable <0.9 wink> program text. Jeremy Hylton provoked this with a program of the form: x = (1, 2, ... # 9997 lines deleted here 10000, ) Programs "like this" will no longer (no matter how many lines they contain) trigger re death. OTOH, you can now make another class of unreasonable program that will take much longer to parse.
* paren matching extension. warning: in current version of IDLE, canJeremy Hylton2000-03-021-0/+193
| | | | not run this extension and CallTips extension at the same time.
* Correct type error in getopt.error handling code.Guido van Rossum2000-02-291-1/+1
|
* Script by Tim Peters to discover illegal append() calls.Guido van Rossum2000-02-291-0/+168
|
* Fix multi-arg append().Guido van Rossum2000-02-291-1/+1
|
* Two buglet fixes. Peter Funk caught the bug in make_escapes:Barry Warsaw2000-02-271-7/+9
| | | | | | | This will fold all ISO 8859 chars from the upper half of the charset into the lower half, which is ...ummm.... unintened. The second is a typo in the reference to options.escape in main().
* Changes submitted by Peter Funk (some fixes/additions by B.Warsaw) toBarry Warsaw2000-02-261-40/+140
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | make pygettext more compatible with GNU xgettext, specifically: Added -E/--escape for allowing pass-thru of iso8859-1 characters above 7 bits. Added -o/--output option for renaming the output file from messages.pot (there's overlap with -d/--default-domain, but GNU xgettext has them both). Added -p/--output-dir for specifying the output directory for messages.pot. Added -V/--version for printing the version number. Added -w/--width for specifying the output page width (this is because now pygettext, like GNU xgettext will put several locations on the same line to cut down on vertical space). Added -x/--exclude-file for specifying a list of strings that are not to be extracted from the input files. Bumped version number to 1.0 Try to import fintl and use fintl.gettext as _ if available. Fall back is to use identity definition of _(). Moved the escape creation to a function make_escapes() so that its behavior can be controlled by the -E option. __openseen(): Support the -x option. write(): Support -w option and vertical space preserving feature. main(): Support new options.
* Deleting tabpolice.py; it was superceded by tabnanny.py long ago.Guido van Rossum2000-02-231-104/+0
|
* Moved tabnanny.py to standard library status.Guido van Rossum2000-02-231-368/+0
|
* Added tabnanny.py, by Tim Peters, formerly from Tools/scripts, to theGuido van Rossum2000-02-231-0/+4
| | | | | | | | standard library. Added some comments: # XXX Note: this is now a standard library module. # XXX The API needs to undergo changes however; the current code is too # XXX script-like. This will be addressed later.
* Added a new command: Check module (Alt-F5) It does a full syntax checkGuido van Rossum2000-02-221-9/+82
| | | | | | | | of the current module. It also runs the tabnanny to catch any inconsistent tabs. Also did a little bit of refactoring: added an errorbox() method to simplify the display of error dialogs.
* satisfy the tabnanny (thanks to MH for noticing the problem)Jeremy Hylton2000-02-212-98/+98
|
* changes to _lookupNameJeremy Hylton2000-02-171-14/+13
| | | | | | - removed now (happily) unused second arg - need to verify results of [].index are correct; for building consts, need to have same value and same type, e.g. 2 not the same as 2L
* the previous quick hack to fix def foo((x,y)) failed on some casesJeremy Hylton2000-02-172-16/+48
| | | | | | | | | | | | | | | (big surprise). new solution is a little less hackish. Code gen adds a TupleArg instance in the argument slot. The tuple arg includes a copy of the names that it is responsble for binding. The PyAssembler uses this information to calculate the correct argcount. all fix this wacky case: del (a, ((b,), c)), d which is the same as: del a, b, c, d (Can't wait for Guido to tell me why.) solution uses findOp which walks a tree to find out whether it contains OP_ASSIGN or OP_DELETE or ...
* add varargs and kwargs flags to Lambda nodesJeremy Hylton2000-02-171-0/+5
|
* satisfy the tabnannyJeremy Hylton2000-02-171-197/+199
| | | | fix broken references to filename var in generateXXX methods
* Add primitive customization of window size and font.Guido van Rossum2000-02-171-3/+19
| | | | A few alternative selections can be made by changing "if 0" to "if 1".
* The 0.5 release happened on 2/15, not on 2/14. :-)Guido van Rossum2000-02-161-1/+1
|
* support for arglists with implicit tuple unpacksJeremy Hylton2000-02-161-15/+61
| | | | | | | | | | | | | | - added a number of support methods to generate code just before the body - hack protocol for communicating number of args to PyAssembler fix TryExcept generation for case where exception handler has no body fix visitAssAttr add comment about incomplete visitAssName stop using the ExampleASTVisitor change script invocation to accept a list of .py files (e.g. Lib/*.py)
* more robust assignment of lineno for keyword argsJeremy Hylton2000-02-161-3/+3
| | | | | | | | get the lineno from the name of the keyword arg example of case that didn't work-- def foo(x, y, a = None, b = None):
* fix argcount generation for arg lists containing tuple unpacksJeremy Hylton2000-02-161-2/+13
| | | | this is sort of a hack
* add flatten helper functionJeremy Hylton2000-02-161-0/+11
|
* finish first impl of code generatorJeremy Hylton2000-02-151-12/+70
| | | | | add support for nodes TryExcept, TryFinally, Sliceobj fix visitSubscript to properly handle x[a,b,c]
* fix creation of Ellipsis nodeJeremy Hylton2000-02-151-1/+1
|
* add a little debugging support when new.code raises SystemErrorJeremy Hylton2000-02-151-5/+21
|
* add line numbers to nodes in the except clause (when possible)Jeremy Hylton2000-02-151-1/+3
|
* tidy up tryexcept and tryfinally nodesJeremy Hylton2000-02-151-14/+20
|
* A bit restructured.Guido van Rossum2000-02-151-15/+40
|
* Oops, somehow the initial checkin was botched. :-(Guido van Rossum2000-02-151-0/+336
|
* Added some clarifications.Guido van Rossum2000-02-151-4/+8
|
* Temporarily add a copy here for easy distribution.Guido van Rossum2000-02-151-0/+0
|
* More changes.Guido van Rossum2000-02-151-1/+20
|
* Notice status back and stack viewer.Guido van Rossum2000-02-151-0/+5
|
* Support for Moshe's status bar.Guido van Rossum2000-02-151-2/+20
|
* Status bar code -- by Moshe Zadka.Guido van Rossum2000-02-151-0/+32
|
* Adding the old stack viewer implementation back, for the debugger.Guido van Rossum2000-02-151-0/+276
|
* New stack viewer, uses a tree widget.Guido van Rossum2000-02-151-230/+89
| | | | (XXX: the debugger doesn't yet use this.)
* Correct a typo and remove an unqualified except that was hiding the error.Guido van Rossum2000-02-151-2/+2
|
* Add an XXX comment about the ClassBrowser AIP.Guido van Rossum2000-02-151-0/+2
|