summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Make close() identical to __del__() for a dumbdbm database. MakeTim Peters2003-07-133-5/+15
| | | | | | | closing idempotent (it used to raise a nuisance exception on the 2nd close attempt). Bugfix candidate? Probably, but arguable.
* SF patch #765238: fix fnmatch.__all__Raymond Hettinger2003-07-131-1/+1
| | | | (Contributed by George Yoshida.)
* delete unused local variable (pychecker caught)Skip Montanaro2003-07-131-1/+1
|
* More pre-2.3 build tweaks for the OS/2 EMX port:Andrew MacIntyre2003-07-133-263/+473
| | | | | | | | | | | | | | - separate the building of the core from the wrapper executables and the external modules (.PYDs), based on the Py_BUILD_CORE define; - clean up the generated import library definiton (.DEF file) to remove references to a number of non-static symbols that aren't part of the Python API and which shouldn't be exported by the core DLL; - compile the release build with -fomit-frame-pointer, for a small performance gain; - make "make clean" remove byte compiled Python library files.
* Initialize thread_id to 0 in unthreaded build. Fixes #770247.Martin v. Löwis2003-07-131-0/+4
|
* SF bug #769142: CallTip trimming may loop forever.Raymond Hettinger2003-07-131-3/+1
| | | | Needs to be backported to both IDLE and IDLEFORK.
* Patch #770245: Pass LDFLAGS to pgen creation.Martin v. Löwis2003-07-131-1/+1
|
* Treat irix64 like irix. Fixes #764560. Will backport to 2.2.Martin v. Löwis2003-07-132-3072/+2237
|
* Reworked test_warnings.py:Raymond Hettinger2003-07-132-56/+81
| | | | | | | | | | | | | * It ran fine under "python regrtest.py test_warnings" but failed under "python regrtest.py" presumably because other tests would add to filtered warnings and not reset them at the end of the test. * Converted to a unittest format for better control. Renamed monkey() and unmonkey() to setUp() and tearDown(). * Increased coverage by testing all warnings in __builtin__. * Increased coverage by testing regex matching of specific messages.
* This test failed on WindowsME because the full file path did not getRaymond Hettinger2003-07-132-6/+6
| | | | | | reported consistently with the *nix world. 'Lib/test/test_warnings.py' came out as 'lib\test\test_warnings.py'. The basename is all we care about so I used that.
* Repaired typos in comments.Tim Peters2003-07-132-2/+2
|
* Fixed critical shutdown race in _Database._commit.Tim Peters2003-07-132-5/+27
| | | | | | | | Related to SF patch 723231 (which pointed out the problem, but didn't fix it, just shut up the warning msg -- which was pointing out a dead- serious bug!). Bugfix candidate.
* SF bug #706546: u''.translate not documentedRaymond Hettinger2003-07-131-1/+11
| | | | | Clarified the difference between translate methods for string objects and Unicode objects.
* 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.
* SF bug #770107: Typo in documentation of resource moduleRaymond Hettinger2003-07-131-2/+2
|
* Update for new module and new builtin.Raymond Hettinger2003-07-121-0/+3
|
* _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-123-14/+22
|
* Fix missing parenthesisRaymond Hettinger2003-07-121-1/+1
|
* SF patch #726751: Clarify docs for except target assignmentRaymond Hettinger2003-07-121-8/+20
| | | | | Brett found that the tutorial didn't really explain what was happening with exception targets. Hopefully, this sheds some light on the subject.
* Expose the 'master' instance mentioned in the docs.Raymond Hettinger2003-07-111-0/+1
|
* Document Jim Fulton's docttest extensions.Raymond Hettinger2003-07-111-8/+70
|
* Don't include slash in search string; it's OS-specific.Jeremy Hylton2003-07-111-1/+1
|
* The Unpickler forget about its find_class attribute.Jeremy Hylton2003-07-111-0/+3
|
* Minor fixups and added sections for iterators and generators.Raymond Hettinger2003-07-111-3/+117
|
* Add whitespace.Jeremy Hylton2003-07-111-3/+3
|
* 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.
* - fix typoFred Drake2003-07-111-1/+1
| | | | | - there's a weird variable name here (zimpimport), but I'll leave that for someone that's familiar with the ZIP import support
* 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
|
* normalize whitespaceFred Drake2003-07-111-78/+79
|
* update the reference to the Apple Publications Style GuideFred Drake2003-07-111-4/+2
|
* SF #767592: unittest docs don't suggest "unittest.main()"Raymond Hettinger2003-07-101-0/+96
| | | | | Expanded docs to have a quick start example showing how to create and run tests.
* avoid testing for -Kthread or -pthread if the default build environmentSkip Montanaro2003-07-102-2240/+3085
| | | | supports pthreads
* fix stupid typoFred Drake2003-07-101-1/+1
|
* SF Patch 763681Kurt B. Kaiser2003-07-101-4/+4
| | | | "Support IDLE Edit of .py/.pyw from idlelib"
* Missing markup.Raymond Hettinger2003-07-101-1/+1
|
* 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
|
* update OS/2 EMX port notesAndrew MacIntyre2003-07-101-4/+9
|
* 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.
* patch #764612 - find DB 4.1/4.0/3.x on FreeBSD and systems with similarAndrew MacIntyre2003-07-101-2/+3
| | | | installation location policies.
* SF patch #768187: replace apply(f, args, kwds) with f(*args, **kwds)Raymond Hettinger2003-07-0910-16/+14
|
* Add versionadded. Remove duplicate "to"Neal Norwitz2003-07-091-1/+2
|