summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* - New builtin function enumerate(x), from PEP 279. Example:Guido van Rossum2002-04-261-0/+118
| | | | | enumerate("abc") is an iterator returning (0,"a"), (1,"b"), (2,"c"). The argument can be an arbitrary iterable object.
* Clean up uses of some deprecated features.Fred Drake2002-04-263-17/+20
| | | | Reported by Neal Norwitz on python-dev.
* Pass the full pathname to MSVC when compiling a debug version. ThisThomas Heller2002-04-251-0/+6
| | | | | allows the debugger to find the source without asking the user to browse for it.
* Append the PC specific include 'PC' and library 'PCBuild' directoriesThomas Heller2002-04-251-1/+8
| | | | | | | under NT - this allows distutils to work with the CVS version or the source distribution. Wrap a long line.
* Fix trivial typo.Thomas Heller2002-04-251-1/+1
|
* Add more tests for abstract isinstance() and issubclass().Neil Schemenauer2002-04-241-4/+93
|
* test_resource has no chance of running on Windows.Tim Peters2002-04-231-0/+1
|
* test_mmap started breaking on Windows, only when run after test_bsddb.Tim Peters2002-04-231-1/+1
| | | | | | | | | On Win2K it thought 'foo' started at byte offset 0 instead of at the pagesize, and on Win98 it thought 'foo' didn't exist at all. Somehow or other this is related to the new "in memory file" gimmicks in bsddb, but the old bsddb we use on Windows sucks so bad anyway I don't want to bother digging deeper. Flushing the file in test_mmap after writing to it makes the problem go away, so good enough.
* Unit tests for the changes in abstract.c version 2.101. The debugBarry Warsaw2002-04-231-0/+144
| | | | | | build's "undetected error" problems were originally detected with extension types, but we can whitebox test the same situations with new-style classes.
* Rewrote the PyUnit description so that it now recommends to useBarry Warsaw2002-04-231-6/+16
| | | | | run_suite() instead of run_unittest(). Best practice is to plan for multiple test classes.
* Add tests for the recent resource module change.Jeremy Hylton2002-04-232-0/+50
| | | | | | Also add a test that Python doesn't die with SIGXFSZ if it exceeds the file rlimit. (Assuming this will also test the behavior when the 2GB limit is exceed on a platform that doesn't have large file support.)
* Whitespace normalization. Unka Timmy would be proud.Barry Warsaw2002-04-232-57/+57
|
* SF patch 546244 by John Williams: add Text.dump() method.Guido van Rossum2002-04-231-1/+38
|
* There was a non-ascii character in the source. Replaced by a hex escape.Jack Jansen2002-04-231-1/+1
|
* whitespace fixup. test__all__ and test_sundry were failingAnthony Baxter2002-04-231-1/+1
| | | | for me on linux because of the inconsistent whitespace.
* don't fail if the audio device is busy, just skip.Anthony Baxter2002-04-231-1/+1
| | | | SF patch 545486
* SF patch [ 545523 ] patch for 514433 bsddb.dbopen (NULL)Anthony Baxter2002-04-231-19/+26
| | | | | | | | | | | | closes SF #514433 can now pass 'None' as the filename for the bsddb.*open functions, and you'll get an in-memory temporary store. docs are ripped out of the bsddb dbopen man page. Fred may want to clean them up. Considering this for 2.2, but not 2.1.
* Apply patch diff.txt from SF feature requestWalter Dörwald2002-04-222-1/+25
| | | | | | | | | http://www.python.org/sf/444708 This adds the optional argument for str.strip to unicode.strip too and makes it possible to call str.strip with a unicode argument and unicode.strip with a str argument.
* Fixes based on ideas from Christopher Smith:Jack Jansen2002-04-221-5/+21
| | | | | | | | - islink() now returns true for alias files - walk() no longer follows aliases while traversing - realpath() implemented, returning an alias-free pathname. As this could conceivably break existing code I think it isn't a bugfix candidate.
* tracking python idle changes:Steven M. Gava2002-04-221-1/+1
| | | | Provisional fix for writefile() [SF bug # 541730]
* tracking python idle changes:Steven M. Gava2002-04-221-4/+12
| | | | Patch #540583: Open MS Help Docs if available.
* Enable universal newlines on Windows. Note that NEWS needs more words!Tim Peters2002-04-211-1/+0
|
* Assorted code cleanups for readability. Greatly boosted the size of theTim Peters2002-04-211-26/+33
| | | | | | test data: this test fails on WIndows now if universal newlines are enabled (which they aren't yet, by default). I don't know whether the test will also fail on Linux now.
* Forward port of patch # 500311: Work around for buggy https servers.Martin v. Löwis2002-04-201-1/+2
| | | | Fixes #494762.
* Add test for eval() w/ free variables.Jeremy Hylton2002-04-202-0/+11
| | | | Related to SF bug #505315
* Fix com_arglist() and update grammar fragment.Jeremy Hylton2002-04-191-6/+3
| | | | | | | | | | | | | | | | | SF bug #522264 reported by Evelyn Mitchell. The code included a comment about "STAR STAR" which was translated into the code as the bogus attribute token.STARSTAR. This name never caused an attribute error because it was never retrieved. The code was based on an old version of the grammar that specified kwargs as two tokens ('*' '*'). I checked as far back as 2.1 and didn't find this production. The fix is simple, because token.DOUBLESTAR is the only token allowed. Also update the grammar fragment in com_arglist(). XXX I'll bet lots of other grammar fragments in comments are out of date, probably in this module and in compile.c.
* Fix SF #544995 (zlib crash on second flush call)Jeremy Hylton2002-04-191-0/+6
| | | | | | Bug fix by mhammond. Bug fix candidate for 2.2, not present in 2.1.
* Fix bug 544473 - "Queue module can deadlock".Mark Hammond2002-04-192-14/+191
| | | | | Use try/finally to ensure all Queue locks remain stable. Includes test case. Bugfix candidate.
* ceval.c/do_raise(): Tighten the test to disallow raising an instance ofTim Peters2002-04-181-0/+26
| | | | | | | | a str subclass. test_descr.py/string_exceptions(): New sub-test. For 2.3 only. Guido doesn't want this backported.
* Remove more out-of-date comments and clarify explanation of visit().Jeremy Hylton2002-04-181-7/+1
|
* Remove out-of-date explanation in doc strings,Jeremy Hylton2002-04-181-3/+1
| | | | as reported by Eric C. Newton.
* SF bug 544733: Cygwin test_mmap fix for Python 2.2.1Tim Peters2002-04-181-0/+2
| | | | | | | | Close a file before trying to unlink it, and apparently Cygwin needs writes to an mmap'ed file to get flushed before they're visible. Bugfix candidate, but I think only for the 2.2 line (it's testing features that I think were new in 2.2).
* SF bug 542984.Guido van Rossum2002-04-181-0/+20
| | | | | | | | | | | Change type_get_doc (the get function for __doc__) to look in tp_dict more often, and if it finds a descriptor in tp_dict, to call it (with a NULL instance). This means you can add a __doc__ descriptor to a new-style class that returns instance docs when called on an instance, and class docs when called on a class -- or the same docs in either case, but lazily computed. I'll also check this into the 2.2 maintenance branch.
* Apply diff3.txt from SF patch http://www.python.org/sf/536241Walter Dörwald2002-04-172-0/+41
| | | | | | | | | If a str or unicode method returns the original object, make sure that for str and unicode subclasses the original will not be returned. This should prevent SF bug http://www.python.org/sf/460020 from reappearing.
* Patch #531901 by Mark W. Alexander: adds a new distutils packagerMarc-André Lemburg2002-04-175-4/+976
| | | | | | base class (in bdist_packager) and two subclasses which make use of this base class: bdist_pkgtool (for Solaris) and bdist_sdux (for HP-UX).
* Added docstrings to the Profile class.Fred Drake2002-04-161-0/+31
| | | | | Avoid adding Python wrappers around the underlying C profiler if possible; the extra layer of calls can lead to confusion in interpreting the logs.
* SF bug 544647.Guido van Rossum2002-04-161-0/+27
| | | | | | | | | PyNumber_InPlaceMultiply insisted on calling sq_inplace_repeat if it existed, even if nb_inplace_multiply also existed and the arguments weren't right for sq_inplace_repeat. Change this to only use sq_inplace_repeat if nb_inplace_multiply isn't defined. Bugfix candidate.
* test_mktime(): Removed. This wasn't really testing anything usefulBarry Warsaw2002-04-161-6/+0
| | | | | | (or platform independent). Closes SF bug #460357. Bug fix candidate.
* Whitespace normalization, while using non-whitespace literals forBarry Warsaw2002-04-161-26/+26
| | | | intended whitespace.
* Expect test_email_codecs to be skipped -- few users or developers willGuido van Rossum2002-04-161-0/+1
| | | | have the needed optional Japanese codecs installed.
* Apparently 3 of the tests here rely on trailing whitespace and/or hardTim Peters2002-04-161-26/+26
| | | | | tab characters, so reverting the whitespace normalization. Barry, please repair this.
* Fewer deprecation warnings.Tim Peters2002-04-161-0/+5
|
* resetwarnings(): Remove extra space from docstring guts.Tim Peters2002-04-161-1/+1
|
* Whitespace normalization.Tim Peters2002-04-1623-88/+84
|
* resetwarnings(): change the docstring to reflect what the codeTim Peters2002-04-161-1/+1
| | | | | | | actually does. Note that the description in the Library Reference manual is already accurate. Bugfix candidate.
* Tighten up some warning filters, and break some dependencies on theTim Peters2002-04-169-16/+34
| | | | order in which the tests are normally run.
* OK, don't call resetwarnings().Tim Peters2002-04-161-2/+0
|
* It makes more sense to call resetwarnings() after every test runs thanTim Peters2002-04-164-9/+4
| | | | to keep doing that in every test that wants to filter a warning.
* I expect test_univnewlines to be skipped on Windows. I expect thisTim Peters2002-04-151-0/+1
| | | | | because it *is* skipped. I'm not entirely sure it should be skipped, but figuring that out would take actual thought <wink>.
* Reduce the number of test-suite DeprecationWarnings; start addingTim Peters2002-04-153-3/+12
| | | | resetwarnings() calls too.