summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Simplified doc string.Greg Ward2000-03-181-11/+2
| | | | Added 'clean' to list of commands.
* Oops! Don't call 'ensure_ready()' in 'Distribution.find_command_obj()' --Greg Ward2000-03-181-2/+3
| | | | | | that broke parsing command-line options. Instead call it in 'Command.find_peer()', which is why I added it to 'find_command_obj()' in the first place.
* Tweaked all over:Greg Ward2000-03-181-9/+29
| | | | | | | | * improve help strings * warn if user supplies non-existing directories * don't try to 'remove_tree()' non-existing directories * try to remove the build_base after cleanup (but don't do or say anything if it fails -- this is just in case we made it empty)
* Patch from Bastian Kleineidam <calvin@cs.uni-sb.de>:Greg Ward2000-03-181-16/+2
| | | | use 'util.remove_tree()' instead of 'nuke_release_tree()'.
* Patch from Bastian Kleineidam <calvin@cs.uni-sb.de>: added 'remove_tree()'.Greg Ward2000-03-181-1/+20
|
* Contribution from Bastian Kleineidam <calvin@cs.uni-sb.de>:Greg Ward2000-03-181-0/+44
| | | | the Distutils 'clean' command.
* In 'finalize_options()': if 'self.libs' is a string, make it a singleton list.Greg Ward2000-03-181-0/+3
|
* Changed to pay attention to the 'runtime_library_dirs' list (= 'rpath'Greg Ward2000-03-183-4/+20
| | | | | | | | | | option in the 'build_ext' command): * in ccompiler.py: 'gen_lib_options()' now takes 'runtime_library_dirs' parameter * in unixccompiler.py and msvccompiler.py: now pass 'self.runtime_library_dirs' to 'gen_lib_options()', and define 'runtime_library_dir_option()' (although in msvccompiler.py it blows up with a DistutilsPlatformError right now!)
* Oops, another in the same file; I should read the mail fully beforeFred Drake2000-03-171-1/+1
| | | | | | | checking in; sorry! "the the" --> "the" (in docstring); noted by Detlef Lannert <lannert@lannert.rz.uni-duesseldorf.de>.
* "intput" --> "input" (in docstring); noted by Detlef LannertFred Drake2000-03-171-1/+1
| | | | <lannert@lannert.rz.uni-duesseldorf.de>.
* complete rewriteJeremy Hylton2000-03-162-800/+831
| | | | | | | | | 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
* simplify visitor walker classJeremy Hylton2000-03-161-32/+22
| | | | | | - remove postorder - remove protocol for automatically walking children based on visitor method return value; now only walks if there is no method
* fix list.append problemsJeremy Hylton2000-03-161-3/+3
|
* change name of Set method: items -> elements (avoids confusion withJeremy Hylton2000-03-161-1/+1
| | | | dict)
* Marc-Andre Lemburg: Add tests for mixed use of char in string.Guido van Rossum2000-03-131-0/+13
|
* Marc-Andre Lemburg: test script for Unicode implementation.Guido van Rossum2000-03-103-10/+338
|
* Marc-Andre Lemburg: the maxsplit argument for split() and replace()Guido van Rossum2000-03-101-4/+4
| | | | | now defaults to -1, not to 0. Passing an explicit zero doesn't split or replace at all.
* Module codecs -- Python Codec Registry, API and helpers. Written byGuido van Rossum2000-03-101-0/+414
| | | | Marc-Andre Lemburg.
* Marc-Andre Lemburg: support pickling Unicode objects, both in textGuido van Rossum2000-03-101-0/+28
| | | | mode ('V') and in binary mode ('X').
* Marc-Andre Lemburg: add UnicodeType.Guido van Rossum2000-03-101-0/+1
|
* Marc-Andre Lemburg: Unicode encodings.Guido van Rossum2000-03-1064-0/+8398
|
* Marc-Andre Lemburg: Add UnicodeError, derived from ValueError.Guido van Rossum2000-03-101-0/+7
|
* Catch up with change to CCompiler API: call 'create_static_lib()', notGreg Ward2000-03-101-3/+3
| | | | 'link_static_lib()'.
* Renamed 'link_static_lib() to 'create_static_lib()', and rewrote it createGreg Ward2000-03-101-25/+15
| | | | | a static library (using lib.exe as found by '__init__()', hopefully through registry entries pointing to DevStudio).
* Renamed 'link_static_lib() to 'create_static_lib()'.Greg Ward2000-03-102-18/+19
|
* There are a few places which can raise DistutilsPlatformError; makeFred Drake2000-03-091-41/+54
| | | | | | | | | | | sure it's imported! ;) Re-wrap the docstrings on get_python_inc() and get_python_lib() to be closer to the "normal" Python style. See GvR's "style guide" on the essays page (http://www.python.org/doc/essays/). There should never be a space between a function name and the '(' that opens the argument list (see the style guide again).
* Added Joe Van Andel's 'get_python_inc()', adapted by me to supplyGreg Ward2000-03-091-15/+80
| | | | | | | | | the platform-neutral include dir by default and with Mac support. Added 'get_python_lib()', inspired by 'get_python_inc()'. Rewrote 'get_config_h_filename()' and 'get_makefile_filename()' in terms of 'get_python_inc()' and 'get_python_lib()'. Changed '_init_nt()' and '_init_mac()' to use 'get_python_inc()' and 'get_python_lib()' for directory names.
* 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.
* 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.
* import compile function form pycodegenJeremy Hylton2000-03-061-0/+4
|
* rename compile.py to pycodegen.pyJeremy Hylton2000-03-061-176/+25
| | | | | | | | | | 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-061-0/+20
| | | | import some useful functions from contained modules
* fix import to refer to compiler packageJeremy Hylton2000-03-061-1/+1
|
* revise arguments for addCode method on lnotab. take several numbersJeremy Hylton2000-03-061-10/+13
| | | | that are internally converted to chars, rather than taking a string.
* change node Classdef to ClassJeremy Hylton2000-03-062-24/+25
| | | | | | | 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-061-0/+127
|
* 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.
* allow comments beginning with ; in key: value as well as key = valueJeremy Hylton2000-03-031-1/+1
|
* 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.