summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Thomas Heller <thomas.heller@ion-tof.com>:Fred Drake2000-04-131-7/+8
| | | | | | | ihooks.ModuleLoader does not implement reload(mod) correctly: If mod has already been loaded by ModuleLoader, it has been returned from a cache. Added an additional parameter to import_it() to force reloading.
* M.-A. Lemburg <mal@lemburg.com>:Fred Drake2000-04-131-0/+8
| | | | Added test for Unicode string concatenation.
* M.-A. Lemburg <mal@lemburg.com>:Fred Drake2000-04-131-4/+40
| | | | Added more documentation. Clarified some existing comments.
* M.-A. Lemburg <mal@lemburg.com>:Fred Drake2000-04-131-0/+1
| | | | Added test output for Unicode string concatenation test.
* Deleted trailing whitespace. This is really a way to be able to addGuido van Rossum2000-04-111-14/+14
| | | | | | | | | a missing part of the previous checkin message: Marc-Andre Lemburg: Added encoding name attributes to wrapper classes which allow applications to check the used encoding names.
* Marc-Andre Lemburg:Guido van Rossum2000-04-111-1/+1
| | | | | | The maxsplit functionality in .splitlines() was replaced by the keepends functionality which allows keeping the line end markers together with the string.
* Marc-Andre Lemburg:Guido van Rossum2000-04-111-23/+119
| | | | | Added .writelines(), .readlines() and .readline() to all codec classes.
* Marc-Andre Lemburg:Guido van Rossum2000-04-111-2/+1
| | | | | Modified .splitlines() tests according to the changes in stringobject.c.
* Marc-Andre Lemburg:Guido van Rossum2000-04-111-2/+1
| | | | | Modified .splitlines() tests according to the changes in unicodeobject.c.
* Christian Tismer: added test to ensure that multiplication commutes.Guido van Rossum2000-04-101-0/+2
| | | | | | [The test is in a slightly odd place, in test_division_2; but it exercises the recent change to long_mult(), and that's all we really ask for. --GvR]
* Implement suggestion from Lawrence Kesteloot in PR#280, to change theGuido van Rossum2000-04-101-6/+7
| | | | | | | | | | | | | | | default list of files from () to None, and explicitly test for None before defaulting to sys.argv[1:]. This means that if you pass in an explicit empty list, it will read stdin instead of defaulting to sys.argv[1:]. This fixes a buglet in the test script (when called with options but without files, it chokes when it tries to interpret the options as files). Lawrence adds: "I suspect that this is a safe change, because I can't imagine someone actively passing in an empty list when they want sys.argv used." I agree.
* Fredrik Lundh: new snapshot. Mostly reindented.Guido van Rossum2000-04-103-485/+490
| | | | | This one should work with unicode expressions, and compile a bit more silently.
* Some cleanup -- don't use splitfields/joinfields, standardizeGuido van Rossum2000-04-101-19/+17
| | | | indentation (tabs only), rationalize some code in urljoin...
* Match the error messages to say "(most recent call last)" like theGuido van Rossum2000-04-101-5/+5
| | | | built-in messages.
* Use a constant to specify the number of child threads to create.Fred Drake2000-04-101-4/+7
| | | | | | | | | | | Instead of assuming that the number process ids of the threads is the same as the process id of the controlling process, use a copy of the dictionary and check for changes in the process ids of the threads from the thread's process ids in the parent process. This makes the test make more sense on systems which assign a new pid to each thread (i.e., Linux). This doesn't fix the other problems evident with this test on Linux.
* Marc-Andre Lemburg:Guido van Rossum2000-04-101-0/+29
| | | | | | | | * '...%s...' % u"abc" now coerces to Unicode just like string methods. Care is taken not to reevaluate already formatted arguments -- only the first Unicode object appearing in the argument mapping is looked up twice. Added test cases for this to test_unicode.py.
* Marc-Andre Lemburg:Guido van Rossum2000-04-101-1/+58
| | | | * More test cases for test_contains.py.
* Don't be so strict in checking AttributeError -- the error messageGuido van Rossum2000-04-101-2/+2
| | | | recently changed.
* Output from test_zipfile.py.Guido van Rossum2000-04-101-0/+1
|
* Test for zipfile.py, by Jim Ahlstrom.Guido van Rossum2000-04-101-0/+26
|
* Define 'self.force' in the constructor and remove the hack in '__getattr__()'Greg Ward2000-04-101-5/+6
| | | | to account for it not being defined in the constructor.
* Delete some debugging print statements.Greg Ward2000-04-102-4/+0
|
* Added a check for the 'force' attribute in '__getattr__()' -- better thanGreg Ward2000-04-101-6/+10
| | | | | | crashing when self.force not defined. Revise 'copy_file()' and 'copy_tree()' docstrings accordingly. Remove 'hasattr()' check for 'self.force' from 'make_file()'.
* Added optional 'prefix' arguments to 'get_python_inc()' andGreg Ward2000-04-101-4/+10
| | | | 'get_python_lib()'.
* Better variable names here and there.Greg Ward2000-04-101-18/+18
|
* Added '--force' option -- very clear what it means for building (ignoreGreg Ward2000-04-104-3/+21
| | | | | timestamps), so every build_* command has 'self.force', which follows the 'build' command if not set by the user.
* Removed global '--force' option -- just too vague a concept to be applicableGreg Ward2000-04-102-13/+14
| | | | | | to all commands in the same way. Several Command methods now either expect 'self.force' to be defined, or check if it is defined and assume it's false if not.
* Added __version__ to store the Distutils version number.Greg Ward2000-04-101-0/+2
|
* Ditched the unused 'list_only' option.Greg Ward2000-04-091-3/+4
| | | | | | Added code to include source files from 'build_clib' command to default file list -- currently this won't work, since 'build_clib' doesn't have a 'get_source_files()' method!
* Catch DistutilsFileError in addition to DistutilsExecError in 'setup()'.Greg Ward2000-04-091-1/+1
|
* Added (currently) pointless and trivial main body (for future tests).Greg Ward2000-04-091-0/+4
|
* This little note is to clarify things for people who go poking around theGreg Ward2000-04-091-0/+18
| | | | Python library hoping to find out more about the Distutils.
* Fred Gansevles <gansevle@cs.utwente.nl>:Fred Drake2000-04-071-1/+1
| | | | | The copytree function doesn't pass the symlinks parameter in recursicve calls
* Add missing import of 'usage' string.Greg Ward2000-04-061-2/+2
|
* Marc-Andre's third try at this bulk patch seems to work (except thatGuido van Rossum2000-04-056-46/+141
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | his copy of test_contains.py seems to be broken -- the lines he deleted were already absent). Checkin messages: New Unicode support for int(), float(), complex() and long(). - new APIs PyInt_FromUnicode() and PyLong_FromUnicode() - added support for Unicode to PyFloat_FromString() - new encoding API PyUnicode_EncodeDecimal() which converts Unicode to a decimal char* string (used in the above new APIs) - shortcuts for calls like int(<int object>) and float(<float obj>) - tests for all of the above Unicode compares and contains checks: - comparing Unicode and non-string types now works; TypeErrors are masked, all other errors such as ValueError during Unicode coercion are passed through (note that PyUnicode_Compare does not implement the masking -- PyObject_Compare does this) - contains now works for non-string types too; TypeErrors are masked and 0 returned; all other errors are passed through Better testing support for the standard codecs. Misc minor enhancements, such as an alias dbcs for the mbcs codec. Changes: - PyLong_FromString() now applies the same error checks as does PyInt_FromString(): trailing garbage is reported as error and not longer silently ignored. The only characters which may be trailing the digits are 'L' and 'l' -- these are still silently ignored. - string.ato?() now directly interface to int(), long() and float(). The error strings are now a little different, but the type still remains the same. These functions are now ready to get declared obsolete ;-) - PyNumber_Int() now also does a check for embedded NULL chars in the input string; PyNumber_Long() already did this (and still does) Followed by: Looks like I've gone a step too far there... (and test_contains.py seem to have a bug too). I've changed back to reporting all errors in PyUnicode_Contains() and added a few more test cases to test_contains.py (plus corrected the join() NameError).
* Mark Hammond:Fred Drake2000-04-051-0/+2
| | | | | | This patch fixes the mmap module on Windows 9x. Also updates the mmap test to remove the test file.
* Work the Tcl version number in the path we search for.Guido van Rossum2000-04-041-2/+3
|
* Skip Montanaro submits a simple patch that makes encode() and decode()Guido van Rossum2000-04-041-0/+4
| | | | recognize the '7bit' and '8bit' encodings, to simplify use.
* Patch by Fred Gansevles.Guido van Rossum2000-04-041-9/+15
| | | | | | | | | | | This patch solves 2 problems of the os module. 1) Bug ID #50 (case-mismatch wiht "environ.get(..,..)" and "del environ[..]") 2) os.environ.update (dict) doesn't propagate changes to the 'real' environment (i.e doesn't call putenv) This patches also has minor changes specific for 1.6a The string module isn't used anymore, instead the strings own methods are used.
* Since Thomas Wouters kept complaining that he wants access to the theGuido van Rossum2000-04-041-0/+3
| | | | | | | | Unix From lines, change the UnixMailbox class so that _search_start() positions the file *before* the Unix From line instead of after it; change _search_end() to skip one line before looking for the next From line. The rfc822.Message class automatically recognizes these Unix From lines and squirrels them away in the 'unixfrom' instance variable.
* Reorganization: ripped util.py to shreds, creating in the process:Greg Ward2000-04-045-664/+719
| | | | | | | | | - file_util.py: operations on single files - dir_util.py: operations on whole directories or directory trees - dep_util.py: simple timestamp-based dependency analysis - archive_util.py: creation of archive (tar, zip, ...) files The functions left in util.py are miscellany that don't fit in any of the new files.
* Reorganization: moved the Distribution class from core.py to dist.py, andGreg Ward2000-04-043-933/+963
| | | | | | the Command class from core.py to cmd.py. No other code needs changing though; distutils.core still provides the Command and Distribution classes, although indirectly now.
* UserString class from Peter Funk <pf@artcom-gmbh.de>.Fred Drake2000-04-033-0/+386
|
* This patch looks large, but it just deletes the ^M characters andAndrew M. Kuchling2000-04-023-482/+482
| | | | untabifies the files. No actual code changes were made.
* Untabified file to fix problems reported by tabnannyAndrew M. Kuchling2000-04-021-17/+17
|
* Mark Hammond: Uncomment call to delete test data when done.Fred Drake2000-04-011-1/+1
|
* Add a README file so that cvs update -P doesn't obliterate thisGuido van Rossum2000-03-311-0/+2
| | | | directory, and so that people have a clue as to why it exists.
* Fixed my simplification to Thomas' patch: winreg and win32api export the sameGreg Ward2000-03-311-8/+13
| | | | functions, but with different names.
* Zip file handling module, by Jim Ahlstrom.Guido van Rossum2000-03-311-0/+470
|
* Marc-Andre Lemburg: Error reporting in the codec registry and lookupGuido van Rossum2000-03-311-1/+5
| | | | mechanism is enhanced to be more informative.