summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Added test case for accessing gsbm database by key after it's closed;Fred Drake2000-02-071-1/+7
| | | | it should raise gdbm.error.
* Added 'libraries' option for use by the 'build_lib' command.Greg Ward2000-02-051-1/+2
| | | | Typo fix.
* Run the 'build_lib' command before building extensions, if necessary.Greg Ward2000-02-051-0/+6
|
* New command to build C (and C++, hopefully) libraries needed by extensionsGreg Ward2000-02-052-0/+322
| | | | in the current distribution: motivated by PIL's libImaging.
* Tweaked various comments, docstrings, and error messages.Greg Ward2000-02-051-2/+12
|
* rapid evolution towards producing real .pyc files (even though I don'tJeremy Hylton2000-02-041-11/+176
| | | | | | | | | | | | | | | | | handle most of the language syntax yet) create NestedCodeGenerator used to generator the separate code object that needs to be passed as an argument to MAKE_FUNCTION when a def stmt is found (probably useful for class too) change CodeGenerator.visitFunction to use the NestedCG add CompiledModule class to handle creation of .pyc (pretty minimal for now) add makeCodeObject method to PythonVMCode that replaces symbolic names with indexes into slots of the code code. the design of this class will probably need to be revised.
* Added a simple test program to disassemble a file, invoked as __main__.Guido van Rossum2000-02-041-0/+27
|
* Actually, the previous batch's comment should have been different;Guido van Rossum2000-02-0420-48/+99
| | | | | | | | | | *this* set of patches is Ka-Ping's final sweep: The attached patches update the standard library so that all modules have docstrings beginning with one-line summaries. A new docstring was added to formatter. The docstring for os.py was updated to mention nt, os2, ce in addition to posix, dos, mac.
* The third and final doc-string sweep by Ka-Ping Yee.Guido van Rossum2000-02-0429-829/+942
| | | | | | | | The attached patches update the standard library so that all modules have docstrings beginning with one-line summaries. A new docstring was added to formatter. The docstring for os.py was updated to mention nt, os2, ce in addition to posix, dos, mac.
* More trivial comment -> docstring transformations by Ka-Ping Yee,Guido van Rossum2000-02-0430-1823/+1578
| | | | | | | | | | | | | | | | | | who writes: Here is batch 2, as a big collection of CVS context diffs. Along with moving comments into docstrings, i've added a couple of missing docstrings and attempted to make sure more module docstrings begin with a one-line summary. I did not add docstrings to the methods in profile.py for fear of upsetting any careful optimizations there, though i did move class documentation into class docstrings. The convention i'm using is to leave credits/version/copyright type of stuff in # comments, and move the rest of the descriptive stuff about module usage into module docstrings. Hope this is okay.
* 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>.