]> granicus.if.org Git - python/log
python
22 years agoUse appropriate macros not the deprecated DL_IMPORT/DL_EXPORT macros
Neal Norwitz [Tue, 1 Jul 2003 20:15:21 +0000 (20:15 +0000)]
Use appropriate macros not the deprecated DL_IMPORT/DL_EXPORT macros

22 years agoMake the classes exposed by threading.py new-style classes. This is
Tim Peters [Tue, 1 Jul 2003 20:01:55 +0000 (20:01 +0000)]
Make the classes exposed by threading.py new-style classes.  This is
mostly for convenience and to aid debugging.

22 years agoResolved minor XXX question in the obvious way.
Tim Peters [Tue, 1 Jul 2003 19:28:44 +0000 (19:28 +0000)]
Resolved minor XXX question in the obvious way.

22 years ago- note that super() only applies to new-style classes;
Fred Drake [Tue, 1 Jul 2003 16:31:26 +0000 (16:31 +0000)]
- note that super() only applies to new-style classes;
  closes SF bug #764003
- fix markup for consistency

22 years agonormalize markup for consistency
Fred Drake [Tue, 1 Jul 2003 16:17:50 +0000 (16:17 +0000)]
normalize markup for consistency

22 years agoRemove carriage returns
Neal Norwitz [Tue, 1 Jul 2003 15:03:49 +0000 (15:03 +0000)]
Remove carriage returns

22 years agoFix SF bug #763023, difflib.py: ratio() zero division not caught
Neal Norwitz [Tue, 1 Jul 2003 14:59:46 +0000 (14:59 +0000)]
Fix SF bug #763023, difflib.py: ratio() zero division not caught

Backport candidate

22 years agoconnector(): You can't use an empty string as an argument to connect()
Tim Peters [Tue, 1 Jul 2003 14:49:32 +0000 (14:49 +0000)]
connector():  You can't use an empty string as an argument to connect()
on Windows.

22 years agoshowwarning() calls formatwarning(), not showwarning().
Tim Peters [Tue, 1 Jul 2003 14:37:59 +0000 (14:37 +0000)]
showwarning() calls formatwarning(), not showwarning().

Bugfix candidate.

22 years agoFix SF bug #763770, test_socket_ssl crash
Neal Norwitz [Tue, 1 Jul 2003 13:44:28 +0000 (13:44 +0000)]
Fix SF bug #763770, test_socket_ssl crash

Don't run any tests if there is no ssl support.

22 years agoImprove the wording a bit
Raymond Hettinger [Tue, 1 Jul 2003 07:19:17 +0000 (07:19 +0000)]
Improve the wording a bit

22 years agoFix spelling, grammar, usage, and markup.
Raymond Hettinger [Tue, 1 Jul 2003 06:29:18 +0000 (06:29 +0000)]
Fix spelling, grammar, usage, and markup.

22 years agoSF #751062: Tutorial: remove string exceptions, add parnassus, #posts
Raymond Hettinger [Tue, 1 Jul 2003 06:19:34 +0000 (06:19 +0000)]
SF #751062:  Tutorial: remove string exceptions, add parnassus, #posts
(Contributed by Gerritt Holl)

* Remove the last mentions of string exceptions
* Reference a third-party repository of programs
* Minor clarification of comp.lang.py posting volumes

22 years agoTest Brett's addition of __all__ to Queue.
Raymond Hettinger [Tue, 1 Jul 2003 05:49:02 +0000 (05:49 +0000)]
Test Brett's addition of __all__ to Queue.

22 years agoAdd __all__ .
Brett Cannon [Tue, 1 Jul 2003 05:34:27 +0000 (05:34 +0000)]
Add __all__ .

22 years agoMake temporary change of using _strptime for time.strptime permanent.
Brett Cannon [Tue, 1 Jul 2003 05:16:08 +0000 (05:16 +0000)]
Make temporary change of using _strptime for time.strptime permanent.

Flesh out docs to better explain time.strptime (closes bug #697990).

22 years agoSF bug 753592, websucker bug
Neal Norwitz [Tue, 1 Jul 2003 04:14:28 +0000 (04:14 +0000)]
SF bug 753592, websucker bug

Pass the proper variable when the user supplies a directory.
Will backport.

22 years agoFix SF #763362, test_posixpath failed
Neal Norwitz [Tue, 1 Jul 2003 03:33:31 +0000 (03:33 +0000)]
Fix SF #763362, test_posixpath failed
Don't check expanduser('~') if the home directory == the root directory
(ie, we are running as root).

22 years agoSupport 'mbcs' as a 'built-in' encoding, so the C API can use it without
Mark Hammond [Tue, 1 Jul 2003 00:13:27 +0000 (00:13 +0000)]
Support 'mbcs' as a 'built-in' encoding, so the C API can use it without
defering to the encodings package.
As described in [ 763111 ] mbcs encoding should skip encodings package

22 years agoAdd versionadded info for the 2 new threading module functions
Neal Norwitz [Mon, 30 Jun 2003 21:47:47 +0000 (21:47 +0000)]
Add versionadded info for the 2 new threading module functions

22 years agoDocument the DISTUTILS_DEBUG variable.
Thomas Heller [Mon, 30 Jun 2003 19:33:29 +0000 (19:33 +0000)]
Document the DISTUTILS_DEBUG variable.
Closes sf #761401.

Backport candidate.

22 years agoFix typo in error message
Neal Norwitz [Mon, 30 Jun 2003 19:22:12 +0000 (19:22 +0000)]
Fix typo in error message

22 years agoWe are now post-beta 2.
Fred Drake [Mon, 30 Jun 2003 13:38:38 +0000 (13:38 +0000)]
We are now post-beta 2.

22 years agoAdded missing name (textwrap.dedent() docs).
Fred Drake [Mon, 30 Jun 2003 12:18:52 +0000 (12:18 +0000)]
Added missing name (textwrap.dedent() docs).

22 years agoDon't require that a RuntimeError is raised when playing a second
Walter Dörwald [Mon, 30 Jun 2003 11:57:52 +0000 (11:57 +0000)]
Don't require that a RuntimeError is raised when playing a second
sound while the first one is still running, as the first one
one might already have finished.

Fixes part of SF bug #763052.

22 years agoSF bug #762990: Awful Grammar in Python Tutorial
Raymond Hettinger [Mon, 30 Jun 2003 04:27:31 +0000 (04:27 +0000)]
SF bug #762990: Awful Grammar in Python Tutorial

Fixed a nit.

22 years agoFix SF 762891: "del p[key]" on proxy object raises SystemError()
Raymond Hettinger [Mon, 30 Jun 2003 04:18:48 +0000 (04:18 +0000)]
Fix SF 762891:  "del p[key]" on proxy object raises SystemError()

22 years agoMerge branch updates back into the main trunk
Raymond Hettinger [Mon, 30 Jun 2003 03:35:06 +0000 (03:35 +0000)]
Merge branch updates back into the main trunk

22 years agoFix SF #754870, SSL crash interpreter when remote side closes during connect
Neal Norwitz [Mon, 30 Jun 2003 03:25:20 +0000 (03:25 +0000)]
Fix SF #754870, SSL crash interpreter when remote side closes during connect

Also fix a memory leak.

22 years agoBump version string to "2.3b2+".
Tim Peters [Mon, 30 Jun 2003 02:14:28 +0000 (02:14 +0000)]
Bump version string to "2.3b2+".

22 years agoFix typo, refer to proper argument name
Neal Norwitz [Mon, 30 Jun 2003 01:54:04 +0000 (01:54 +0000)]
Fix typo, refer to proper argument name

22 years agorestore 2.2 compatibility:
Just van Rossum [Sun, 29 Jun 2003 22:20:26 +0000 (22:20 +0000)]
restore 2.2 compatibility:
- don't use "abc" in aString
- don't reorganize extension modules when not using zipimport

22 years ago- added --semi-standalone option that builds apps that depend on an
Just van Rossum [Sun, 29 Jun 2003 21:54:12 +0000 (21:54 +0000)]
- added --semi-standalone option that builds apps that depend on an
  installed Python, yet include any modules not in the std lib
- reworked extension module inclusion code: put all .so files in
  a subdirectory of Contents/Resources/, but more importantly,
  correctly support extensions that are submodules.

22 years agoMore tests
Raymond Hettinger [Sun, 29 Jun 2003 20:36:23 +0000 (20:36 +0000)]
More tests

* Test with infinite inputs (using take() on the output)
* Test whether GC can find and eliminate cycles.

22 years agoFix broken markup, & tweak a couple of things for consistency.
Fred Drake [Sun, 29 Jun 2003 18:12:23 +0000 (18:12 +0000)]
Fix broken markup, & tweak a couple of things for consistency.

22 years agoFix sf bug 666219: assertion error in httplib.
Jeremy Hylton [Sun, 29 Jun 2003 17:55:05 +0000 (17:55 +0000)]
Fix sf bug 666219: assertion error in httplib.

The obvious way for this assertion to fail is if the LineAndFileWrapper constructor is called when an empty line.  Raise a BadStatusError before the call.

22 years agoAdd several news items for changes I made since b1.
Jeremy Hylton [Sun, 29 Jun 2003 17:25:39 +0000 (17:25 +0000)]
Add several news items for changes I made since b1.

22 years agoWhitespace normalization.
Tim Peters [Sun, 29 Jun 2003 17:24:17 +0000 (17:24 +0000)]
Whitespace normalization.

22 years agoRemoved XXX comments about missing threading.py functions.
Tim Peters [Sun, 29 Jun 2003 17:12:30 +0000 (17:12 +0000)]
Removed XXX comments about missing threading.py functions.

22 years agoAdded news about os.environ['PYTHONINSPECT'] = 'yes'
Barry Warsaw [Sun, 29 Jun 2003 17:10:11 +0000 (17:10 +0000)]
Added news about os.environ['PYTHONINSPECT'] = 'yes'

22 years agoRemove stub settrace() and setprofile() calls.
Jeremy Hylton [Sun, 29 Jun 2003 17:07:46 +0000 (17:07 +0000)]
Remove stub settrace() and setprofile() calls.

22 years agoPy_Main(): Add a check for the PYTHONINSPECT environment variable
Barry Warsaw [Sun, 29 Jun 2003 17:07:06 +0000 (17:07 +0000)]
Py_Main(): Add a check for the PYTHONINSPECT environment variable
after running the script so that a program could do something like:

os.environ['PYTHONINSPECT'] = 1

to programmatically enter a prompt at the end.

(After a patch by Skip Montanaro w/ proposal by Troy Melhase

22 years agoFix grammar in comment.
Jeremy Hylton [Sun, 29 Jun 2003 16:59:59 +0000 (16:59 +0000)]
Fix grammar in comment.

22 years agoWhitespace normalization.
Jeremy Hylton [Sun, 29 Jun 2003 16:59:43 +0000 (16:59 +0000)]
Whitespace normalization.

22 years agoAdd settrace() and setprofile() functions to the threading library.
Jeremy Hylton [Sun, 29 Jun 2003 16:58:41 +0000 (16:58 +0000)]
Add settrace() and setprofile() functions to the threading library.

22 years agoTypo repair.
Tim Peters [Sun, 29 Jun 2003 16:56:38 +0000 (16:56 +0000)]
Typo repair.

22 years agoUpdate copyright years.
Fred Drake [Sun, 29 Jun 2003 16:55:47 +0000 (16:55 +0000)]
Update copyright years.

22 years agoProvide dummy (do-nothing) settrace() and setprofile() functions until
Tim Peters [Sun, 29 Jun 2003 16:50:06 +0000 (16:50 +0000)]
Provide dummy (do-nothing) settrace() and setprofile() functions until
Jeremy can check in the real things.

22 years agoFilled in release date; repaired grammar in a news item.
Tim Peters [Sun, 29 Jun 2003 16:18:08 +0000 (16:18 +0000)]
Filled in release date; repaired grammar in a news item.

22 years agominor wordsmithing
Skip Montanaro [Sun, 29 Jun 2003 16:01:51 +0000 (16:01 +0000)]
minor wordsmithing

22 years agoRemoved invalid test.
Raymond Hettinger [Sun, 29 Jun 2003 15:57:50 +0000 (15:57 +0000)]
Removed invalid test.
Analysis by Bob Halley:

  The test seems to expect that if time.daylight is true, then the
  is_dst field of the tm structure will be 1 too.  But this isn't
  the case, since daylight is true if the timezone does DST, *not*
  if DST is in effect.

22 years agoFreeBSD 5.x uses different wchar_t/win_t guards than earlier versions
Andrew MacIntyre [Sun, 29 Jun 2003 15:46:21 +0000 (15:46 +0000)]
FreeBSD 5.x uses different wchar_t/win_t guards than earlier versions

22 years agoSF bug #762455: Python segfaults when sys.stdout is changed in getattr
Raymond Hettinger [Sun, 29 Jun 2003 15:44:07 +0000 (15:44 +0000)]
SF bug #762455: Python segfaults when sys.stdout is changed in getattr

* Added unittest that fails before, but not after Neil's fix to ceval.c.

22 years agoFix SF #762455, segfault when sys.stdout is changed in getattr
Neal Norwitz [Sun, 29 Jun 2003 14:48:32 +0000 (14:48 +0000)]
Fix SF #762455, segfault when sys.stdout is changed in getattr
Will backport.

22 years agoWhitespace normalization.
Tim Peters [Sun, 29 Jun 2003 05:46:54 +0000 (05:46 +0000)]
Whitespace normalization.

22 years agoSome nifty doctest extensions from Jim Fulton, currently used in Zope3.
Tim Peters [Sun, 29 Jun 2003 05:30:48 +0000 (05:30 +0000)]
Some nifty doctest extensions from Jim Fulton, currently used in Zope3.
I won't have time to write real docs, but spent a lot of time adding
comments to his code and fleshing out the exported functions' docstrings.
There's probably opportunity to consolidate how docstrings get extracted
too, and the new code for that is probably better than the old code for
that (which strained mightily to recover from 2.2's new class/type
gimmicks).

22 years agoSF bug #430160: CGIHTTPServer.py POST bug using IE
Raymond Hettinger [Sun, 29 Jun 2003 05:06:56 +0000 (05:06 +0000)]
SF bug #430160:  CGIHTTPServer.py POST bug using IE

Minor improvement to previous bugfix.
Eating the remaining characters would lead to an endless loop
without a termination test.

22 years agoSF patch #760257: add socket.timeout exception
Raymond Hettinger [Sun, 29 Jun 2003 04:55:59 +0000 (04:55 +0000)]
SF patch #760257:  add socket.timeout exception
(Contributed by Bob Halley)

Add documentation for the new socket.timeout exception.

22 years agoMinor fixes to punctuation and grammar.
Raymond Hettinger [Sun, 29 Jun 2003 04:53:23 +0000 (04:53 +0000)]
Minor fixes to punctuation and grammar.

22 years agoAdd missing self. before curNode. This may need to be committed
Neal Norwitz [Sun, 29 Jun 2003 04:50:34 +0000 (04:50 +0000)]
Add missing self. before curNode.  This may need to be committed
to PyXML, I'm not sure of the procedure.

22 years agoSF patch #760257: add socket.timeout exception
Raymond Hettinger [Sun, 29 Jun 2003 04:40:22 +0000 (04:40 +0000)]
SF patch #760257:  add socket.timeout exception
(Contributed by Bob Halley)

Add unittests for the new socket.timeout exception.

22 years agoFix arguments for instantiating InterpolationSyntaxError
Neal Norwitz [Sun, 29 Jun 2003 04:23:35 +0000 (04:23 +0000)]
Fix arguments for instantiating InterpolationSyntaxError

22 years agoComment out cap, it was unused.
Neal Norwitz [Sun, 29 Jun 2003 04:21:43 +0000 (04:21 +0000)]
Comment out cap, it was unused.
Should all the commented out code be removed?

22 years agowhitespace normalization
Neal Norwitz [Sun, 29 Jun 2003 04:19:37 +0000 (04:19 +0000)]
whitespace normalization

22 years agoremove unused import math
Neal Norwitz [Sun, 29 Jun 2003 04:18:15 +0000 (04:18 +0000)]
remove unused import math

22 years agoremove extra parameter from _java_getprop, remove duplicate imports
Neal Norwitz [Sun, 29 Jun 2003 04:17:45 +0000 (04:17 +0000)]
remove extra parameter from _java_getprop, remove duplicate imports

22 years agouse == like all the other conditionals
Neal Norwitz [Sun, 29 Jun 2003 04:16:49 +0000 (04:16 +0000)]
use == like all the other conditionals

22 years agofix problems found by pychecker
Neal Norwitz [Sun, 29 Jun 2003 04:16:28 +0000 (04:16 +0000)]
fix problems found by pychecker

22 years agoSF patch #760257: add socket.timeout exception
Raymond Hettinger [Sun, 29 Jun 2003 03:29:42 +0000 (03:29 +0000)]
SF patch #760257: add socket.timeout exception

22 years agoAdded Bob Halley for work on socket.timeout
Raymond Hettinger [Sun, 29 Jun 2003 03:27:45 +0000 (03:27 +0000)]
Added Bob Halley for work on socket.timeout

22 years agoMissed a spot where the new optional optionflags argument needed to get
Tim Peters [Sun, 29 Jun 2003 03:11:20 +0000 (03:11 +0000)]
Missed a spot where the new optional optionflags argument needed to get
passed on.

22 years agoSF patch #760257: add socket.timeout exception
Raymond Hettinger [Sun, 29 Jun 2003 03:08:05 +0000 (03:08 +0000)]
SF patch #760257: add socket.timeout exception
(Contributed by Bob Halley)

Added a new exception, socket.timeout so that timeouts can be differentiated
from other socket exceptions.

Docs, more tests, and newsitem to follow.

22 years agoBump version information for Python 2.3 beta 2.
Fred Drake [Sun, 29 Jun 2003 02:17:28 +0000 (02:17 +0000)]
Bump version information for Python 2.3 beta 2.

22 years agoDocument PyThreadState_SetAsyncExc().
Fred Drake [Sun, 29 Jun 2003 02:14:31 +0000 (02:14 +0000)]
Document PyThreadState_SetAsyncExc().

22 years agoBump release level to 2.3b2.
Tim Peters [Sun, 29 Jun 2003 00:57:17 +0000 (00:57 +0000)]
Bump release level to 2.3b2.

22 years agoSlight clarification on running the examples from the Finder.
Jack Jansen [Sun, 29 Jun 2003 00:24:12 +0000 (00:24 +0000)]
Slight clarification on running the examples from the Finder.

22 years agoSuggest people visit www.python.org/packman if the default database
Jack Jansen [Sun, 29 Jun 2003 00:17:23 +0000 (00:17 +0000)]
Suggest people visit www.python.org/packman if the default database
cannot be found.

22 years agoUse http://www.python.org/packman as the base URL. Also upped the version
Jack Jansen [Sun, 29 Jun 2003 00:09:18 +0000 (00:09 +0000)]
Use http://www.python.org/packman as the base URL. Also upped the version
number because of this.

22 years agoBy default build docs, don't download them.
Jack Jansen [Sat, 28 Jun 2003 23:38:04 +0000 (23:38 +0000)]
By default build docs, don't download them.

22 years agoAdd PyThreadState_SetAsyncExc(long, PyObject *).
Guido van Rossum [Sat, 28 Jun 2003 21:53:52 +0000 (21:53 +0000)]
Add PyThreadState_SetAsyncExc(long, PyObject *).

A new API (only accessible from C) to interrupt a thread by sending it
an exception.  This is not always effective, but might help some people.
Requested by Just van Rossum and Alex Martelli.  It is intentional
that you have to write your own C extension to call it from Python.

Docs will have to wait.

22 years agoAdded Steven Taschuk for efforts fixing zipfile.py
Raymond Hettinger [Sat, 28 Jun 2003 20:10:26 +0000 (20:10 +0000)]
Added Steven Taschuk for efforts fixing zipfile.py

22 years agoSF patch 703666: Several objects don't decref tmp on failure in subtype_new
Raymond Hettinger [Sat, 28 Jun 2003 20:04:25 +0000 (20:04 +0000)]
SF patch 703666: Several objects don't decref tmp on failure in subtype_new
Submitted By: Christopher A. Craig

Fillin some missing decrefs.

22 years agoA few minor improvements
Barry Warsaw [Sat, 28 Jun 2003 15:22:16 +0000 (15:22 +0000)]
A few minor improvements

22 years agoRewrote the docs for supporting cyclic garbage collection to reflect
Jim Fulton [Sat, 28 Jun 2003 13:29:16 +0000 (13:29 +0000)]
Rewrote the docs for supporting cyclic garbage collection to reflect
the new way that once writes types.

Deleted the old section and sample code and added a new section
building on the Noddy example.

22 years agoUpdated the depenencies to reflect changes in the sample code for
Jim Fulton [Sat, 28 Jun 2003 13:27:57 +0000 (13:27 +0000)]
Updated the depenencies to reflect changes in the sample code for
building new types.

22 years agoAdded tests for sample modules.
Jim Fulton [Sat, 28 Jun 2003 11:54:40 +0000 (11:54 +0000)]
Added tests for sample modules.

22 years agoAdded s setup module to make it easier to test the sample modules.
Jim Fulton [Sat, 28 Jun 2003 11:54:20 +0000 (11:54 +0000)]
Added s setup module to make it easier to test the sample modules.

22 years agoFixed bug in implementation of tp_init function. It should be an int
Jim Fulton [Sat, 28 Jun 2003 11:54:03 +0000 (11:54 +0000)]
Fixed bug in implementation of tp_init function. It should be an int
function, not a PyObject *.

22 years agoChanged the assignment of PyType_GenericNew to tp_new slot. Now do
Jim Fulton [Sat, 28 Jun 2003 11:53:29 +0000 (11:53 +0000)]
Changed the assignment of PyType_GenericNew to tp_new slot. Now do
this in module initialization before calling PyType_Ready.  (Sorry
Tim.) This is necessary to compile on cygwin.  AFAIK, we support
cygwin. If so, then we need to write extentions this way.

22 years agoChanged the assignment of PyType_GenericNew to tp_new slot. Now do
Jim Fulton [Sat, 28 Jun 2003 11:53:12 +0000 (11:53 +0000)]
Changed the assignment of PyType_GenericNew to tp_new slot. Now do
this in module initialization before calling PyType_Ready.  (Sorry
Tim.) This is necessary to compile on cygwin.  AFAIK, we support
cygwin. If so, then we need to write extentions this way.

Fixed bug in implementation of tp_init function. It should be an int
function, not a PyObject *.

22 years agoCorrect markup errors that prevented formatting.
Fred Drake [Sat, 28 Jun 2003 11:50:34 +0000 (11:50 +0000)]
Correct markup errors that prevented formatting.

22 years agoExplain source encodings. Fixes #683486.
Martin v. Löwis [Sat, 28 Jun 2003 08:11:55 +0000 (08:11 +0000)]
Explain source encodings. Fixes #683486.

22 years agoPatch #758910: Add pthread flag to CXX if possible.
Martin v. Löwis [Sat, 28 Jun 2003 07:46:38 +0000 (07:46 +0000)]
Patch #758910: Add pthread flag to CXX if possible.

22 years agoPatch #751916: Check for signals, fix some refcounting errors.
Martin v. Löwis [Sat, 28 Jun 2003 07:40:23 +0000 (07:40 +0000)]
Patch #751916: Check for signals, fix some refcounting errors.

22 years agoSF 662923: iterator for dbm keys
Raymond Hettinger [Sat, 28 Jun 2003 07:08:39 +0000 (07:08 +0000)]
SF 662923: iterator for dbm keys

When shelve and the bsdbm where expanded to a full mapping interface,
this module was missed.

22 years agoAdd take() to examples. Tighten the islice() example
Raymond Hettinger [Sat, 28 Jun 2003 05:44:36 +0000 (05:44 +0000)]
Add take() to examples.  Tighten the islice() example

22 years agofix markup nits
Fred Drake [Sat, 28 Jun 2003 03:09:06 +0000 (03:09 +0000)]
fix markup nits

22 years agoSF patch #756996: Bare except in ZipFile.testzip()
Raymond Hettinger [Fri, 27 Jun 2003 22:25:03 +0000 (22:25 +0000)]
SF patch #756996: Bare except in ZipFile.testzip()
(Contributed by Steven Taschuk)

Replaces a bare except that caused all errors to be mis-reported as
archive errors.

Added a related NEWS item.

22 years agoSF patch #761519: Fixes for bugs 760703 and 757821
Raymond Hettinger [Fri, 27 Jun 2003 21:43:39 +0000 (21:43 +0000)]
SF patch #761519: Fixes for bugs 760703 and 757821
SF bug #760703: SocketHandler and LogRecord don't work well together
SF bug #757821: logging module docs

Applied Vinay Sajip's patch with a few minor fixups and a NEWS item.

Patched __init__.py - added new function
makeLogRecord (for bug report 760703).

Patched handlers.py - updated some docstrings and
deleted some old commented-out code.

Patched test_logging.py to make use of makeLogRecord.

Patched liblogging.tex to fill documentation gaps (both
760703 and bug 757821).

22 years agoA hack to ease compatibility with pre-2.3 Pythons: by default, doctest
Tim Peters [Fri, 27 Jun 2003 20:48:05 +0000 (20:48 +0000)]
A hack to ease compatibility with pre-2.3 Pythons:  by default, doctest
now accepts "True" when a test expects "1", and similarly for "False"
versus "0".  This is un-doctest-like, but on balance makes it much
more pleasant to write doctests that pass under 2.2 and 2.3.  I expect
it to go away again, when 2.2 is forgotten.  In the meantime, there's
a new doctest module constant that can be passed to a new optional
argument, if you want to turn this behavior off.

Note that this substitution is very simple-minded:  the expected and
actual outputs have to consist of single tokens.  No attempt is made,
e.g., to accept [True, False] when a test expects [1, 0].  This is a
simple hack for simple tests, and I intend to keep it that way.