| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
automatically finding (most of) the standard PYD extensions, and to
remove the hardcoded Python version.
|
|
|
|
| |
change eliminate to delete (-d)
|
|
|
|
|
|
|
| |
uses the BrowserControl module.
BrowserControl is not removed to allow IDLE to be distributed separately
and still be used with Python 1.5.2.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Fixed a quote bug. Thanks to Fredrik Lundh.
|
|
|
|
|
| |
Include <> -> "". Removed some left over code at the end of the file.
Patch by Bill Tutt.
|
|
|
|
| |
Include <> -> "". Patch by Bill Tutt.
|
|
|
|
|
|
|
|
|
|
| |
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!)
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Generator for the new ucnhash module (ucnhash.h|c). Uses perfect_hash.py
to create the ucnhash module.
|
|
|
|
|
|
| |
Utility extension module needed by perfect_hash.py
By Bill Tutt.
|
|
|
|
| |
like the short, ambiguous name.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Web browsers.
|
|
|
|
| |
option name for clarity.
|
|
|
|
|
|
|
| |
Fix for problem with freeze when both "-m" and "-s service" options
are used.
(Blessed by MarkH)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
| |
compile.py:
On Windows, use 'nul' instead of '/dev/null'.
test.py:
Use double-quotes for the command-line, as Windows doesnt recognise
singles.
|
| |
|
|
|
|
| |
Bad % formatting.
|
| |
|
|
|
|
|
| |
the path to save a relative path by prefixing it with os.sep (':').
Also fix an indent inconsistency in the same function.
|
| |
|
| |
|
|
|
|
|
| |
allowing it to be run from anywhere, including through a symlink to
the actual idle.py script.
|
| |
|
|
|
|
|
|
|
| |
can't remember who. :-) Changes:
- Support for Windows NT (different locking behavior)
- Added a logging mechanism
|
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
|
|
|
|
| |
device info. I don't know why these occur, but they seem to be
shortlived and harmless.
|
|
|
|
| |
If you do a "cvs update" in the Lib directory, it will pop up there.
|
|
|
|
|
| |
self.parser to be None; in that case don't dereference it in
getnames().
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
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.
|
|
|
|
| |
Typo noted by /F.
|
|
|
|
| |
Detlef Lannert <lannert@lannert.rz.uni-duesseldorf.de>.
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
- remove postorder
- remove protocol for automatically walking children based on visitor
method return value; now only walks if there is no method
|
| |
|
|
|
|
| |
dict)
|
|
|
|
|
|
|
|
|
|
| |
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)
|
|
|
|
| |
gencodec.py - Create Python codecs from Unicode mapping files
|
|
|
|
|
|
| |
process
not yet connected with IDLE
|