]> granicus.if.org Git - python/log
python
22 years agoNews about repr() and 8-bit characters, and setlocale() in the
Guido van Rossum [Wed, 9 Oct 2002 21:40:48 +0000 (21:40 +0000)]
News about repr() and 8-bit characters, and setlocale() in the
readline module.

22 years agoMacOSX linker doesn't understand -R flag at all, no matter how you feed it
Skip Montanaro [Wed, 9 Oct 2002 21:37:18 +0000 (21:37 +0000)]
MacOSX linker doesn't understand -R flag at all, no matter how you feed it
the flag.  Punt and return a -L flag instead (returning "" gums up the
command to be forked).

22 years agoGNU readline() mistakenly sets the LC_CTYPE locale.
Guido van Rossum [Wed, 9 Oct 2002 21:27:33 +0000 (21:27 +0000)]
GNU readline() mistakenly sets the LC_CTYPE locale.
This is evil.  Only the user or the app's main() should do this!
We must save and restore the locale around the rl_initialize() call.

22 years agoUndo this part of the previous checkin:
Guido van Rossum [Wed, 9 Oct 2002 19:14:30 +0000 (19:14 +0000)]
Undo this part of the previous checkin:

  Also fixed an error message -- %s argument has non-string str()
  doesn't make sense for %r, so the error message now differentiates
  between %s and %r.

because PyObject_Repr() and PyObject_Str() ensure that this can never
happen.  Added a helpful comment instead.

22 years agoThe string formatting code has a test to switch to Unicode when %s
Guido van Rossum [Wed, 9 Oct 2002 19:07:53 +0000 (19:07 +0000)]
The string formatting code has a test to switch to Unicode when %s
sees a Unicode argument.  Unfortunately this test was also executed
for %r, because %s and %r share almost all of their code.  This meant
that, if u is a unicode object while repr(u) is an 8-bit string
containing ASCII characters, '%r' % u is a *unicode* string containing
only ASCII characters!

Fixed by executing the test only for %s.

Also fixed an error message -- %s argument has non-string str()
doesn't make sense for %r, so the error message now differentiates
between %s and %r.

22 years agoAdd special consideration for rlcompleter. As a side effect of
Guido van Rossum [Wed, 9 Oct 2002 18:17:06 +0000 (18:17 +0000)]
Add special consideration for rlcompleter.  As a side effect of
initializing GNU readline, setlocale(LC_CTYPE, "") is called, which
changes the <ctype.h> macros to use the "default" locale (which isn't
the *initial* locale -- the initial locale is the "C" locale in which
only ASCII characters are printable).  When the default locale is e.g.
Latin-1, the repr() of string objects can include 8-bit characters
with the high bit set; I believe this is due to the recent
PRINT_MULTIBYTE_STRING changes to stringobject.c.  This in turn screws
up test_pyexpat and test_rotor, which depend on the repr() of 8-bit
strings with high bit characters.

The solution (for now) is to force the LC_CTYPE locale to "C" after
importing rlcompleter.  This is the locale required by the test suite
anyway.

22 years agoRemove more DOS support.
Martin v. Löwis [Wed, 9 Oct 2002 17:23:29 +0000 (17:23 +0000)]
Remove more DOS support.

22 years agoAdd a few people who were in the ACKS file in the 2.2.2 branch but not
Guido van Rossum [Wed, 9 Oct 2002 16:37:03 +0000 (16:37 +0000)]
Add a few people who were in the ACKS file in the 2.2.2 branch but not
on the trunk.

22 years agoMinor edits and markup fixes
Andrew M. Kuchling [Wed, 9 Oct 2002 12:11:10 +0000 (12:11 +0000)]
Minor edits and markup fixes

22 years agoDon't try to access sys.getwindowsversion unless it exists (ntpath is
Tim Peters [Wed, 9 Oct 2002 07:56:04 +0000 (07:56 +0000)]
Don't try to access sys.getwindowsversion unless it exists (ntpath is
imported on systems other than Windows, and in particular is imported
by test___all__; the compile farm reported that all Linux tests failed
due to this; isn't anyone in PythonDevLand running CVS on Linux?!).

22 years agoLogic for determining whether skipping test_pep277 is expected: whether
Tim Peters [Wed, 9 Oct 2002 01:07:11 +0000 (01:07 +0000)]
Logic for determining whether skipping test_pep277 is expected:  whether
ths "should be" skipped depends on os.path.supports_unicode_filenames,
not really on the platform.  Fiddled the expected-skip constructor
appropriately.

22 years agoThe
Tim Peters [Tue, 8 Oct 2002 21:01:07 +0000 (21:01 +0000)]
The
        list(xrange(sys.maxint / 4))
test.  Changed 4 to 2.

The belief is that this test intended to trigger a bit of code in
listobject.c's NRESIZE macro that's looking for arithmetic overflow.  As
written, it doesn't achieve that, though, and leaves it up to the platform
realloc() as to whether it wants to allocate 2 gigabytes.  Some platforms
say "sure!", although they don't appear to mean it, and disaster ensues.

Changing 4 to 2 (just barely) manages to trigger the arithmetic overflow
test instead, leaving the platform realloc() out of it.

I'll backport this to the 2.2 branch next.

22 years agoAdd os.path.supports_unicode_filenames for all platforms,
Mark Hammond [Tue, 8 Oct 2002 02:44:31 +0000 (02:44 +0000)]
Add os.path.supports_unicode_filenames for all platforms,
sys.getwindowsversion() on Windows (new enahanced Tim-proof <wink>
version), and fix test_pep277.py in a few minor ways.
Including doc and NEWS entries.

22 years agoDocument PEP 293.
Martin v. Löwis [Mon, 7 Oct 2002 19:01:07 +0000 (19:01 +0000)]
Document PEP 293.

22 years agoDocument PEP 277 changes.
Martin v. Löwis [Mon, 7 Oct 2002 18:52:29 +0000 (18:52 +0000)]
Document PEP 277 changes.

22 years agoInclude wctype.h.
Martin v. Löwis [Mon, 7 Oct 2002 18:26:16 +0000 (18:26 +0000)]
Include wctype.h.

22 years agoCheck for wctype.h.
Martin v. Löwis [Mon, 7 Oct 2002 17:45:56 +0000 (17:45 +0000)]
Check for wctype.h.

22 years agoopenfile(): Go back to opening the files in text mode. This undoes
Barry Warsaw [Mon, 7 Oct 2002 17:27:55 +0000 (17:27 +0000)]
openfile(): Go back to opening the files in text mode.  This undoes
the change in revision 1.11 (test_email.py) in response to SF bug
#609988.  We now think that was the wrong fix and that WinZip was the
real culprit there.

22 years ago_parsebody(): Use get_content_type() instead of the deprecated
Barry Warsaw [Mon, 7 Oct 2002 17:27:35 +0000 (17:27 +0000)]
_parsebody(): Use get_content_type() instead of the deprecated
get_type().  Also, one of the regular expressions is constant so might
as well make it a module global.  And, when splitting up digests,
handle lineseps that are longer than 1 character in length
(e.g. \r\n).

22 years agoUse escaped Unicode literals, according to PEP 8.
Martin v. Löwis [Mon, 7 Oct 2002 17:27:15 +0000 (17:27 +0000)]
Use escaped Unicode literals, according to PEP 8.

22 years agoBump the version to 2.4.1 (not 2.5 as previously mentioned) to sync it
Barry Warsaw [Mon, 7 Oct 2002 17:20:25 +0000 (17:20 +0000)]
Bump the version to 2.4.1 (not 2.5 as previously mentioned) to sync it
with the standalone mimelib package.

22 years agoModified presentation of the grammar for calls to be easier to read
Fred Drake [Mon, 7 Oct 2002 16:28:38 +0000 (16:28 +0000)]
Modified presentation of the grammar for calls to be easier to read
for both HTML and typeset renderings.  Corresponds to revision
1.53.4.8 on the r22-maint branch.

22 years agoPatch #479898: Use multibyte C library for printing strings if available.
Martin v. Löwis [Mon, 7 Oct 2002 13:55:50 +0000 (13:55 +0000)]
Patch #479898: Use multibyte C library for printing strings if available.

22 years agoPatch #448038: Add move(). Report errors from copytree as in shutil.Error.
Martin v. Löwis [Mon, 7 Oct 2002 13:23:24 +0000 (13:23 +0000)]
Patch #448038: Add move(). Report errors from copytree as in shutil.Error.

22 years agoApply file system default encoding to exec and spawn path and arguments.
Martin v. Löwis [Mon, 7 Oct 2002 06:44:21 +0000 (06:44 +0000)]
Apply file system default encoding to exec and spawn path and arguments.

22 years agoFix quoting for Solaris LDSHARED. Will backport to 2.2.
Martin v. Löwis [Mon, 7 Oct 2002 06:21:41 +0000 (06:21 +0000)]
Fix quoting for Solaris LDSHARED. Will backport to 2.2.

22 years agoPatch #619493: Prefer rpmbuild over rpm if available. Backported to 2.2.
Martin v. Löwis [Mon, 7 Oct 2002 05:57:21 +0000 (05:57 +0000)]
Patch #619493: Prefer rpmbuild over rpm if available. Backported to 2.2.

22 years agoAdd test_pep277 to the expected skips on Linux. (This test seems to
Guido van Rossum [Sun, 6 Oct 2002 20:36:31 +0000 (20:36 +0000)]
Add test_pep277 to the expected skips on Linux.  (This test seems to
be skipped everywhere except on Windows NT and descendants, but I'm
only going to add it to the skip list for the platform I can test.)

22 years agoPatch #572031: AUTH method LOGIN for smtplib
Martin v. Löwis [Sun, 6 Oct 2002 17:55:08 +0000 (17:55 +0000)]
Patch #572031: AUTH method LOGIN for smtplib
(most of the patch hides in rev. 1.59). Backported to 2.2.

22 years agoMake sure the email test suite can be run both stand-alone and under
Guido van Rossum [Sun, 6 Oct 2002 14:37:11 +0000 (14:37 +0000)]
Make sure the email test suite can be run both stand-alone and under
supervision of regrtest.py.  Will backport to 2.2.2.

22 years agoAlso look in -lposix4 for sem_init. Fixes #618615.
Martin v. Löwis [Sun, 6 Oct 2002 11:48:09 +0000 (11:48 +0000)]
Also look in -lposix4 for sem_init. Fixes #618615.

22 years agoUpdate info for impending 2.2.2.
Tim Peters [Sun, 6 Oct 2002 04:04:46 +0000 (04:04 +0000)]
Update info for impending 2.2.2.

22 years agoApply Josh Robb's Patch:
Kurt B. Kaiser [Sun, 6 Oct 2002 01:57:45 +0000 (01:57 +0000)]
Apply Josh Robb's Patch:
[ 617097 ] EditorWindow.py: underline recent files

Added a couple of mods to reduce the indentation level.

Note that the recent files menu doesn't update until
Idle is restarted, pre-existing bug, at least on Linux.

22 years agoThis test fails on Win98, which is fine, but when it failed it left
Tim Peters [Sat, 5 Oct 2002 17:54:56 +0000 (17:54 +0000)]
This test fails on Win98, which is fine, but when it failed it left
a junk directory behind that caused 4 other tests to fail later.  Now
it cleans up after itself, and the 4 bogus later failures don't happen.

22 years agoDocument patch #594001.
Martin v. Löwis [Sat, 5 Oct 2002 09:46:48 +0000 (09:46 +0000)]
Document patch #594001.

22 years agos/_alloca/alloca/g; Windows doesn't need the former, at least not unless
Tim Peters [Sat, 5 Oct 2002 01:47:34 +0000 (01:47 +0000)]
s/_alloca/alloca/g; Windows doesn't need the former, at least not unless
__STDC__ is defined (or something like that ...).

22 years agoAdd a section to be written; remove reference to deleted code
Andrew M. Kuchling [Fri, 4 Oct 2002 22:34:11 +0000 (22:34 +0000)]
Add a section to be written; remove reference to deleted code

22 years agoJosh Robb's Patch
Kurt B. Kaiser [Fri, 4 Oct 2002 21:54:41 +0000 (21:54 +0000)]
Josh Robb's Patch
[ 617109 ] WindowList.py: fix win98 quit.

22 years agoApply Josh Robb's Patch
Kurt B. Kaiser [Fri, 4 Oct 2002 21:33:57 +0000 (21:33 +0000)]
Apply Josh Robb's Patch
[ 617125 ] EditorWindow.py: Fix the wrap
(used 'none' instead of NONE)

22 years agoWhen looking for an alias, first look for the normalized name (which
Guido van Rossum [Fri, 4 Oct 2002 20:49:05 +0000 (20:49 +0000)]
When looking for an alias, first look for the normalized name (which
still may contain dots), then if that doesn't exist look for the name
with dots replaced by underscores.  This is a little more forgiving.

22 years ago.iterkeys() is not needed.
Raymond Hettinger [Fri, 4 Oct 2002 20:01:48 +0000 (20:01 +0000)]
.iterkeys() is not needed.

22 years agoRemove some unnecessary dependencies (minor).
Fred Drake [Fri, 4 Oct 2002 19:23:06 +0000 (19:23 +0000)]
Remove some unnecessary dependencies (minor).

22 years agoAdded refcount information for PyObject_GetIter().
Fred Drake [Fri, 4 Oct 2002 18:58:58 +0000 (18:58 +0000)]
Added refcount information for PyObject_GetIter().

22 years agoUndo the removal. Guido mentioned that the encoding name is in active
Marc-André Lemburg [Fri, 4 Oct 2002 16:30:42 +0000 (16:30 +0000)]
Undo the removal. Guido mentioned that the encoding name is in active
by some email headers.

22 years agoRemove unneeded alias.
Marc-André Lemburg [Fri, 4 Oct 2002 15:57:03 +0000 (15:57 +0000)]
Remove unneeded alias.

22 years agoSF # 607253, header file problems by Ralf W. Grosse-Kunstleve
Neal Norwitz [Fri, 4 Oct 2002 12:43:02 +0000 (12:43 +0000)]
SF # 607253, header file problems by Ralf W. Grosse-Kunstleve

Don't pollute the namespace when protecting against multiple header inclusion.
Prefix with Py_ and use standard naming convention Py_FILENAME_H.

22 years agoFix doc-string.
Marc-André Lemburg [Fri, 4 Oct 2002 11:58:24 +0000 (11:58 +0000)]
Fix doc-string.

22 years agoNews item about the new encoding normalization scheme.
Marc-André Lemburg [Fri, 4 Oct 2002 11:55:21 +0000 (11:55 +0000)]
News item about the new encoding normalization scheme.

22 years agoAdapt lookup names to new more general encoding name normalization
Marc-André Lemburg [Fri, 4 Oct 2002 11:51:39 +0000 (11:51 +0000)]
Adapt lookup names to new more general encoding name normalization
scheme.

22 years agoExtending the encoding name normalization to handle more non-alphanumeric
Marc-André Lemburg [Fri, 4 Oct 2002 11:45:38 +0000 (11:45 +0000)]
Extending the encoding name normalization to handle more non-alphanumeric
characters.

22 years agoDisable LFS if Solaris/gcc bug is detected. Fixes #618095.
Martin v. Löwis [Fri, 4 Oct 2002 10:22:02 +0000 (10:22 +0000)]
Disable LFS if Solaris/gcc bug is detected. Fixes #618095.

22 years agoPulling Mark Alexander's contribution from CVS.
Marc-André Lemburg [Fri, 4 Oct 2002 09:30:06 +0000 (09:30 +0000)]
Pulling Mark Alexander's contribution from CVS.

22 years agoPatch #618347: Work around Solaris 2.6 pthread.h bug. Will backport to 2.2.
Martin v. Löwis [Fri, 4 Oct 2002 07:21:24 +0000 (07:21 +0000)]
Patch #618347: Work around Solaris 2.6 pthread.h bug. Will backport to 2.2.

22 years agoFix [ 616716 ] Bug in PyErr_SetExcFromWindows
Mark Hammond [Fri, 4 Oct 2002 00:13:02 +0000 (00:13 +0000)]
Fix [ 616716 ] Bug in PyErr_SetExcFromWindows

Ensure that even if FormatMessage fails we (a) don't crash, and (b) provide something useful.

Bugfix candidate.

22 years agoFix errors to pep277 checkin identified by Neal Norwitz.
Mark Hammond [Fri, 4 Oct 2002 00:09:38 +0000 (00:09 +0000)]
Fix errors to pep277 checkin identified by Neal Norwitz.

22 years agoTests for pep277 - Unicode file names on Windows NT.
Mark Hammond [Thu, 3 Oct 2002 23:14:10 +0000 (23:14 +0000)]
Tests for pep277 - Unicode file names on Windows NT.

22 years agoOne last tweak to the tracing machinery: this actually computes what I intended
Michael W. Hudson [Thu, 3 Oct 2002 09:53:11 +0000 (09:53 +0000)]
One last tweak to the tracing machinery: this actually computes what I intended
all along.  Before instr_lb tended to be too high.

I don't think this actually makes any difference, given what the compiler
produces, but it makes me a bit happier.

22 years agoClamp code objects' tp_compare result to [-1, 1].
Michael W. Hudson [Thu, 3 Oct 2002 09:50:47 +0000 (09:50 +0000)]
Clamp code objects' tp_compare result to [-1, 1].

Bugfix candidate.

22 years agoUpdates to track Grammar changes. The patch to token.py loosens the regexp to
Michael W. Hudson [Thu, 3 Oct 2002 09:42:01 +0000 (09:42 +0000)]
Updates to track Grammar changes.  The patch to token.py loosens the regexp to
allow "testlist1" to be snagged.

22 years agoTrivial fix to the pep277 checkin: ensure that exceptions always have a filename...
Mark Hammond [Thu, 3 Oct 2002 07:24:48 +0000 (07:24 +0000)]
Trivial fix to the pep277 checkin: ensure that exceptions always have a filename attribute (previously did only when string filenames were passed, but not when unicode)

22 years agoPatch 594001: PEP 277 - Unicode file name support for Windows NT.
Mark Hammond [Thu, 3 Oct 2002 05:10:39 +0000 (05:10 +0000)]
Patch 594001: PEP 277 - Unicode file name support for Windows NT.

22 years agoFix an endcase bug: initial_indent was ignored when the text was short
Guido van Rossum [Wed, 2 Oct 2002 15:47:32 +0000 (15:47 +0000)]
Fix an endcase bug: initial_indent was ignored when the text was short
enough to fit in one line.

22 years agoFix for the recursion_level bug Armin Rigo reported in sf
Michael W. Hudson [Wed, 2 Oct 2002 13:13:45 +0000 (13:13 +0000)]
Fix for the recursion_level bug Armin Rigo reported in sf
patch #617312, both on the trunk and the 22-maint branch.

Also added a test case, and ported the test_trace I wrote for HEAD
to 2.2.2 (with all those horrible extra 'line' events ;-).

22 years agoSupport UCS-4 builds.
Martin v. Löwis [Tue, 1 Oct 2002 18:50:56 +0000 (18:50 +0000)]
Support UCS-4 builds.

22 years agoAdd a comment to the top of the file explaining why the file is here.
Fred Drake [Tue, 1 Oct 2002 18:20:16 +0000 (18:20 +0000)]
Add a comment to the top of the file explaining why the file is here.

22 years agoMention droped support for Tcl/Tk 8.0 and 8.1.
Guido van Rossum [Tue, 1 Oct 2002 18:18:58 +0000 (18:18 +0000)]
Mention droped support for Tcl/Tk 8.0 and 8.1.

22 years agoEliminate constness warnings with Tcl 8.4.
Martin v. Löwis [Tue, 1 Oct 2002 18:08:06 +0000 (18:08 +0000)]
Eliminate constness warnings with Tcl 8.4.

22 years agotest__all__(): Fix the import list.
Barry Warsaw [Tue, 1 Oct 2002 17:57:06 +0000 (17:57 +0000)]
test__all__(): Fix the import list.

22 years agoDrop support for Tk 8.0 and 8.1.
Martin v. Löwis [Tue, 1 Oct 2002 17:48:31 +0000 (17:48 +0000)]
Drop support for Tk 8.0 and 8.1.

22 years agosave the verbose argument as an instance attributes. Subclasses of
Skip Montanaro [Tue, 1 Oct 2002 17:39:59 +0000 (17:39 +0000)]
save the verbose argument as an instance attributes.  Subclasses of
CCompiler may rely on the presence of self.verbose (SciPy's distutils
appears to).

22 years agobuild(): Use self.builddir, not self.doc when copying the icons, so
Barry Warsaw [Tue, 1 Oct 2002 15:38:01 +0000 (15:38 +0000)]
build(): Use self.builddir, not self.doc when copying the icons, so
they'll end up in the right directory when --dir is used.

22 years agoWhen the HTML output dir is specified using --dir=~/foo, the tilde
Fred Drake [Tue, 1 Oct 2002 15:30:56 +0000 (15:30 +0000)]
When the HTML output dir is specified using --dir=~/foo, the tilde
needs to be expanded by mkhowto, since the shell won't touch it except
at the start of the complete argument.

22 years agonits
Barry Warsaw [Tue, 1 Oct 2002 15:29:09 +0000 (15:29 +0000)]
nits

22 years agoInclude the --dir argument in the help text.
Fred Drake [Tue, 1 Oct 2002 15:24:03 +0000 (15:24 +0000)]
Include the --dir argument in the help text.

22 years agoChange the default path to icons so that "mkhowto" does the "right thing" by
Fred Drake [Tue, 1 Oct 2002 15:20:20 +0000 (15:20 +0000)]
Change the default path to icons so that "mkhowto" does the "right thing" by
default when used for 3rd-party docs.  This requires the standard Python docs
to specify a location, but they are a bit of a special case in sharing one set
of icons among several documents.

22 years agoAdded an introduction.
Barry Warsaw [Tue, 1 Oct 2002 15:13:29 +0000 (15:13 +0000)]
Added an introduction.

22 years agoStub document for the stand-alone email package distribution.
Fred Drake [Tue, 1 Oct 2002 14:38:47 +0000 (14:38 +0000)]
Stub document for the stand-alone email package distribution.
Barry, please add a reasonable abstract!

22 years agoMinor style nit for referring to other attributes of the same class
Fred Drake [Tue, 1 Oct 2002 14:29:58 +0000 (14:29 +0000)]
Minor style nit for referring to other attributes of the same class
from an attributes description.

22 years agoSplit the long email package examples into separate files and use
Fred Drake [Tue, 1 Oct 2002 14:17:10 +0000 (14:17 +0000)]
Split the long email package examples into separate files and use
\verbatiminput instead of the verbatim environment -- this does the "right
thing" regarding page breaks in long examples for the typeset formats, and
has nice benefits for the HTML version as well.

22 years agoCleaned up the examples.
Barry Warsaw [Tue, 1 Oct 2002 04:48:06 +0000 (04:48 +0000)]
Cleaned up the examples.

22 years agoProofread and spell checked, all except the Examples section (which
Barry Warsaw [Tue, 1 Oct 2002 04:33:16 +0000 (04:33 +0000)]
Proofread and spell checked, all except the Examples section (which
I'll do next).

22 years agoCommit fix for SF 603831.
Guido van Rossum [Tue, 1 Oct 2002 04:14:17 +0000 (04:14 +0000)]
Commit fix for SF 603831.

Strangely, two out of three patches there seem already committed; but
the essential one (get rid of the assert in object_filenames in
ccompiler.py) was not yet applied.

This makes the build procedure for Twisted work again.

This is *not* a backport candidate despite the fact that identical
code appears to exist in 2.2.2; Twisted builds fine there, so there
must have been a change elsewhere.

22 years agoVast update to email version 2. This could surely use proofreading.
Barry Warsaw [Tue, 1 Oct 2002 01:05:52 +0000 (01:05 +0000)]
Vast update to email version 2.  This could surely use proofreading.

22 years agoDocstring consistency with the updated .tex files.
Barry Warsaw [Tue, 1 Oct 2002 00:52:27 +0000 (00:52 +0000)]
Docstring consistency with the updated .tex files.

22 years ago_structure(): Swap fp and level arguments.
Barry Warsaw [Tue, 1 Oct 2002 00:51:47 +0000 (00:51 +0000)]
_structure(): Swap fp and level arguments.

22 years agoDocstring consistency with the updated .tex files.
Barry Warsaw [Tue, 1 Oct 2002 00:44:13 +0000 (00:44 +0000)]
Docstring consistency with the updated .tex files.

22 years agoDocstring consistency with the updated .tex files.
Barry Warsaw [Tue, 1 Oct 2002 00:05:24 +0000 (00:05 +0000)]
Docstring consistency with the updated .tex files.

22 years agoDocstring consistency with the updated .tex files.
Barry Warsaw [Mon, 30 Sep 2002 23:07:35 +0000 (23:07 +0000)]
Docstring consistency with the updated .tex files.

22 years agoDocstring consistency with the updated .tex files.
Barry Warsaw [Mon, 30 Sep 2002 22:15:00 +0000 (22:15 +0000)]
Docstring consistency with the updated .tex files.

22 years agoDocstring consistency with the updated .tex files.
Barry Warsaw [Mon, 30 Sep 2002 21:29:10 +0000 (21:29 +0000)]
Docstring consistency with the updated .tex files.

22 years agoDocstring consistency with the updated .tex files.
Barry Warsaw [Mon, 30 Sep 2002 21:24:00 +0000 (21:24 +0000)]
Docstring consistency with the updated .tex files.

22 years ago__all__: Updated
Barry Warsaw [Mon, 30 Sep 2002 20:41:33 +0000 (20:41 +0000)]
__all__: Updated

22 years agoDocstring consistency with the updated .tex files.
Barry Warsaw [Mon, 30 Sep 2002 20:07:22 +0000 (20:07 +0000)]
Docstring consistency with the updated .tex files.

22 years agoNow that TestCase is a new-style class, change loadTestsFromModule and
Guido van Rossum [Mon, 30 Sep 2002 19:25:56 +0000 (19:25 +0000)]
Now that TestCase is a new-style class, change loadTestsFromModule and
loadTestsFromName to accept new-style classes too!

22 years ago__contains__(): Change the second argument to `name' for consistency.
Barry Warsaw [Mon, 30 Sep 2002 18:17:35 +0000 (18:17 +0000)]
__contains__(): Change the second argument to `name' for consistency.
I seriously doubt this will break any deployed code.

Docstring consistency with the updated .tex files.

22 years agoAdd Tim Rice, for SCO patches.
Martin v. Löwis [Mon, 30 Sep 2002 16:23:15 +0000 (16:23 +0000)]
Add Tim Rice, for SCO patches.

22 years agoPatch #615069: Fix build problems on SCO Open Server 5. Backported to 2.2.
Martin v. Löwis [Mon, 30 Sep 2002 16:19:48 +0000 (16:19 +0000)]
Patch #615069: Fix build problems on SCO Open Server 5. Backported to 2.2.

22 years agoWith help from Martin v. Loewis, clarification is added for the
Barry Warsaw [Mon, 30 Sep 2002 15:51:31 +0000 (15:51 +0000)]
With help from Martin v. Loewis, clarification is added for the
semantics of header chunks using byte and Unicode strings.
Specifically,

append(): When the given string is a byte string, charset (whether
specified explicitly in the argument list or implicitly via the
constructor default) is the encoding of the byte string, and a
UnicodeError will be raised if the string cannot be decoded with that
charset.  If s is a Unicode string, then charset is a hint specifying
the character set of the characters in the string.  In this case, when
producing an RFC 2822 compliant header using RFC 2047 rules, the
Unicode string will be encoded using the following charsets in order:
us-ascii, the charset hint, utf-8.

__init__(): Use the global USASCII Charset instance when the charset
argument is None.  Also, clarification in the docstring.

Also, use True/False where appropriate.

22 years agoPatch #544740: test_commands test fails under Cygwin
Jason Tishler [Mon, 30 Sep 2002 15:44:41 +0000 (15:44 +0000)]
Patch #544740: test_commands test fails under Cygwin

Relax regular expression to handle spaces in user and group names.

22 years agofix a couple nits related to my understanding of ReST. Use of
Skip Montanaro [Mon, 30 Sep 2002 15:25:13 +0000 (15:25 +0000)]
fix a couple nits related to my understanding of ReST.  Use of

    ``void (*)(PyObject *)``

isn't quite the same as

    void (*)(PyObject \*)

but I gather ``...`` is preferable stylistically in most cases than
... \*...