summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Revise tests to support str(<long int object>) not appending "L".Fred Drake1999-12-233-15/+21
|
* Don't call len() if the value is already cached! Caught by GerritFred Drake1999-12-221-1/+1
| | | | Holl <gerrit.holl@pobox.com>.
* Contribution from Gerrit Holl:Guido van Rossum1999-12-211-8/+26
| | | | | | | | | This patch changes the string-based exceptions to class-based exceptions, so that you can fetch the unknown option as an attribute. As far as I know, it is backward compatible. [The new exception class is called GetoptError; the name error is an alias for compatibility.]
* When emitting a command-line error message, *say* it's an error.Greg Ward1999-12-161-1/+1
|
* Catch errors from 'rmtree' and emit a warning.Greg Ward1999-12-161-2/+10
|
* Only set msg.fp to None when there are no extra arguments; if thereGuido van Rossum1999-12-141-1/+2
| | | | are, we must keep the file around so we can print the body.
* V 2.16 from Piers:Guido van Rossum1999-12-131-50/+123
| | | | | | | I've changed the login command to force proper quoting of the password argument. I've also added some extra debugging code, which is removed when __debug__ is false.
* Use 'search', not 'match', on filename pattern regexes.Greg Ward1999-12-131-2/+2
|
* Catch up with terminology change in UnixCCompiler: 'includes' -> 'include_dirs'.Greg Ward1999-12-122-11/+12
|
* Catch missing MANIFEST file and warn rather than blowing up.Greg Ward1999-12-121-3/+27
| | | | | | | | Added 'nuke_release_tree()' method to blow away the directory from which the archive file(s) are created, and call it (conditionally) from 'make_distribution()'. Added 'keep_tree' option (false by default) to disable the call to 'nuke_release_tree()'.
* Fixed 'find_package_modules()' to ensure that we never build (and thusGreg Ward1999-12-121-11/+24
| | | | | | | | install) the setup script itself. Fixed 'build_module()' so we do *not* preserve file mode (which means we can install read-only files, which makes the next installation of this distribution fail -- at least under Unix); added a comment explaining this.
* Changed 'build_extensions()' so 'sources' can be a list or tuple; andGreg Ward1999-12-121-3/+4
| | | | | call CCompiler method 'compile()' with 'include_dirs' not 'includes'. Fixed stupid typo in 'get_source_files()'.
* In 'compile()' method, renamed 'includes' parameter to 'include_dirs' forGreg Ward1999-12-121-6/+16
| | | | | | consistency with 'build_ext' command option. Changed 'compile()' and 'link_shared_object()' so 'include_dirs', 'libraries', and 'library_dirs' can be lists or tuples.
* Added support for printing out help text from option table: 'print_help()',Greg Ward1999-12-121-12/+171
| | | | | | | | 'generate_help()', 'wrap_text()' functions, and a little tiny test of 'wrap_text()'. Changed how caller states that one option is the boolean opposite of another: added 'negative_opt' parameter to 'fancy_getopt()', and changed to use it instead of parsing long option name.
* Made "verbose" mode the default; now you have to supply --quiet if youGreg Ward1999-12-121-18/+75
| | | | | | | | | | | | | | | | | | | | | | | want no output. Still no option for a happy medium though. Added "--help" global option. Changed 'parse_command_line()' to recognize help options (both for the whole distribution and per-command), and to distinguish "regular run" and "user asked for help" by returning false in the latter case. Also in 'parse_command_line()', detect invalid command name on command line by catching DistutilsModuleError. a 'negative_opt' class attribute right after 'global_options'; changed how we call 'fancy_getopt()' accordingly. Initialize 'maintainer' and 'maintainer_email' attributes to Distribution to avoid AttributeError when 'author' and 'author_email' not defined. Initialize 'help' attribute in Command constructor (to avoid AttributeError when user *doesn't* ask for help). In 'setup()': * show usage message before dying when we catch DistutilsArgError * only run commands if 'parse_command_line()' returned true (that way, we exit immediately when a help option is found) * catch KeyboardInterrupt and IOError from running commands Bulked up usage message to show --help options. Comment, docstring, and error message tweaks.
* OpenSSL support. This is based on patches for a version of SSLeay byGuido van Rossum1999-12-072-18/+149
| | | | | | Brian E Gallew, which were improved and adapted to OpenSSL 0.9.4 by Laszlo Kovacs of HP. Both have kindly given permission to include the patches in the Python distribution. Final formatting by GvR.
* According to Craig H Rowland, openbsd2 is yet another BSD variant thatGuido van Rossum1999-12-061-0/+2
| | | | uses the BSD version of the lock structure. Sigh, @!%$.
* [from 1999-11-04]Greg Ward1999-12-031-5/+14
| | | | | | | | Bunch of little bug fixes that appeared in building non-packagized distributions. Mainly: - brain-slip typo in 'get_package_dir()' - don't try to os.path.join() an empty path tuple -- it doesn't like it - more type-safety in 'build_module()'
* In abspath(), always use normpath(), even when win32api is availableGuido van Rossum1999-11-301-3/+3
| | | | | (and even when it fails). This avoids the problem where a trailing separator is not removed when win32api.GetFullPathName() is used.
* A bunch of docstring fixes.Barry Warsaw1999-11-281-23/+22
|
* look for builtins before stuff on the path.Greg Stein1999-11-241-1/+1
|
* add loading of dynamic library modules.Greg Stein1999-11-241-4/+18
|
* turn SysPathImporter into PathImporter.Greg Stein1999-11-201-6/+7
|
* remove the __version__ global.Greg Stein1999-11-201-2/+0
|
* only put __path__ into package modules.Greg Stein1999-11-201-2/+1
|
* shift code from DirectoryImporter out to a common area.Greg Stein1999-11-201-64/+231
| | | | | | | | | | | remove use of "os" module (bootstrap issues) and go to the underlying platform-specific modules fix problem in _compile() (trapped wrong error on permission issues) add SysPathImporter and BuiltinImporter put __file__ into modules imported from the filesystem. [backwards compat] put __path__ into modules [backwards compat] oops: it is doing this for all modules, not just packages. comment and tweak to the PackageArchiveImporter
* Moshe Zadka writes: When deploying SimpleHTTPServer, I noticed aGuido van Rossum1999-11-161-1/+2
| | | | problem: it does not encode/decode the urls, which is wrong.
* Correct typo in module doc string doscovered by Jonathan Giddy.Guido van Rossum1999-11-151-1/+1
|
* Oops. Remove some garbage from the doc string that was accidentallyGuido van Rossum1999-11-091-12/+0
| | | | | checked in due to a patching mishap. Reported by Detlef Lannert; thanks!
* Add some header comments to all the files.Greg Stein1999-11-071-0/+7
|
* initial checkin for my Python stuff.Greg Stein1999-11-071-0/+492
|
* split() docstring: Made signature and description for the firstFred Drake1999-11-041-2/+2
| | | | | parameter match. Error pointed out by François Pinard <pinard@iro.umontreal.ca> on c.l.py.
* Sjoerd Mullender writes:Guido van Rossum1999-11-031-0/+3
| | | | | | | | | | | | | | | | I regularly find that pdb sets the breakpoint on the wrong line when I try to set a breakpoint on a function. This fixes the problem somewhat. The real problem is that pdb tries to parse the Python source code to find the first executable line. A better way might be to inspect the code object, or even have a variable in the code object co_firstexecutablelineno, but that's too much work. The patch fixes the problem when the first code line after the def statement contains the start *and* end of a triple-quoted string. The code assumed that the end of a triple-quoted string is not on the same line as the start, and so it would skip to the end of the *next* triple-quoted string.
* Oops. spawnl() and spawnle() should be implemented on Windows too.Guido van Rossum1999-11-021-7/+14
| | | | | Also added a comment that the 'p' variants (spawnvp() etc.) are *not* supported on Windows. (They could be by adding them to posixmodule.c)
* Correct typo in walk.__doc__ reported by Francois Pinard.Guido van Rossum1999-11-022-2/+2
|
* Checking in a bunch of spawn functions. These are only defined if weGuido van Rossum1999-11-021-2/+80
| | | | | | | | have fork and execv (and friends) but not spawnv. They operate exactly like the spawn functions on Windows. A limited set of needed constants is also defined (P_WAIT, P_NOWAIT etc.). Also add getenv() as a familiar alias for environ.get().
* New module by Moshe Zadka (submitted on Sept. 25). This unifies theGuido van Rossum1999-10-261-0/+57
| | | | | functionality of cmp.py and cmpcache.py, which are hereby declared obsolescent.
* Patch by Michael Hudson: when the object of attribute expansion is aGuido van Rossum1999-10-261-3/+26
| | | | | class instance, include the class attributes in the list of possible expansions.
* Fix by Moshe Zadka (cleaned up and documented by GvR) to break out theGuido van Rossum1999-10-261-12/+27
| | | | | request handling into separate parse_request() and handle_request() methods.
* Don't assume GNU tar -- generate tar file and compress in separate steps.Greg Ward1999-10-231-12/+23
| | | | | | Now supports the full range of intended formats (tar, ztar, gztar, zip). "-f" no longer a short option for "--formats" -- conflicts with new global option "--force"!
* Removed massive comment speculating about needlessly complex variationsGreg Ward1999-10-231-139/+0
| | | | on the manifest file syntax.
* Qualified use of 'newer_group' function.Greg Ward1999-10-231-1/+1
|
* Fix how we run 'zip' -- give explicit .zip extension.Greg Ward1999-10-231-1/+1
|
* In helo() and ehlo(), Don't fail when gethostbyaddr() fails -- justGuido van Rossum1999-10-221-2/+10
| | | | keep whatever gethostname() returns. After a suggestion by Doug Wyatt.
* Fix PR#107: wm_colormapwindows() did the wrong thing when presentedGuido van Rossum1999-10-201-1/+3
| | | | more than one window argument.
* Test output.Guido van Rossum1999-10-191-0/+28
| | | | | (XXX perhaps a bit too verbose; in particular it is sensitive to all the doc strings.)
* Rewritten -- this now tests the binascii *except* for the binhexGuido van Rossum1999-10-191-44/+85
| | | | module, which is tested by test_binhex.py.
* Test output for test_binhex.py.Guido van Rossum1999-10-191-0/+1
|
* This test really only tests the binhex module.Guido van Rossum1999-10-191-2/+2
| | | | Renamed it and adapted a comment and an error message.
* print a warning if the password will be echoed.Jeremy Hylton1999-10-181-22/+26
| | | | | | At import time, getpass will be bound to the appropriate platform-specific function. If the platform's echo-disabler is not available, default_getpass, which prints the warning, will be used