summaryrefslogtreecommitdiffstats
path: root/Tools
Commit message (Collapse)AuthorAgeFilesLines
* satisfy the tabnannyJeremy Hylton2000-09-183-358/+358
|
* Allow this script to act like a module by only calling main() ifBarry Warsaw2000-09-161-1/+3
| | | | __name__ == '__main__'. Closes SF bug #110844.
* Fix for bug #113693: with the changes to the IMPORT_FROM opcodes, thisGuido van Rossum2000-09-151-0/+7
| | | | crashed on an assert.
* Include the filename in the errror message for F5 without saving.Guido van Rossum2000-09-151-1/+5
| | | | This closes bug #110660.
* main(): Move hackery of sys.argv until after the Tk instance has beenFred Drake2000-09-151-7/+7
| | | | | | | | created. This allows the application-specific Tkinter initialization to be executed if present. Also pass an explicit className parameter to the Tk() constructor. This closes SourceForge bug #110618.
* Don't emit 8 lines of (c) information at startup -- use the same textGuido van Rossum2000-09-051-1/+4
| | | | as main.c.
* REMOVED all CWI, CNRI and BeOpen copyright markings.Guido van Rossum2000-09-012-28/+4
| | | | This should match the situation in the 1.6b1 tree.
* patch by Neil Schemenauer to improve (fix?) line number generationJeremy Hylton2000-09-012-17/+32
|
* Update magic number.Jeremy Hylton2000-09-012-15/+47
| | | | | | Fix import support to work with import as variant of Python 2.0. The grammar for import changed, requiring changes in transformer and code generator, even to handle compilation of imports with as.
* Rob Hooft, Moshe Zadka: converted to 4 space indents and re instead of regex.Guido van Rossum2000-09-012-72/+78
|
* Tool to generate binary GNU .mo file from .po template files. WrittenBarry Warsaw2000-09-011-0/+194
| | | | | | | | by Martin v. Loewis, proofed by Barry Warsaw for coding standards, typos, and to make command line options compatible with GNU msgfmt where they overlap. Closes patch #101295.
* Bring Tools/compiler almost up to date. Specifically:Thomas Wouters2000-08-123-348/+349
| | | | | | | | | | - fix tab space issues (SF patch #101167 by Neil Schemenauer) - fix co_flags for classes to include CO_NEWLOCALS (SF patch #101145 by Neil) - fix for merger of UNPACK_LIST and UNPACK_TUPLE into UNPACK_SEQUENCE, (SF patch #101168 by, well, Neil :) - Adjust bytecode MAGIC to current bytecode. TODO: teach compile.py about list comprehensions.
* add note about compiler directoryJeremy Hylton2000-08-041-0/+4
| | | | (is bgen still "still under development"?)
* replace most calls to emit 'SET_LINENO' will call to method set_linenoJeremy Hylton2000-08-041-31/+42
| | | | based on bug report by Neil Schemenauer
* update my email addressJeremy Hylton2000-08-041-1/+4
| | | | fix com_call_function to cope with trailing comma in "f(a, b,)"
* Python code coverage tool by Skip Montanaro and Andrew DalkeJeremy Hylton2000-08-031-0/+661
|
* add a bit more legal junkGreg Stein2000-08-031-8/+16
| | | | (too lazy to paste in the whole BSD license tho; included by ref)
* Removed Tools/perfecthash, per python-dev discussionAndrew M. Kuchling2000-07-293-842/+0
|
* Add the exceptions module to the 'never' list -- it is built in.Guido van Rossum2000-07-281-1/+1
|
* Fix UCNs machine with >= 32bit longsJeremy Hylton2000-07-263-37/+93
| | | | | | | originally submitted by Bill Tutt Note: This code is actually going to be replaced in 2.0 by /F's new database. Until then, this patch keeps the test suite working.
* This script demonstrates use of the visitor interface of the compilerJeremy Hylton2000-07-251-0/+38
| | | | package.
* change some occurence of python15.dll to python20.dllPeter Schneider-Kamp2000-07-242-6/+6
| | | | closes patch #100956
* Miscelaneous ANSIfications. I'm assuming here 'main' should take (int,Thomas Wouters2000-07-221-1/+1
| | | | | char**) and return an int even on PC platforms. If not, please fix PC/utils/makesrc.c ;-P
* Spelling fixes supplied by Rob W. W. Hooft. All these are fixes in eitherThomas Wouters2000-07-163-4/+4
| | | | | | | | | | comments, docstrings or error messages. I fixed two minor things in test_winreg.py ("didn't" -> "Didn't" and "Didnt" -> "Didn't"). There is a minor style issue involved: Guido seems to have preferred English grammar (behaviour, honour) in a couple places. This patch changes that to American, which is the more prominent style in the source. I prefer English myself, so if English is preferred, I'd be happy to supply a patch myself ;)
* Modified the standard mac preamble so we include pymactoolbox.h inJack Jansen2000-07-151-35/+1
| | | | stead of defining lots of function prototypes in each module.
* ScannerPREUH3.initpatterns() should call Scanner.initpatterns() so theJack Jansen2000-07-151-0/+1
| | | | new comment patterns get included.
* Patch by Toby Dickenson, mentored by Mark Hammond, to supportGuido van Rossum2000-07-134-7/+62
| | | | | automatically finding (most of) the standard PYD extensions, and to remove the hardcoded Python version.
* 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.