summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Fixed PR#106: winfo_visualsavailable() with the includeids=1 optionGuido van Rossum1999-10-181-3/+5
| | | | didn't properly handle the hex numbers returned.
* Fix for PR#111: when using the inplace option, give the new file theGuido van Rossum1999-10-181-3/+15
| | | | | same permissions as the old file, plugging a security hole. (Not using exactly the suggested bugfix.)
* os.fork raises AttributeError, not NameError, if fork() isn'tFred Drake1999-10-181-1/+1
| | | | supported. Pointed out by Moshe Zadka <moshez@math.huji.ac.il>.
* Based on comments from Paul Prescod:Fred Drake1999-10-161-2/+11
| | | | | If os.fork() doesn't exist, raise SystemError with an explanation at the top of the module. Added a note to the module docstring.
* Mainlining the string_methods branch. See branch revision logBarry Warsaw1999-10-122-860/+550
| | | | messages for specific changes.
* update to use threading module instead of thread.Jeremy Hylton1999-10-121-4/+4
|
* fixed a typo in a docstring, and slightly expanded the moduleBarry Warsaw1999-10-121-3/+2
| | | | docstring info for readfp().
* Fix PR#31 -- zfill() mishandles empty string.Guido van Rossum1999-10-111-1/+1
|
* Jeremy writes:Guido van Rossum1999-10-101-1/+2
| | | | | | | | I found the following patch helpful in tracking down a bug in some code. I had appended time, the module, instead of time.time(). Not sure if it is generally true that printing the repr of the object is good, but I expect that most unpicklable things will have fairly information and concise reprs (like files or sockets or modules).
* Fix PR#3, submitted by Skip Montanaro: if no space appears after theGuido van Rossum1999-10-061-1/+1
| | | | colon, the first character of the value is lost.
* Added has_option(); fix bug in get() which botched interpolation ifGuido van Rossum1999-10-041-1/+16
| | | | '%(' was found in first position (found by Fred Drake).
* Urmpfh!Guido van Rossum1999-10-041-8/+43
| | | | | | | | | | | | | | | | | | | | | Withdraw the change that Fred just checked in -- it was a poorly documented feature, not a bug, to ignore I/O errors in read(). The new docstring explains the reason for the feature: """ this is designed so that you can specifiy a list of potential configuration file locations (e.g. current directory, user's home directory, systemwide directory), and all existing configuration files in the list will be read. """ Also add a lower-level function, readfp(), which takes an open file object (and optionally a filename). XXX There are some other problems with this module, but I don't have time to dig into these; in particular, there are complaints that the %(name)s substitution from the [DEFAULTS] section doesn't work correctly.
* ConfigParser.read(): Don't mask IOError exceptions.Fred Drake1999-10-041-5/+3
|
* Filter 'glob()' results so we only look at regular files.Greg Ward1999-10-031-2/+2
|
* Pass 'force' flag to 'new_compiler()'.Greg Ward1999-10-031-2/+3
|
* Don't import what we don't use.Greg Ward1999-10-031-1/+1
|
* Tweaked verbosity messages for byte-compilation.Greg Ward1999-10-032-4/+4
|
* Added 'force' and 'quiet' (negative alias for 'verbose') to theGreg Ward1999-10-031-83/+84
| | | | | | | | | | | | | | | | | | global options table. Every Command instance now has its own copies of the global options, which automatically fallback to the Distribution instance. Changes: - initialize them in constructor - added '__getattr__()' to handle the fallback logic - changed every 'self.distribution.{verbose,dry_run}' in Command to 'self.{verbose,dry_run}'. - filesystem utility methods ('copy_file()' et al) don't take 'update' parameter anymore -- instead we pass 'not force' to the underlying function as 'update' Changed parsing of command line so that global options apply to all commands as well -- that's how (eg.) Command.verbose will be initialized. Simplified 'make_file()' to use 'newer_group()' (from util module). Deleted some cruft. Some docstring tweaks.
* Fixed 'mkpath()' to normalize the path right off the bat -- cleans upGreg Ward1999-10-031-5/+7
| | | | | | | the code a bit and should make it work under Windows even with trailing backslash. Fixed a couple of docstrings. Added comment about 'make_file()' possibly being redundant and unnecessary.