summaryrefslogtreecommitdiffstats
path: root/Tools
Commit message (Collapse)AuthorAgeFilesLines
* write(): It's been generally agreed on the i18n-sig that the docstringBarry Warsaw2001-06-191-1/+1
| | | | marker should be output as a #, flag, e.g. "#, docstring".
* Taught IDLE's autoident parser that "yield" is a keyword that begins aTim Peters2001-06-191-0/+1
| | | | | stmt. Along w/ the preceding change to keyword.py, making all this work w/ a future-stmt just looks harder and harder.
* Make copy, cut and paste events case insensitive. Reported by PatrickGuido van Rossum2001-06-121-3/+3
| | | | | | K. O'Brien on idle-dev. (Should other bindings follow suit?)
* SF bug 430991: wrong co_lnotabTim Peters2001-06-091-17/+14
| | | | | | | | | Armin Rigo pointed out that the way the line-# table got built didn't work for lines generating more than 255 bytes of bytecode. Fixed as he suggested, plus corresponding changes to pyassem.py, plus added some long overdue docs about this subtle table to compile.c. Bugfix candidate (line numbers may be off in tracebacks under -O).
* Patch #430754: Makes ftpmirror.py .netrc awareMartin v. Löwis2001-06-071-3/+10
|
* Quick update to the extension mechanism (extend.py is gone, long liveGuido van Rossum2001-06-041-6/+20
| | | | | | config.txt). *** This is a bugfix-release candidate (for 2.1.1 and 2.0.1)! ***
* Separate CFLAGS and CPPFLAGS. CFLAGS should not contain preprocessorNeil Schemenauer2001-06-022-2/+4
| | | | directives, which is the role of CPPFLAGS. Closes SF patch #414991.
* write(): Aggressively sort all catalog entries, and fix the bug whereBarry Warsaw2001-05-241-35/+37
| | | | | there were multiple translatable strings on a single line of source code.
* write(): Do two levels of sorting: first sort the individual locationBarry Warsaw2001-05-231-0/+10
| | | | | tuples by filename/lineno, then sort the catalog entries by their location tuples.
* main(): default-domain argument to getopt.getopt() was missing a = toBarry Warsaw2001-05-211-1/+1
| | | | | indicate it took an argument. This closes SF patch #402223 by Bastian Kleineidam.
* __addentry(): add optional keyword arg `isdocstring' which is a flagBarry Warsaw2001-05-211-4/+10
| | | | | | | | | | | indicating whether the entry was extracted from a docstring or not. write(): If any of the locations of a string appearance came from a docstring, add a comment such as #. docstring before the references (after a suggestion by Martin von Loewis).
* write(): A patch inspired by Tokio Kikuchi that sorts location entriesBarry Warsaw2001-05-211-7/+12
| | | | | | first by filename and then by line number. Closes SF patch #425821. Also, fixes a problem with duplicate entries.
* Generate prototype-style function headers in stead of K&R style. Makes life ↵Jack Jansen2001-05-193-33/+12
| | | | easier with gcc -Wstrict-function-prototypes.
* Moved the encoding map building logic from the individual mappingMarc-André Lemburg2001-05-161-3/+1
| | | | | | codec files to codecs.py and added logic so that multi mappings in the decoding maps now result in mappings to None (undefined mapping) in the encoding maps.
* Refactored, with some future plans in mind.Guido van Rossum2001-05-121-11/+23
| | | | This now uses the new gotofileline() method defined in FileList.py.
* Move the action of loading the configuration to the IdleConf moduleGuido van Rossum2001-05-122-8/+1
| | | | | | rather than the idle.py script. This has advantages and disadvantages; the biggest advantage being that we can more easily have an alternative main program.
* Delete goodname() method, which is unused.Guido van Rossum2001-05-121-11/+7
| | | | | | | Add gotofileline(), a convenience method which I intend to use in a variant. Rename test() to _test().
* Only catch NameError and TypeError when attempting to subclass anFred Drake2001-05-111-1/+1
| | | | exception (for compatibility with old versions of Python).
* Fix several bugs and add two features.Jeremy Hylton2001-05-081-34/+88
| | | | | | | | | | | | | | | | | | | | | | | | | Assertion error message had typos in arguments to string format. .cover files for modules in packages are now put in the right place. The code that generate .cover files seemed to prepend a "./" to many absolute paths, causing them to fail. The code now checks explicitly for absolute paths and leaves them alone. In trace/coverage code, recover from case where module has no __name__ attribute, when e.g. it is executed by PyRun_String(). In this case, assign modulename to None and hope for the best. There isn't anywhere to write out coverage data for this code anyway. Also, replace several sys.stderr.writes with print >> sys.stderr. New features: -C/--coverdir dir: Generate .cover files in specified directory instead of in the directory where the .py file is. -s: Print a short summary of files coverred (# lines, % coverage, name)
* Remove BrowserControl module; this had been left in for Python 1.5.2Fred Drake2001-04-181-157/+0
| | | | support.
* Remove legacy support for the BrowserControl module; the webbrowserFred Drake2001-04-181-7/+3
| | | | | module has been included since Python 2.0, and that is the preferred interface.
* update_yourself(): Removed unused local variable reported byBarry Warsaw2001-04-181-1/+0
| | | | PyChecker.
* __init__(): Removed unused local variable reported by PyChecker.Barry Warsaw2001-04-181-1/+0
|
* StripWidget.__init__(), update_yourself(): Removed some unused localBarry Warsaw2001-04-181-21/+20
| | | | | | | | variables reported by PyChecker. __togglegentype(): PyChecker accurately reported that the variable __gentypevar was unused -- actually this whole method is currently unused so comment it out.
* Helpwin.__init__(): Removed an unused local variable (via import)Barry Warsaw2001-04-181-1/+1
| | | | reported by PyChecker.
* Bump the version to 1.1Barry Warsaw2001-04-181-1/+1
|
* There have been a few new Python releases <wink> in the 2 years sinceBarry Warsaw2001-04-181-10/+7
| | | | | this tool was last touched! Update some of the introductory material and bump the version to 1.1.
* Pop loop off the loop stack before handling the loop's else clause.Jeremy Hylton2001-04-121-4/+4
| | | | | | Otherwise, continue/break will attempt to affect the wrong loop. A few more fiddles to get the SET_LINENOs consistent across compilers.
* Use new _implicitNameOp() to generate name op code for list comprehensions.Jeremy Hylton2001-04-121-4/+17
| | | | | | | | | Always emit a SET_LINENO 0 at the beginning of the module. The builtin compiler does this, and it's much easier to compare bytecode generated by the two compilers if they both do. Move the SET_LINENO inside the FOR_LOOP block for list comprehensions. Also for compat. with builtin compiler.
* Add support for visitAssAttr to findOp().Jeremy Hylton2001-04-121-1/+1
|
* pyassem.py:Jeremy Hylton2001-04-122-14/+111
| | | | | | | | | | | | | | | | Fix annoying bugs in flow graph layout code. In some cases the implicit control transfers weren't honored. In other cases, JUMP_FORWARD instructions jumped backwards. Remove unused arg from nextBlock(). pycodegen.py Add optional force kwarg to set_lineno() that will emit a SET_LINENO even if it is the same as the previous lineno. Use explicit LOAD_FAST and STORE_FAST to access list comp implicit variables. (The symbol table doesn't know about them.)
* Revise handling of tuple arguments so that the variables names matchJeremy Hylton2001-04-122-8/+8
| | | | those used by compile.c. (test_grammar now depends on the names)
* Only treat an AugAssign as def if its the target is a Name.Jeremy Hylton2001-04-121-2/+4
| | | | Fixes last bug found with test_scope.py.
* Fix unpackSequence() to use _nameOp() rather than LOAD_FASTJeremy Hylton2001-04-121-1/+2
|
* Inside a class scope always use LOAD_NAME, STORE_NAME, DEL_NAMEJeremy Hylton2001-04-121-0/+3
|
* Preliminary support for nested scopesJeremy Hylton2001-04-123-89/+396
| | | | | XXX Still doesn't work right for classes XXX Still doesn't do sufficient error checking
* Define constants for types of scopesJeremy Hylton2001-04-121-0/+5
|
* typoJeremy Hylton2001-04-111-4/+8
|
* [finishing fix from earlier checkins]Jeremy Hylton2001-04-111-0/+1
| | | | | | | Call set_lineno() in visitDiscard(), which will generate linenos for discard statements, e.g. the statement "1/0" Fixes SF bug #409587
* Add support for extra (*) arguments to preorder.Jeremy Hylton2001-04-111-3/+3
| | | | Change default dispatch to use extended call syntax in place of apply.
* Generate docstrings.Jeremy Hylton2001-04-111-3/+26
| | | | | | | Fixes SF buf #217004 Add method fixDocstring() to CodeGenerator. It converts the Discard node containing the docstring into an assignment to __doc__.
* Add lineno attributes to Discard nodesJeremy Hylton2001-04-111-1/+3
|
* Make sure the docstring is always entered as the first element in theJeremy Hylton2001-04-111-11/+1
| | | | | | consts, even if it is None. Simplify _lookupName() by removing lots of redundant tests.
* Append the revision number for each file to the output.Guido van Rossum2001-04-101-1/+1
| | | | | | (Yes, this is a new feature right before the 2.1 release. No, I can't imagine this would seriously break anybody's code. In fact, most users of this script are probably *happy* to see this addition.)
* Add globals to list of names returned by get_names().Jeremy Hylton2001-04-091-7/+13
| | | | | Fix func arg processing to handle args in tuples. In test code, skip names beginning with '.'.
* Add two arguments to Scope constructor, module scope and class nameJeremy Hylton2001-04-091-24/+92
| | | | | | | Add mangling support Add get_children() and add_child() methods to Scope Skip nodes when If test is a false constant Add test code that checks results against symtable module
* Add preliminary module symbol table constructorJeremy Hylton2001-04-091-0/+193
|
* Add support for future statementsJeremy Hylton2001-04-092-6/+98
|
* Fix "import as" (has always skipping the as name)Jeremy Hylton2001-04-091-9/+15
| | | | | | Fix com_NEWLINE() so that is accepts arguments, which occurs for lines like: stmt; # note trailing semicolon Add XXX about checking for assignment to list comps
* typoJeremy Hylton2001-04-091-1/+1
|