summaryrefslogtreecommitdiffstats
path: root/Tools
Commit message (Collapse)AuthorAgeFilesLines
* add expandtabs command (-e)Peter Schneider-Kamp2000-07-111-37/+64
| | | | change eliminate to delete (-d)
* Update to use the new standard webbrowser module if available, otherwiseFred Drake2000-07-091-2/+8
| | | | | | | uses the BrowserControl module. BrowserControl is not removed to allow IDLE to be distributed separately and still be used with Python 1.5.2.
* Nuke all remaining occurrences of Py_PROTO and Py_FPROTO.Tim Peters2000-07-091-1/+1
|
* Fix to use Py_UCS4. By Bill Tutt.Marc-André Lemburg2000-07-071-1/+1
|
* Make a distinction between shorts and unsigned shorts.Jack Jansen2000-07-062-1/+2
|
* Change copyright notice - 2nd try.Guido van Rossum2000-06-301-6/+0
|
* Change copyright notice.Guido van Rossum2000-06-302-42/+12
|
* Marc-Andre Lemburg <mal@lemburg.com>:Marc-André Lemburg2000-06-301-1/+1
| | | | Fixed a quote bug. Thanks to Fredrik Lundh.
* Marc-Andre Lemburg <mal@lemburg.com>:Marc-André Lemburg2000-06-301-60/+1
| | | | | Include <> -> "". Removed some left over code at the end of the file. Patch by Bill Tutt.
* Marc-Andre Lemburg <mal@lemburg.com>:Marc-André Lemburg2000-06-301-1/+1
| | | | Include <> -> "". Patch by Bill Tutt.
* Running the program through itself reveals that one end tag wasGuido van Rossum2000-06-281-1/+1
| | | | | | | | | | mislabeled. (Using -c and then -e rearranges some comments, so I won't check that in -- but it's a good test anyway. Note that pindent is not perfect -- e.g. it doesn't know about triple-quoted strings!)
* Peter Schneider-Kamp:Guido van Rossum2000-06-281-10/+75
| | | | | | | | | | | | | Problem: A Python program can be completed and reformatted using Tools/scripts/pindent.py. Unfortunately there is no option for removal of the generated "# end"-tags. Although a few Python commands or a "grep -v '# end '" can do wonders here, there are two drawbacks: - not everyone has grep/time to write a Python script - it is not checked whether the "# end"-tags were used validly Solution: add extra option "-e" (eliminate) to pindent.py
* Jack Jansen: Support for conditional inclusion of methods and functionsGuido van Rossum2000-06-283-8/+33
|
* Marc-Andre Lemburg <mal@lemburg.com>:Marc-André Lemburg2000-06-281-0/+664
| | | | | | | | | | | | Perfect hash table generator. Outputs a Python extension module which provides access to the hash table (which is stored in static C data) using custom code. This module can currently only generates code for the ucnhash module, but can easily be adapted to produce perfect hash tables for other tasks where fast lookup in large tables is needed. By Bill Tutt.
* Marc-Andre Lemburg <mal@lemburg.com>:Marc-André Lemburg2000-06-281-0/+109
| | | | | Generator for the new ucnhash module (ucnhash.h|c). Uses perfect_hash.py to create the ucnhash module.
* Marc-Andre Lemburg <mal@lemburg.com>:Marc-André Lemburg2000-06-281-0/+72
| | | | | | Utility extension module needed by perfect_hash.py By Bill Tutt.
* Rename the "browser" module to "BrowserControl", since Guido did notFred Drake2000-05-102-2/+2
| | | | like the short, ambiguous name.
* EditorWindow.python_docs():Fred Drake2000-05-101-5/+8
| | | | | | | Instead of using Netscape through os.system(), use the new browser.open() function to load the documentation on the default browser. On Windows, this will use the installed documentation if it exists, instead of hitting python.org.
* Collection of classes and convenience functions to control externalFred Drake2000-05-101-0/+157
| | | | Web browsers.
* Minor edit of leading comments: 'the the' --> 'the', quoted 'enable'Fred Drake2000-05-091-2/+2
| | | | option name for clarity.
* Toby Dickenson:Guido van Rossum2000-05-061-4/+1
| | | | | | | Fix for problem with freeze when both "-m" and "-s service" options are used. (Blessed by MarkH)
* patches from Mark HammondJeremy Hylton2000-05-024-14/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Attached is a set of diffs for the .py compiler that adds support for the new extended call syntax. compiler/ast.py: CallFunc node gets 2 new children to support extended call syntax - "star_args" (for "*args") and "dstar_args" (for "**args") compiler/pyassem.py It appear that self.lnotab is supposed to be responsible for tracking line numbers, but self.firstlineno was still hanging around. Removed self.firstlineno completely. NOTE - I didnt actually test that the generated code has the correct line numbers!! Stack depth tracking appeared a little broken - the checks never made it beyond the "self.patterns" check - thus, the custom methods were never called! Fixed this. (XXX Jeremy notes: I think this code is still broken because it doesn't track stack effects across block bounaries.) Added support for the new extended call syntax opcodes for depth calculations. compiler/pycodegen.py Added support for the new extended call syntax opcodes. compiler/transformer.py Added support for the new extended call syntax.
* patches from Mark HammondJeremy Hylton2000-05-021-1/+4
| | | | | | | | | compile.py: On Windows, use 'nul' instead of '/dev/null'. test.py: Use double-quotes for the command-line, as Windows doesnt recognise singles.
* Added an unused Unicode string for testing.Barry Warsaw2000-05-021-0/+2
|
* Sjoerd Mullender:Guido van Rossum2000-05-021-1/+1
| | | | Bad % formatting.
* Sjoerd Mullender: cmp.py is obsolete...Guido van Rossum2000-04-281-5/+2
|
* Patch inspired by Just van Rossum: on the Mac, in savefilename(), makeGuido van Rossum2000-04-251-1/+3
| | | | | the path to save a relative path by prefixing it with os.sep (':'). Also fix an indent inconsistency in the same function.
* Jack Jansen: A few new types needed by new API calls.Guido van Rossum2000-04-241-4/+6
|
* Two more items.Guido van Rossum2000-04-111-0/+5
|
* Use a better approach to locating IDLE's default configuration,Fred Drake2000-04-101-1/+1
| | | | | allowing it to be run from anywhere, including through a symlink to the actual idle.py script.
* Just in case someone wants to use this, let's fix the pathname.Guido van Rossum2000-04-061-1/+1
|
* New version 1.0.4. I'm sure someone mailed me these patches but IGuido van Rossum2000-03-311-6/+20
| | | | | | | can't remember who. :-) Changes: - Support for Windows NT (different locking behavior) - Added a logging mechanism
* New version 1.0.4. I'm sure someone mailed me these patches but IGuido van Rossum2000-03-311-14/+33
| | | | | | | | can't remember who. :-) Changes: - Owner name+email made generic instead of GvR - Support for Windows NT (running from a .bat file) - DOcument <HTML>...</HTML> tags
* Removed two files that were added temporarily.Guido van Rossum2000-03-302-708/+0
|
* Bump version to 0.6 for the event of the Python 1.6 alpha 1 release.Guido van Rossum2000-03-301-1/+1
|
* __pushtodev(): Ignore transient sunaudiodev.errors when setting theBarry Warsaw2000-03-291-1/+5
| | | | | device info. I don't know why these occur, but they seem to be shortlived and harmless.
* Moved robotparser.py to the Lib directory.Guido van Rossum2000-03-291-97/+0
| | | | If you do a "cvs update" in the Lib directory, it will pop up there.
* Fix suggested by Magnus Kessler: in class Page, it is possible forGuido van Rossum2000-03-281-1/+4
| | | | | self.parser to be None; in that case don't dereference it in getnames().
* Skip Montanaro:Guido van Rossum2000-03-271-17/+17
| | | | | | | | | | | | The robotparser.py module currently lives in Tools/webchecker. In preparation for its migration to Lib, I made the following changes: * renamed the test() function _test * corrected the URLs in _test() so they refer to actual documents * added an "if __name__ == '__main__'" catcher to invoke _test() when run as a main program * added doc strings for the two main methods, parse and can_fetch * replaced usage of regsub and regex with corresponding re code
* From Sjoerd Mullender <sjoerd@oratrix.nl>:Fred Drake2000-03-231-1/+0
| | | | | cmp is not used in freeze, but is imported anyway. What's worse, cmp is no longer in the library, so freeze won't work like this.
* Of course, I forget how to type long ago...Fred Drake2000-03-171-1/+1
| | | | Typo noted by /F.
* "write marshalled" --> "writes marshalled" (in docstring); noted byFred Drake2000-03-171-1/+1
| | | | Detlef Lannert <lannert@lannert.rz.uni-duesseldorf.de>.
* complete rewriteJeremy Hylton2000-03-162-800/+831
| | | | | | | | | code generator uses flowgraph as intermediate representation. the old rep uses a list with explicit "StackRefs" to indicate the target of jumps. pyassem converts flowgraph to bytecode, breaks up individual steps of generating bytecode
* simplify visitor walker classJeremy Hylton2000-03-161-32/+22
| | | | | | - remove postorder - remove protocol for automatically walking children based on visitor method return value; now only walks if there is no method
* fix list.append problemsJeremy Hylton2000-03-161-3/+3
|
* change name of Set method: items -> elements (avoids confusion withJeremy Hylton2000-03-161-1/+1
| | | | dict)
* Tim Peters writes:Guido van Rossum2000-03-131-4/+5
| | | | | | | | | | Fix bad auto-indent I recently introduced when replacing the regexp that could cause re to blow up: if or_any_other_block_opener: # one indenting comment line ^ cursor ended up at the caret (the bug) ^ but belongs here (the post-patch behavior)
* Marc-Andre Lemburg: addedGuido van Rossum2000-03-102-0/+290
| | | | gencodec.py - Create Python codecs from Unicode mapping files
* a simple client-server framework for executing code in a differentJeremy Hylton2000-03-091-0/+343
| | | | | | process not yet connected with IDLE
* A bunch of changes, primarily to command line argument parsingBarry Warsaw2000-03-081-64/+100
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (inspired by Detlef Lannert). Specifically, -k/--keyword no longer takes an optional argument to clear the default keywords. Instead, use -K/--no-default-keywords to clear them. -n/--add-location also no longer takes an optional argument to set the comment style. Instead, use -S/--style to set the comment style to GNU or Solaris. -o/--output can take `-' as the filename, meaning write to standard output. The inputfile name can also be `-' meaning read from standard in. A few other changes include Kludge to mark the file docstring as translatable. Since the marking is to place _() around the docstring, and because we actually have to define the _() function before we use it, this means that we have to manually assign to __doc__ the output of _(). This doesn't seem too bad because you'll only use this idiom when translating a script's docstring (you really don't need to translate most module docstrings). Convert everything to string methods and do not import the string module. Bump the version number to 1.1