summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix [ 771097 ] frozen programs fail due to implicit import of "warnings".Mark Hammond2003-07-152-8/+40
| | | | | | If the initial import of warnings fails, clear the error. When the module is actually needed, if the original import failed, see if it has managed to find its way to sys.modules yet and if so, remember it.
* Indexing is a mess; try to get the link targets closer to the relevantFred Drake2003-07-152-14/+11
| | | | text. There needs to be a better way.
* process_commands_wrap_deferred:Fred Drake2003-07-151-5/+13
| | | | | | - fix comment describing what this is for - add lots of indexing macros to this call Closes SF bug #518989.
* Try to clean up some indexing relevant to the import statement.Fred Drake2003-07-151-3/+3
| | | | Pertains to SF bug #518989.
* Fixed test and converted to unittest format.Raymond Hettinger2003-07-151-1/+0
| | | | | Checking // would call floor division but did not test that true division had become the default with 'from __future__ import division'.
* Fixed test and converted to unittest format.Raymond Hettinger2003-07-151-6/+25
| | | | | Checking // would call floor division but did not test that true division had become the default with 'from __future__ import division'.
* Discuss calling new-style types.Fred Drake2003-07-151-1/+9
| | | | Closes SF bug #453683.
* SF patch 763201: handling of SyntaxErrors in symbol table buildJeremy Hylton2003-07-152-3/+30
| | | | Bug fix candidate.
* SF patch 763201: handling of SyntaxErrors in symbol table buildJeremy Hylton2003-07-151-33/+47
| | | | | | | | | | | | | | Fixes for three related bugs, including errors that caused a script to be ignored without printing an error message. The key problem was a bad interaction between syntax warnings and syntax errors. If an exception was already set when a warning was issued, the warning could clobber the exception. The PyErr_Occurred() check in issue_warning() isn't entirely satisfying (the caller should know whether there was already an error), but a better solution isn't immediately obvious. Bug fix candidate.
* heck environment closed status before closing a cursors. Fixes #763928.Martin v. Löwis2003-07-151-1/+8
|
* Add various test cases from SF patch 543867.Walter Dörwald2003-07-151-1/+58
|
* [Patch #708374] Only apply the check for file size if the file is a regular ↵Andrew M. Kuchling2003-07-151-1/+2
| | | | file, not a character or block device.
* Make the prefix 7 spaces long, so the lines are properly aligned.Walter Dörwald2003-07-151-1/+1
|
* Remove proxy_print(), since that caused an inconsistency betweenFred Drake2003-07-141-10/+2
| | | | | "print repr(proxy(a))" and "proxy(a)" at an interactive prompt. Closes SF bug #722763.
* stylistic nits:Fred Drake2003-07-141-6/+8
| | | | | | - wrap some long lines - shorten others - fix indentation
* Markup consistency nits.Fred Drake2003-07-141-15/+17
|
* Added missing markup.Fred Drake2003-07-141-0/+2
|
* Fix unbalanced parenthesis in text.Raymond Hettinger2003-07-142-2/+2
|
* Fix missing parenthesisRaymond Hettinger2003-07-141-1/+1
|
* update norobots linkSkip Montanaro2003-07-141-1/+1
|
* Give dumbdbm a sync() method which Shelve can call. Should solve someSkip Montanaro2003-07-141-0/+2
| | | | database corruption problems with Spambayes.
* + libdumdbmSkip Montanaro2003-07-141-0/+1
|
* + libdumbdbmSkip Montanaro2003-07-141-0/+1
|
* minimal dumdbm module docSkip Montanaro2003-07-141-0/+57
|
* SF bug #738090: Section 13.3: htmllib.HTMLParser constructor definitionRaymond Hettinger2003-07-141-0/+3
| | | | | | amendment Add a clarifying cross-reference to the formatter module.
* SF patch #770521: make itertools type declarations staticRaymond Hettinger2003-07-141-24/+24
| | | | (Contributed by Andrew I MacIntyre.)
* SF bug #770601: CGIHTTPServer and environment variables (bug + solution)Raymond Hettinger2003-07-141-1/+1
| | | | | | | (contributed by Vincent Delft.) The script updated os.environ but failed to pass the whole environment to the child process (the CGI script).
* 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.