summaryrefslogtreecommitdiffstats
path: root/Tools
Commit message (Collapse)AuthorAgeFilesLines
* Handle private namesJeremy Hylton2001-08-273-20/+50
| | | | | | | | | | | | | | | | | | | (Hard to believe these were never handled before) Add misc.mangle() that mangles based on the rules in compile.c. XXX Need to test the corner cases Update CodeGenerator with a class_name attribute bound to None. If a particular instance is created within a class scope, the instance's class_name is bound to that class's name. Add mangle() method to CodeGenerator that mangles if the class_name has a class_name in it. Modify the FunctionCodeGenerator family to handle an extra argument-- the class_name. Wrap all name ops and attrnames in calls to self.mangle()
* emit SET_LINENO for augmented assignmentsJeremy Hylton2001-08-271-0/+4
|
* Many changes -- bug fixes and sundry improvementsJeremy Hylton2001-08-271-33/+30
| | | | | | | | | | | | | | | | Make nested scopes enabled by default Add is_constant_false() helper so that compiled code and symbols are consistent with builtin compiler's handling of "if 0:" Fix doc string handling to be consistent with recent change that eliminates the doc string from the Module's node attribute. Add fix to print handling from Evan & Shane. Track change to visitor api by making "verbose" explicit. Comment out setting CO_NESTED flag (it's unnecessary in 2.2).
* Fix for sibling nodes that define the same free variableJeremy Hylton2001-08-271-6/+10
| | | | | | | | Evan Simpson's fix. And his explanation: If you defined two nested functions in a row that refer to the same non-global variable, the second one will be generated as though the variable were global.
* Add lookup_name() to optimize use of stack framesJeremy Hylton2001-08-271-5/+21
| | | | | | | | | | | | The use of com_node() introduces a lot of extra stack frames, enough to cause a stack overflow compiling test.test_parser with the standard interpreter recursionlimit. The com_node() is a convenience function that hides the dispatch details, but comes at a very high cost. It is more efficient to dispatch directly in the callers. In these cases, use lookup_node() and call the dispatched node directly. Also handle yield_stmt in a way that will work with Python 2.1 (suggested by Shane Hathaway)
* Two changes to visitor API:Jeremy Hylton2001-08-271-20/+23
| | | | | | | Remove _preorder as alias for dispatch and call dispatch directly. Add an extra optional argument to walk() XXX Also comment out some code that does debugging prints.
* Why didn't I think of Fred off the top of my head?Jeremy Hylton2001-08-271-0/+1
|
* Add everyone I can think of off the top of my headJeremy Hylton2001-08-271-0/+7
|
* Revise regrtest to compile entire standard library.Jeremy Hylton2001-08-271-9/+28
| | | | | | | | | The tests are run from a copy of the library directory, where everything has been compiled by the compiler package. Add a raw_input() call at the end of the script, so that I can check the output before the temp directory with the compiled code is removed.
* Add -c option to continue if one file has a SyntaxErrorJeremy Hylton2001-08-271-2/+15
|
* Fixes by Thomas Heller:Jack Jansen2001-08-275-12/+13
| | | | | | - make the selftests work again (they were apparently not used since very early in bgen's development), with some minor cleanup by me - make emacs python mode happier
* Bump to version 1.3. Also document the new behavior of the chip widgets.Barry Warsaw2001-08-231-8/+17
|
* Bump to version 1.3Barry Warsaw2001-08-231-1/+1
|
* Implement some suggestions by Laura Creighton.Barry Warsaw2001-08-231-6/+28
| | | | | | | | | | | | | | | | | | | | | | | ChipWidget.__init__(): Added a message area just below the color name. Both the message and name widgets are now FLAT, DISABLED Entry widgets instead of Labels. This allows users to copy-n-paste the color names or color specs. Also, the contents of both widgets are now driven by StringVars. set_color(): This only sets the chip color; it does not set the name widgets. set_name(): New method which only sets the name widget contents. set_message(): New method which only sets the message widget contents. ChipViewer.update_yourself(): Set the color, name, and message for each chip as follows: the first line always contains the color spec in #rrggbb format. The second line will contain the color name, but slightly differently for each widget. For the Selected widget, if the color exactly matches the Nearest color, the name is shown, otherwise the message field will be empty. The name field of the Nearest widget will always contain the color name.
* Add a little introductory text.Jeremy Hylton2001-08-181-15/+93
| | | | | | | | | Change several sections to subsections (part of the manual -> howto transformation). Flesh out discussion of assignment nodes (and delete statements). Add an example of manipulating AST objects at a >>> prompt
* Generate correct reprs for Mul, Add, etc.Jeremy Hylton2001-08-183-20/+12
|
* Track removal of doc string from Module().nodes[0]Jeremy Hylton2001-08-181-7/+2
|
* Add Yield() nodeJeremy Hylton2001-08-181-0/+12
|
* Add Yield() statement handlerJeremy Hylton2001-08-181-1/+11
| | | | Fix Module() handler to avoid including the doc string in the AST
* Remove spurious space before a period.Fred Drake2001-08-151-1/+1
|
* Use the "howto" document class rather than the "manual" class.Fred Drake2001-08-151-85/+81
| | | | | | | | Remove the module index; there aren't enough modules documented yet for this to make sense. Add a couple more index entries, fixed a few typos, and adjusted a few more things for consistency.
* Properly mark attribute names in the table.Fred Drake2001-08-151-117/+117
|
* Change the generated markup so that attribute names are properly marked.Fred Drake2001-08-151-1/+1
|
* Fix small markup consistency nits.Fred Drake2001-08-151-7/+8
|
* Fix typo in module docstring.Tim Peters2001-08-151-1/+1
|
* update simple explanation of parseFile()Jeremy Hylton2001-08-141-1/+1
|
* First day's progress on documentationJeremy Hylton2001-08-143-0/+588
|
* Fix typo in astgen scriptJeremy Hylton2001-08-143-3/+3
|
* Regenerated from new ast.txt and new astgen.pyJeremy Hylton2001-08-141-12/+23
|
* Add getChildNodes() method to NodeJeremy Hylton2001-08-142-0/+4
|
* Add Yield nodeJeremy Hylton2001-08-142-0/+2
|
* Update e-mail addressAndrew M. Kuchling2001-08-131-1/+1
|
* + A msg on c.l.py reminded me that docstrings can be implicitly catenated.Tim Peters2001-08-131-28/+48
| | | | | | | Cater to that. + Major speed boost via not reading more of files than necessary. This was no slouch before; now it screams. + Improve msg when giving up on a goofy future statement.
* SF patch #445412 extract ndiff functionality to difflib, fromTim Peters2001-08-121-226/+15
| | | | David Goodger.
* Tool to delete (or just rewrite parts of) obsolete future statements.Tim Peters2001-08-121-0/+256
|
* Finally fix SF bug #441172, using a variant of patch ##443626:Guido van Rossum2001-08-111-0/+6
| | | | | | canceling an edit operation would not revert the value of the field. The fix takes care to destroy the Entry object, as suggested in the patch.
* When representing #includes as imports, do from MOD import *.Martin v. Löwis2001-08-091-1/+1
|
* Patch #437683: Use re instead of regex.Martin v. Löwis2001-08-091-33/+38
| | | | | | | If multiple header files are processed simultaneously which include each other, the corresponding modules mport each other. Specifically, if h2py is invoked with sys/types.h first, later header files won't contain the complete contents of TYPES.py.
* Patch #422471: Install IDLE Help FileMartin v. Löwis2001-08-081-1/+1
|
* Added README to this directoryAndrew M. Kuchling2001-08-081-0/+21
|
* Fix for SF bug #448835.Guido van Rossum2001-08-071-2/+1
| | | | | | | Fix this to work with the new (still undocumented) tabnanny API. I'm afraid Stephen will have to add this fix to the IDLE fork code base as well.
* Tabify the file (pointed out by Thomas Wouters)Andrew M. Kuchling2001-08-061-19/+19
|
* Update listing of subdirectoriesAndrew M. Kuchling2001-08-061-1/+21
| | | | Update link to a running instance of the FAQwizard
* Oops, this file was apparently never added to the repository. Now it is.Jack Jansen2001-08-061-0/+3
|
* Rename pydoc.pyw to pydocgui.pyw: Since we changed Python to allow .pywTim Peters2001-08-052-2/+5
| | | | files to satisfy imports, pydoc.pyw was just importing itself!
* Added the -X/--no-docstrings flag which takes a filename containing aBarry Warsaw2001-07-271-13/+32
| | | | | | | | | | | | | | | | | | | | | | | list of files to not extract docstrings from when the -D option is given. This isn't optimal, but I didn't want to change the semantics of -D, and it's bad form to allow optional switch arguments. Bumping __version__ to 1.4. TokenEater.__init__(): Initialize __curfile to None. __waiting(): In order to extract docstrings from the module, both the -D flag should be set, and the __curfile should not be named in the -X filename (i.e. it isn't in opts.nodocstrings). set_filename(): Fixed a bug where once the first module docstring is extracted, no subsequent module docstrings will be extracted. The bug was that the first extraction set __freshmodule to 0, but that flag was never reset back to 1. set_filename() is always called when the next file is being processed, so use it to reset the __freshmodule flag. main(): Add support for -X/--no-docstring.
* Use string.ascii_letters instead of string.letters (SF bug #226706).Fred Drake2001-07-204-6/+6
|
* Use string.ascii_letters instead of string.letters (SF bug #226706).Fred Drake2001-07-202-3/+9
| | | | | Move computation of sets of characters out of the body of the function that uses them.
* Oops, left in a debug statement. It's gone now.Jack Jansen2001-07-171-1/+0
|
* Allow [] after a parameter name. We currently take this to be the same as * ↵Jack Jansen2001-07-131-13/+7
| | | | in front, which isn't 100% correct but good enough.