summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Added command description.Greg Ward2000-03-022-28/+96
| | | | | | | | | | | | Added 'build_clib' and 'build_temp' options (where to put C libraries and where to put temporary compiler by-products, ie. object files). Moved the call to 'check_library_list()' from 'run()' to 'finalize_options()' -- that way, if we're going to crash we do so earlier, and we guarantee that the library list is valid before we do anything (not just run). Disallow directory separators in library names -- the compiled library always goes right in 'build_clib'. Added 'get_library_names()', so the "build_ext" command knows what libraries to link every extension with.
* In the 'compile()' method: preserve the directory portion of sourceGreg Ward2000-03-021-2/+7
| | | | | | filenames when constructing object filenames, even if output_dir given -- eg. "foo/bar.c" will compile to "foo/bar.o" without an output_dir, and to "temp/foo/bar.o" if output_dir is "temp".
* Second attempt to fix the ctermid_r/tmpnam_r warnings: define USE_CTERMID_RGreg Ward2000-03-011-3/+13
| | | | | and USE_TMPNAM_R at the top of the file and refer to them later; this catches a second reference to 'tmpnam_r' that I didn't spot first time around.
* Fix compiler warning: only use "_r" form of 'ctermid()' and 'tmpnam()' whenGreg Ward2000-03-011-2/+2
| | | | building a threaded Python.
* Got rid of silly "123456789-..." lines in comments.Guido van Rossum2000-03-015-22/+0
|
* In compile/link methods: ensure that the directory we expect to be writing toGreg Ward2000-03-011-1/+6
| | | | exists before calling the compiler/linker.
* Added 'mkpath()' method: convenience wrapper around 'util.mkpath()' that addsGreg Ward2000-03-011-1/+4
| | | | the compiler objects 'verbose' and 'dry_run' flags.
* Added call to 'ensure_ready()' on the command object inGreg Ward2000-03-011-0/+1
| | | | 'Distribution.find_command_obj()'.
* Added 'get_platform()' to construct a string that identifies the currentGreg Ward2000-03-011-1/+19
| | | | platform, using 'os.uname()' or 'sys.platform'.
* Build reorg:Greg Ward2000-03-011-16/+41
| | | | | | | | | | | | | | * 'build_dir' -> 'build_lib', which by default takes its value straight from 'build_lib' in the 'build' command * added 'build_temp' and 'inplace' options * change 'build_extensions()' to put object files (compiler turds) in 'build_temp' dir * complicated the name-of-extension-file shenanigans in 'build_extensions()' to support "in-place" extension building, i.e. put the extension right into the source tree (handy for developers) * added 'get_ext_fullname()', renamed 'extension_filename()' to 'get_ext_filename()', and tweaked the latter a bit -- all to support the new filename shenanigans
* Build reorg:Greg Ward2000-03-011-12/+43
| | | | | | * 'build_lib' -> 'build_purelib' * new 'build_lib' and 'build_temp' options * use 'get_platform()' to initialize 'build_platlib' and 'build_temp'
* Build reorg: change 'build_dir' option to 'build_lib'.Greg Ward2000-03-011-8/+8
|
* Patch by Fred Gansevles (the module's original author).Guido van Rossum2000-02-292-28/+58
| | | | | | | | | | | This patch fixes 3 small problems. 1) If a map is used which is generated with 'makedbm -a', the trailing '\0' is now handled correctely. 2) The nis.maps() function skipped the first map in the output list. 3) The library '-lnsl' is added in Setup.in (needed on Linux glibc2 and Solaris systems. Maybe on other systems too?) [I note that this still doesn't work when you are using NIS+ --GvR]
* Massive patch by Skip Montanaro to add ":name" to as manyGuido van Rossum2000-02-2937-272/+272
| | | | PyArg_ParseTuple() format string arguments as possible.
* Remove some redundant logic from walk() -- there's no need to checkGuido van Rossum2000-02-291-2/+0
| | | | for "." and "..", since listdir() no longer returns those.
* Correct type error in getopt.error handling code.Guido van Rossum2000-02-291-1/+1
|
* Script by Tim Peters to discover illegal append() calls.Guido van Rossum2000-02-291-0/+168
|