summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* checking in initial weekend's workJeremy Hylton2000-02-042-0/+424
| | | | | | | | | compile.py: ASTVisitor framework plus bits of a code generator that should be bug-for-buf compatible with compile.c misc.py: Set and Stack helpers test.py: a bit of simple sample code that compile.py will work on
* make p2c a packageJeremy Hylton2000-02-041-0/+0
|
* three files from the p2c cvs tree. the message here indicates theJeremy Hylton2000-02-042-0/+1893
| | | | | | | | revision number the p2c cvs tree. COPYRIGHT: 1.1 ast.py: 1.3 transformer.py: 1.11
* Improved an error message.Greg Ward2000-02-031-2/+5
| | | | Announce when we start building each extension (better feedback).
* Changed 'compile()' method to compile files one-at-a-time -- gives betterGreg Ward2000-02-031-28/+21
| | | | | feedback and, theoretically, the opportunity to set compiler flags on a per-file basis.
* These modules are now declared obsolete.Fred Drake2000-02-033-0/+0
|
* # module filecmpGuido van Rossum2000-02-031-38/+299
| | | | | | | | | | | | | | | # combo of old cmp, cmpcache and dircmp with redundancies removed # # bugs fixed: # dircmp.dircmp was not ignoring IGNORES # old stuff could falsely report files as "identical" when contents actually differed # # enhancements: # dircmp has a more straightforward interface #cmp enhanced by Moshe Zadca #dircmp enhanced byGordon McMillan [some layout changes by GvR]
* In _fileobject, optimize read() a bit (it could be really slow), andGuido van Rossum2000-02-021-14/+30
| | | | remove "import string" -- use string methods instead!
* Optimize abspath() slightly for the case that win32api can't beGuido van Rossum2000-02-021-6/+11
| | | | imported; in that case, abspath is replaced by a fallback version.
* Make read() and readlines() conform more to the file object interface:Guido van Rossum2000-02-021-3/+3
| | | | | the default arg for read() is -1, not None, and readlines() has an optional argument (which for now is ignored).
* Mass patch by Ka-Ping Yee:Guido van Rossum2000-02-0218-2642/+2640
| | | | | | | | | | | 1. Comments at the beginning of the module, before functions, and before classes have been turned into docstrings. 2. Tabs are normalized to four spaces. Also, removed the "remove" function from dircmp.py, which reimplements list.remove() (it must have been very old).
* Patch from Joe Van Andel: fix arg to % operator in warning.Greg Ward2000-02-021-2/+2
|
* Comment fix.Greg Ward2000-02-021-8/+13
| | | | | Always use normalized (with os.path.normpath()) versions of prefix and exec_prefix.
* Sjoerd Mullender writes:Guido van Rossum2000-02-011-5/+14
| | | | | | | | | | | | Fixed a TypeError: not enough arguments; expected 4, got 3. When authentication is needed, the default http_error_401 method calls retry_http_basic_auth. The default version of that method expected a data argument which wasn't provided, so now we provide the argument if it was given and we also made the data argument optional. Also changed other calls where data was optional to not pass data if it was not passed to the calling method (in line with other similar occurances).
* Allow either README or README.txt as a "standard file".Greg Ward2000-01-301-4/+16
|
* Fixed broken list extend in 'copy_tree()'.Greg Ward2000-01-301-2/+2
|
* Added 'description' class attribute to every command class (to help theGreg Ward2000-01-308-6/+26
| | | | | | | '--help-commands' option). Shuffled imports around in a few command modules to avoid expensive up-front import of sysconfig (and resulting delays in generating list of all commands).
* Added 'dist' command.Greg Ward2000-01-301-0/+2
|
* Improvements to the help system:Greg Ward2000-01-301-5/+89
| | | | | | | | * "--help" can now come either before or after particular commands to get help on and can give help on multiple commands, eg. "--help install dist" gives help on those two commands * added "--help-commands" option, implemented by the 'print_commands()' and 'print_command_list()' methods
* Added missing run of corresponding 'build' command.Greg Ward2000-01-303-0/+9
|
* EXPERIMENTALJeremy Hylton2000-01-201-0/+1063
| | | | | An extensible library for opening URLs using a variety protocols. Intended as a replacement for urllib.
* Change two occurrences of type(x) <> types.CodeType intoGuido van Rossum2000-01-191-2/+2
| | | | | | isinstance(x, types.CodeType). Suggested by Finn Bock.
* Fix indentation bug.Greg Ward2000-01-171-2/+2
|
* Catch OSError from 'spawnv()' in '_spawn_nt()'.Greg Ward2000-01-171-5/+12
| | | | Tweaked error messages in '_spawn_posix()'.
* Removed /GD switch -- currently ignored by MSVC.Greg Ward2000-01-171-1/+1
|
* Added compiler flags suggested by Thomas Heller: optimize, use multi-threadedGreg Ward2000-01-171-1/+1
| | | | RT library.
* Added missing import.Greg Ward2000-01-171-8/+23
| | | | Fixed 'make_release_tree()' to copy files if 'os.link()' doesn't exist.
* Added code to use Jim Ahlstrom's zipfile.py module if the external zipGreg Ward2000-01-171-5/+32
| | | | | command wasn't found or failed. (Code supplied by Thomas Heller <thomas.heller@ion-tof.com>.)
* Fix library filename methods -- there is no 'lib' prefix under DOS/Windows.Greg Ward2000-01-171-5/+2
|
* Always run sys.prefix and sys.exec_prefix through 'os.path.normpath()'Greg Ward2000-01-171-4/+4
| | | | before storing or using.
* Ditch unneeded imports.Greg Ward2000-01-171-1/+0
|
* Fix by Nick Russo in processing of timezone in test program; theGuido van Rossum2000-01-171-2/+4
| | | | ParsedDate didn't have the correct day of week.
* 'newer_group()' can now deal with missing files, in a way specified byGreg Ward2000-01-091-2/+17
| | | | the 'missing' parameter.
* Abstracted '_fix_link_args()' out of 'link_shared_object()'.Greg Ward2000-01-091-37/+133
| | | | | | | | | | | | | | Added 'link_static_lib()' method, and 'archiver' and 'archiver_options' class attributes to support it. Added 'link_executable()' method, and 'ld_exec' instance attribute to support it. 'newer_group()' is now able to handle missing files, so we don't have to kludge it by catching OSError when calling it. 'object_filenames()' and 'shared_object_filename()' now take 'keep_dir' flag parameters. 'library_filename()' and 'shared_library_filename()' now respect a directory component in the library name. Various comment updates/deletions.
* Removed a bunch of irrelevant parameters from 'link_static_lib()' signature.Greg Ward2000-01-091-8/+18
| | | | Added 'link_executable()' signature.
* Typo fix: 'file.warn' should have been 'manifest.warn' in a couple of places.Greg Ward2000-01-091-5/+5
|
* The correct RFC to reference is RFC-1521 (MIME part one), not 1421 (PEM).Guido van Rossum2000-01-031-4/+1
|
* redesign/rebuild around the ImportManager concept.Greg Stein2000-01-031-149/+291
|
* 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()'.