summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* rename the global IdleConfParser object from IdleConf to idleconfJeremy Hylton2000-03-075-48/+40
| | | | | | standard usage is now from IdleConf import idleconf replace : with = in config.txt
* Tweak the goto file/line command (in the right button menu in PyShellGuido van Rossum2000-03-071-14/+25
| | | | | | | | | | | | | and output windows) so that it if it doesn't succeed with the line at the cursor, it tries the line before that. This is handy with tracebacks, where my natural tendency is to click in the displayed source line rather than in the file/line indicator just above it. Now I can indulge this tendency. I factored out a helper and changed the error handling so that a non-existing file is treated as if the line didn't match -- this is handy because some function calls (e.g. "foo.bar(1)") match the grep pattern.
* Patch by Moshe Zadka: remove the string special case inGuido van Rossum2000-03-071-18/+0
| | | | | PySequence_Contains() now that string objects have this code in their tp_contains.
* Patch by Moshe Zadka: move the string special case from abstract.cGuido van Rossum2000-03-071-0/+22
| | | | | | here. [Patch modified by GvR to keep the original exception.]
* Add tests for char in string -- including required exceptions forGuido van Rossum2000-03-071-0/+23
| | | | non-char in string.
* Sjoerd Mullender:Guido van Rossum2000-03-071-1/+1
| | | | | The (relatively) new chunk module uses seek, not setpos. One instance of the call still needed to be fixed.
* Added a bunch of TODO items that recently came up in the idle-dev list.Guido van Rossum2000-03-071-40/+94
| | | | Also removed a bunch of items
* If we're in the current input and there's only whitespace beyond theGuido van Rossum2000-03-071-0/+5
| | | | | | | cursor, erase that whitespace first. This avoids a particularly confusing case where hitting Return at the end of the command didn't do what it was expected to do -- because it wasn't considered to be at the end of the command. Now it is.
* Fixed inet_ntoa() docstring.Fred Drake2000-03-071-1/+1
|
* Patch from Corran Webster <cwebster@nevada.edu> (tweaked for style by me):Greg Ward2000-03-071-0/+11
| | | | changed 'copy_file()' to use the native Mac file copy routine.
* Patch from Corran Webster <cwebster@nevada.edu>: add '_init_mac()'.Greg Ward2000-03-071-0/+22
|
* Added 'native_path()' for use on pathnames from the setup script: split onGreg Ward2000-03-071-0/+28
| | | | slashes, and put back together again using the local directory separator.
* Added '_nt_quote_args()' to deal with whitespace in command-line argumentsGreg Ward2000-03-071-5/+22
| | | | in a rather half-assed, but probably effective, way.
* test_contains outputGuido van Rossum2000-03-061-0/+1
|
* Test cases for __contains__ code, by Moshe Zadka.Guido van Rossum2000-03-061-0/+41
|
* Sjoerd Mullender:Guido van Rossum2000-03-061-15/+21
| | | | | | | When you set a breakpoint on a function with a multi-line argument list, the breakpoint is actually set on the second line of the arguments instead of the first line of the body. This patch fixes that.
* compiler command-line interface moved here from compiler.pycodegenJeremy Hylton2000-03-061-0/+25
|
* import compile function form pycodegenJeremy Hylton2000-03-062-0/+8
|
* rename compile.py to pycodegen.pyJeremy Hylton2000-03-062-352/+50
| | | | | | | | | | fix imports remove parse functions and visitor code track name change: Classdef to Class add some comments and tweak order of visitXXX methods get rid of if __name__ == "__main__ section
* add a doc stringJeremy Hylton2000-03-062-0/+40
| | | | import some useful functions from contained modules
* fix import to refer to compiler packageJeremy Hylton2000-03-062-2/+2
|
* revise arguments for addCode method on lnotab. take several numbersJeremy Hylton2000-03-062-20/+26
| | | | that are internally converted to chars, rather than taking a string.
* change node Classdef to ClassJeremy Hylton2000-03-064-48/+50
| | | | | | | add doc string to transformer module add two helper functions: parse(buf) -> AST parseFile(path) -> AST
* factor out the tree walking/visitor code that was in compile.pyJeremy Hylton2000-03-062-0/+254
|
* Defer all the work to idle.py, which has recently become tooGuido van Rossum2000-03-061-2/+1
| | | | complicated to copy in-line here.
* Allow None as TimeBase value in TimeValue records (becomes NULL in C structure,Jack Jansen2000-03-062-10/+26
| | | | used for delta-t values by quicktime).
* string_join(): Fix memory leaks discovered by Charles Waldman (and aBarry Warsaw2000-03-061-5/+15
| | | | few other paths through the function that leaked).
* In getdef(), don't die when the section doesn't exist.Guido van Rossum2000-03-061-2/+2
|
* Don't use 1.6-isms (s.startswith()) -- we want to distribute thisGuido van Rossum2000-03-062-4/+4
| | | | before 1.6 is out so it has to be compatible with 1.5.2.
* Rewrote 'newer_pairwise(): more natural (and incompatible) interface,Greg Ward2000-03-061-12/+13
| | | | simpler implementation.
* Serious overhaul of the C compiler interface and the two classes thatGreg Ward2000-03-063-362/+400
| | | | | | | | | | | | implement it (so far): * moved filename generation methods into CCompiler base class, driven by data supplied by implementation classes * moved a bunch of common code from UnixCCompiler to convenience methods in CCompiler * overhauled MSVCCompiler's compile/link methods to look and act as much as possible like UnixCCompiler's, in order to regularize both interface and behaviour (especially by using those new convenience methods)
* Don't pass 'keep_dir' to 'compile()' method of CCompiler -- no longer used.Greg Ward2000-03-061-1/+0
|
* Don't pass 'keep_dir' to 'compile()' method of CCompiler -- no longer used.Greg Ward2000-03-061-3/+4
| | | | | Don't assume that the 'libraries' and 'library_dirs' elements of the build info dict are always lists.
* superceded by IdleConf/config.txtJeremy Hylton2000-03-031-19/+0
|
* migrate to use of IdleConf and config files to set optionsJeremy Hylton2000-03-036-86/+51
| | | | | | | | | | | | | | | | | | | | | | | idle.py: Load the config files before anything else happens XXX Need to define standard way to get files relative to the IDLE install dir PyShell.py: ColorDelegator.py: Get color defns out of IdleConf instead of IdlePrefs EditorWindow.py: Replace hard-coded font & window size with config options Get extension names via IdleConf.getextensions extend.py: Obsolete. Extensions defined in config file. ParenMatch.py: Use config file for extension options. Revise comment about parser requirements. Simplify logic on find returning None.
* default to cwd if os.environ['HOME'] does not existJeremy Hylton2000-03-031-2/+6
|
* a ConfigParser for idle and three configuration filesJeremy Hylton2000-03-034-0/+187
|
* allow comments beginning with ; in key: value as well as key = valueJeremy Hylton2000-03-031-1/+1
|
* Fixed parameters to a few time and timebase calls: InOut parameters wereJack Jansen2000-03-032-12/+25
| | | | inadvertantly seen as out-only.
* Added PutPixMapBytes() and GetPixMapBytes() functions that allow getting atJack Jansen2000-03-032-0/+96
| | | | | | pixmap data. Added an as_GrafPort() method to be able to use a GWorld as argument to routines that expect a GrafPort.
* Added methods getdata() and putdata() to obtain the data in a bitmap.Jack Jansen2000-03-032-0/+68
|
* Patch by Tim Peters:Guido van Rossum2000-03-031-9/+11
| | | | | | | | | | | | | | | | Changes the one regexp in PyParse capable of making the re module blow the C stack when passed unreasonable <0.9 wink> program text. Jeremy Hylton provoked this with a program of the form: x = (1, 2, ... # 9997 lines deleted here 10000, ) Programs "like this" will no longer (no matter how many lines they contain) trigger re death. OTOH, you can now make another class of unreasonable program that will take much longer to parse.
* Typo fix.Greg Ward2000-03-031-1/+1
|
* Fixed 'mkpath()' to accept empty string silently (it's just the current dir).Greg Ward2000-03-031-9/+11
| | | | Fixed all DistutilsFileError messages to wrap file/dir names in quotes.
* paren matching extension. warning: in current version of IDLE, canJeremy Hylton2000-03-021-0/+193
| | | | not run this extension and CallTips extension at the same time.
* A module to parse/generate MediaDescription handles as used by QuickTime. OnlyJack Jansen2000-03-021-0/+97
| | | | generic, video and audio implemented for now.
* Mark discovered a bug in his patch: he didn't *use* PyExc_WindowsErrorGuido van Rossum2000-03-021-1/+1
| | | | in PyErr_SetFromWindowsErrWithFilename() like he intended to... :-)
* Renamed 'build_lib' command to 'build_clib':Greg Ward2000-03-024-209/+7
| | | | | | * replaced build_lib.py with build_clib.py * renamed the class in build_clib.py * changed all references to 'build_lib' command in other command classes
* Changed '__rcsid__' to '__revision__'.Greg Ward2000-03-0220-20/+20
|
* If the "build_lib" command built any C libraries, link with them allGreg Ward2000-03-021-3/+12
| | | | | | | when building extensions (uses build_lib's 'get_library_names()' method). Ensure that the relative structure of source filenames is preserved in the temporary build tree, eg. foo/bar.c compiles to build/temp.<plat>/foo/bar.o.