summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* More comments about why not closing a dumddbm properly can be a disaster.Tim Peters2003-07-131-3/+7
|
* SF 748201: time.strptime() should display format and date on errorRaymond Hettinger2003-07-131-1/+2
| | | | Usability fix. Makes the error message more helpful.
* _commit(): Modernization.Tim Peters2003-07-121-2/+2
|
* There's a persistent rumor on the spambayes mailing list that dumbdbmTim Peters2003-07-121-28/+69
| | | | | | | | | | | | | | | | | databases are associated with corruption problems, so I studied this code carefully and ran some brutal stress tests. I didn't find any bugs, although it's unclear whether this code *intends* that __setitem__ can leave the directory file out of synch with the data file (so if a dumbdbm isn't properly closed, and the value of an existing key was ever replaced, corruption is almost certain, where "corruption" means the directory file is out of synch with the data file). Added many comments and generally modernized the code. Examples of the latter: we have better ways of reading a whole file line-by-line now; eval() now tolerates a trailing newline; the %r format code can be used to avoid explicit repr/backtick calls; and the code often broke tuples into their components when it was clearer and faster to just leave them as tuples.
* Patch #764470: Fix marshalling of faults. Will backport to 2.2.Martin v. Löwis2003-07-121-1/+9
|
* Patch 549151, rev4: redirect posts for 301 also. Will backport to 2.2.Martin v. Löwis2003-07-121-5/+5
|
* Expose the 'master' instance mentioned in the docs.Raymond Hettinger2003-07-111-0/+1
|
* Don't include slash in search string; it's OS-specific.Jeremy Hylton2003-07-111-1/+1
|
* Change warnings to avoid importing re module during startup.Jeremy Hylton2003-07-113-43/+91
| | | | | | | | | Add API function simplefilter() that does not create or install regular expressions to match message or module. Extend the filters data structure to store None as an alternative to re.compile(""). Move the _test() function to test_warnings and add some code to try and avoid disturbing the global state of the warnings module.
* patch #766650 - whichdb not identifying dbm DBs when dbm linked with gdbmAndrew MacIntyre2003-07-111-2/+5
| | | | | | | | | | | | | At this point, the problem appears particular to the OS/2 EMX port of gdbm (which is at v1.7.3) - this combination produces a .pag file but no .dir file. A more sophisticated patch which checks magic numbers when dbm.library indicates that dbm is linked to gdbm, and there is no .dir file, is still attached to the above patch entry for reconsideration after 2.3 is released. This checkin applies a workaround specific to the known failure case.
* [ 767645 ] correctly set the os.path.supports_unicode_filenames flag for OSXJust van Rossum2003-07-111-1/+5
|
* __setitem__: Use integer division for computing # of blocks.Tim Peters2003-07-111-2/+2
|
* Added a new randomized test.Tim Peters2003-07-111-0/+28
|
* Fixed a bug that's been there from the beginning but wasn't noticedJust van Rossum2003-07-101-3/+3
| | | | | | | | until now: the inheritance of default values was the wrong way around. This caused app bundles to get a type of "BNDL" instead of "APPL". Apparently this is not a problem until you try to drag your app to the dock. ----------------------------------------------------------------------
* don't optimize empty stringsJust van Rossum2003-07-101-1/+1
|
* Fix wrong header name. The framework looks for auth_header.Jeremy Hylton2003-07-101-8/+10
|
* Extend the pwd & grp emulations to support accessing the pwd/grpAndrew MacIntyre2003-07-102-4/+78
| | | | | | record tuple by name as well as index, to match the behaviour of the pwd/grp extension modules for Unix. These emulation modules now pass test_pwd & test_grp.
* SF patch #768187: replace apply(f, args, kwds) with f(*args, **kwds)Raymond Hettinger2003-07-0910-16/+14
|
* fix to work on python <= 2.1Gregory P. Smith2003-07-091-2/+2
|
* bugfix: proper import bsddb exists belowGregory P. Smith2003-07-091-1/+0
|
* bsddb 4.1.6:Gregory P. Smith2003-07-095-10/+174
| | | | | | | | | | | * Extended DB & DBEnv set_get_returns_none functionality to take a "level" instead of a boolean flag. The boolean 0 and 1 values still have the same effect. A value of 2 extends the "return None instead of raising an exception" behaviour to the DBCursor set methods. This will become the default behaviour in pybsddb 4.2. * Fixed a typo in DBCursor.join_item method that made it crash instead of returning a value. Obviously nobody uses it. Wrote a test case for join and join_item.
* SF Bug 767794Kurt B. Kaiser2003-07-091-0/+2
| | | | "Break or continue outside loop causes crash"
* Fix SF bug 764095: Don't use network in test_httplib.Jeremy Hylton2003-07-082-14/+35
|
* Use Boolean values for the capturestderr flag.Fred Drake2003-07-071-3/+3
|
* Patch from Zooko to remove an experimental feature.Jeremy Hylton2003-07-071-9/+4
|
* New function sys.getcheckinterval(), to complement setcheckinterval().Tim Peters2003-07-061-2/+4
|
* #765903:Just van Rossum2003-07-041-5/+22
| | | | | | | - added bundle_id/--bundle-id option, to specify the CFBundleIndentifier #765615: - in the appropriate situation, prepend $PATH with our path instead of setting it.
* If a --python option is used to specify the Python to use in the #!Jack Jansen2003-07-041-1/+4
| | | | line also use this as the executable in the bundle.
* Fixes bug of timezone value being left as -1 when ``time.tzname[0] ==Brett Cannon2003-07-032-7/+8
| | | | | | | time.tzname[1] and not time.daylight`` is true when it should only when time.daylight is true. Tests are also fixed. Closes bug #763047 and its cohort #763052.
* Addendum to #764548: restore 2.1 compatibility.Just van Rossum2003-07-022-3/+9
|
* Fix and test for bug #764548:Just van Rossum2003-07-023-7/+17
| | | | | | Use isinstance() instead of comparing types directly, to enable subclasses of str and unicode to be used as patterns. Blessed by /F.
* fixed typo in commentJust van Rossum2003-07-021-1/+1
|
* On those systems lacking the AFMT_S16_NE symbol, the test was failingAndrew MacIntyre2003-07-021-1/+1
| | | | | | | because it was still looking in the ossaudiodev module namespace for this symbol. As the symbol has already been rebound as a global, use that instead.
* SF #764121, docstring for spawnlp incorrectNeal Norwitz2003-07-021-1/+1
|
* Fix SF bug #763637, 2.3b2 unpack tuple of wrong size in after_cancelNeal Norwitz2003-07-011-2/+4
| | | | | Tk 8.4 may return different values than 8.3. This fix should handle either version.
* - added (c)StringIO tests; cStringIO usage failed in the previousJust van Rossum2003-07-011-0/+16
| | | | version of plistlib.py (r1.2)
* - replaced a couple of asserts with proper exceptionsJust van Rossum2003-07-011-4/+5
| | | | - use isinstance instead of flaky file-detection code
* Make the classes exposed by threading.py new-style classes. This isTim Peters2003-07-011-3/+7
| | | | mostly for convenience and to aid debugging.
* Resolved minor XXX question in the obvious way.Tim Peters2003-07-011-1/+1
|
* Fix SF bug #763023, difflib.py: ratio() zero division not caughtNeal Norwitz2003-07-012-3/+20
| | | | Backport candidate
* connector(): You can't use an empty string as an argument to connect()Tim Peters2003-07-011-1/+1
| | | | on Windows.
* Fix SF bug #763770, test_socket_ssl crashNeal Norwitz2003-07-011-2/+2
| | | | Don't run any tests if there is no ssl support.
* Test Brett's addition of __all__ to Queue.Raymond Hettinger2003-07-011-0/+1
|
* Add __all__ .Brett Cannon2003-07-011-0/+2
|
* Fix SF #763362, test_posixpath failedNeal Norwitz2003-07-011-4/+6
| | | | | Don't check expanduser('~') if the home directory == the root directory (ie, we are running as root).
* Fix typo in error messageNeal Norwitz2003-06-301-1/+1
|
* Don't require that a RuntimeError is raised when playing a secondWalter Dörwald2003-06-301-5/+9
| | | | | | | sound while the first one is still running, as the first one one might already have finished. Fixes part of SF bug #763052.
* Fix SF 762891: "del p[key]" on proxy object raises SystemError()Raymond Hettinger2003-06-301-0/+11
|
* Fix SF #754870, SSL crash interpreter when remote side closes during connectNeal Norwitz2003-06-301-1/+37
| | | | Also fix a memory leak.
* restore 2.2 compatibility:Just van Rossum2003-06-291-11/+11
| | | | | - don't use "abc" in aString - don't reorganize extension modules when not using zipimport