python
23 years agoRegenerated to include Internet Config error strings.
Jack Jansen [Mon, 22 Apr 2002 11:45:46 +0000 (11:45 +0000)]
Regenerated to include Internet Config error strings.

Bugfix candidate.

23 years agoAdded an optional file with MacErrors.h extensions: IC errors aren't in there.
Jack Jansen [Mon, 22 Apr 2002 11:44:26 +0000 (11:44 +0000)]
Added an optional file with MacErrors.h extensions: IC errors aren't in there.

Bugfix candidate.

23 years agoPy_GETENV is used by obmalloc and needs Py_IgnoreEnvironmentFlag. Provide it.
Neil Schemenauer [Mon, 22 Apr 2002 03:29:32 +0000 (03:29 +0000)]
Py_GETENV is used by obmalloc and needs Py_IgnoreEnvironmentFlag.  Provide it.

23 years agopgen now needs pymalloc
Neil Schemenauer [Mon, 22 Apr 2002 03:05:25 +0000 (03:05 +0000)]
pgen now needs pymalloc

23 years agoMoving pymalloc along.
Tim Peters [Mon, 22 Apr 2002 02:33:27 +0000 (02:33 +0000)]
Moving pymalloc along.

+ Redirect PyMem_{Del, DEL} to the object allocator's free() when
  pymalloc is enabled.  Needed so old extensions can continue to
  mix PyObject_New with PyMem_DEL.

+ This implies that pgen needs to be able to see the PyObject_XYZ
  declarations too.  pgenheaders.h now includes Python.h.  An
  implication is that I expect obmalloc.o needs to get linked into
  pgen on non-Windows boxes.

+ When PYMALLOC_DEBUG is defined, *all* Py memory API functions
  now funnel through the debug allocator wrapper around pymalloc.
  This is the default in a debug build.

+ That caused compile.c to fail:  it indirectly mixed PyMem_Malloc
  with raw platform free() in one place.  This is verbotten.

23 years agotracking python idle changes:
Steven M. Gava [Mon, 22 Apr 2002 00:42:42 +0000 (00:42 +0000)]
tracking python idle changes:
Provisional fix for writefile() [SF bug # 541730]

23 years agoUpdate the Windows makefile for 2.3.
Tim Peters [Mon, 22 Apr 2002 00:39:44 +0000 (00:39 +0000)]
Update the Windows makefile for 2.3.

23 years agotracking python idle changes:
Steven M. Gava [Mon, 22 Apr 2002 00:38:26 +0000 (00:38 +0000)]
tracking python idle changes:
Patch #540583: Open MS Help Docs if available.

23 years ago#546156, Remove load_false()/load_true(), they are not used
Neal Norwitz [Sun, 21 Apr 2002 23:44:34 +0000 (23:44 +0000)]
#546156, Remove load_false()/load_true(), they are not used

23 years agoPy_UniversalNewlineFread(): small speed boost on non-Windows boxes.
Tim Peters [Sun, 21 Apr 2002 18:15:20 +0000 (18:15 +0000)]
Py_UniversalNewlineFread():  small speed boost on non-Windows boxes.

23 years agoPyUnicode_EncodeUTF8(): tightened the memory asserts a bit, and at least
Tim Peters [Sun, 21 Apr 2002 17:28:06 +0000 (17:28 +0000)]
PyUnicode_EncodeUTF8():  tightened the memory asserts a bit, and at least
tried to catch some possible arithmetic overflows in the debug build.

23 years ago#544265, Remove warnings for passing const to free()
Neal Norwitz [Sun, 21 Apr 2002 15:03:18 +0000 (15:03 +0000)]
#544265, Remove warnings for passing const to free()

23 years agoBack out 2.140.
Martin v. Löwis [Sun, 21 Apr 2002 09:59:45 +0000 (09:59 +0000)]
Back out 2.140.

23 years agoEnable universal newlines on Windows. Note that NEWS needs more words!
Tim Peters [Sun, 21 Apr 2002 07:30:30 +0000 (07:30 +0000)]
Enable universal newlines on Windows.  Note that NEWS needs more words!

23 years agoPy_UniversalNewlineFread(): Many changes.
Tim Peters [Sun, 21 Apr 2002 07:29:14 +0000 (07:29 +0000)]
Py_UniversalNewlineFread():  Many changes.

+ Continued looping until n bytes in the buffer have been filled, not
  just when n bytes have been read from the file.  This repairs the
  bug that f.readlines() only sucked up the first 8192 bytes of the file
  on Windows when universal newlines was enabled and f was opened in
  U mode (see Python-Dev -- this was the ultimate cause of the
  test_inspect.py failure).

+ Changed prototye to take a char* buffer (void* doesn't make much sense).

+ Squashed size_t vs int mismatches (in particular, besides the unsigned
  vs signed distinction, size_t may be larger than int).

+ Gets out under all error conditions now (it's possible for fread() to
  suffer an error even if it returns a number larger than 0 -- any
  "short read" is an error or EOF condition).

+ Rearranged and simplified declarations.

23 years agoAssorted code cleanups for readability. Greatly boosted the size of the
Tim Peters [Sun, 21 Apr 2002 06:12:02 +0000 (06:12 +0000)]
Assorted code cleanups for readability.  Greatly boosted the size of the
test data:  this test fails on WIndows now if universal newlines are
enabled (which they aren't yet, by default).  I don't know whether the
test will also fail on Linux now.

23 years agoHack around the "2.1.6 Blank lines" bug in a way that the TOC still
Tim Peters [Sun, 21 Apr 2002 04:44:11 +0000 (04:44 +0000)]
Hack around the "2.1.6 Blank lines" bug in a way that the TOC still
displays a recognizable section title (there are extra blanks at the
end of it now, due to the nested anchor, but that's fine).

23 years agoPyUnicode_EncodeUTF8: squash compiler wng. The difference of two
Tim Peters [Sun, 21 Apr 2002 03:26:37 +0000 (03:26 +0000)]
PyUnicode_EncodeUTF8:  squash compiler wng.  The difference of two
pointers is a signed type.  Changing "allocated" to a signed int makes
undetected overflow more likely, but there was no overflow detection
before either.

23 years agoGive the Help viewer a font-size button. This isn't documented by MS,
Tim Peters [Sun, 21 Apr 2002 02:01:01 +0000 (02:01 +0000)]
Give the Help viewer a font-size button.  This isn't documented by MS,
but is documented by others on the web, and the defn of the magic flag
needed appears in MS's htmlhelp.h header file.

23 years agoMove "everything left one": the TOC now shows each doc directory as a
Tim Peters [Sat, 20 Apr 2002 21:34:34 +0000 (21:34 +0000)]
Move "everything left one":  the TOC now shows each doc directory as a
distinct top-level node.  Before they were all nested under an artificial
top-level node, uselessly chewing up horizontal space, and ensuring that
the only thing the user saw in the TOC upon opening the file was a single
collapsed top-level folder.

23 years agoStopped all warnings from the HTML Help Compiler, by generating proper
Tim Peters [Sat, 20 Apr 2002 20:26:26 +0000 (20:26 +0000)]
Stopped all warnings from the HTML Help Compiler, by generating proper
HTML (or, at least, proper in its view).  The TOC file is now identical
to what the HTML compiler itself generates, except for whitespace and
a glitch identified below.  The pretty-printing done by prechm.py is
pretty much destroyed for now; if you need it pretty-printed, just make
the Help Compiler save the files (it's got its own idea of pretty-
printing anyway).

Glitch:  The title of Ref Man "2.1.6 Blank lines" shows up as a blank
for now.  This is because the relevant entry in ref/index.html contains
nested anchors, and pychm really has no idea what to do with that.  I
hacked it for now to avoid any error messages or worse insanity, and
filed a bug report against the docs.

23 years ago#546163, fix link problem on Solaris 8 for makedev when using mknod
Neal Norwitz [Sat, 20 Apr 2002 13:46:43 +0000 (13:46 +0000)]
#546163, fix link problem on Solaris 8 for makedev when using mknod

23 years agoPatch #495401: Count number of required bytes for encoding UTF-8 before
Martin v. Löwis [Sat, 20 Apr 2002 13:44:01 +0000 (13:44 +0000)]
Patch #495401: Count number of required bytes for encoding UTF-8 before
allocating the target buffer.

23 years agoWidespread: Used classes in a more natural way. Added convenience
Tim Peters [Sat, 20 Apr 2002 08:36:42 +0000 (08:36 +0000)]
Widespread:  Used classes in a more natural way.  Added convenience
methods to squash code duplication.  Simplified several overly complex
chunks of logic.  Built output strings more with string interpolation
instead of infix '+'.  Added comments.  Exploited recent Python features
(chiefly bool and augmented assignment).

23 years agoForward port of patch # 500311: Work around for buggy https servers.
Martin v. Löwis [Sat, 20 Apr 2002 07:47:40 +0000 (07:47 +0000)]
Forward port of patch # 500311: Work around for buggy https servers.
Fixes #494762.

23 years agoAdd test for eval() w/ free variables.
Jeremy Hylton [Sat, 20 Apr 2002 04:51:39 +0000 (04:51 +0000)]
Add test for eval() w/ free variables.

Related to SF bug #505315

23 years agoFix SF bug #505315: Make free and cell vars show up consistently in locals().
Jeremy Hylton [Sat, 20 Apr 2002 04:46:55 +0000 (04:46 +0000)]
Fix SF bug #505315: Make free and cell vars show up consistently in locals().

PyFrame_FastToLocals() and PyFrame_LocalsToFast() had a return if
f_nlocals was 0.  I think this was a holdover from the pre 2.1 days
when regular locals were the only kind of local variables.

The change makes it possible to use a free variable in eval or exec if
it the variable is also used elsewhere in the same block, which is
what the documentation says.

23 years agoReplaced the fiddly 5-tuples with a new Book convenience class, allowing
Tim Peters [Sat, 20 Apr 2002 03:25:02 +0000 (03:25 +0000)]
Replaced the fiddly 5-tuples with a new Book convenience class, allowing
to reference fields via names instead of meaningless little integers.
This turned up one case where the wrong little integer was being used,
in informative progress output.  Fixed that too.

23 years agoFixed a comment.
Tim Peters [Sat, 20 Apr 2002 02:56:20 +0000 (02:56 +0000)]
Fixed a comment.

23 years agoAll over: get rid of blanks before colons that open code blocks.
Tim Peters [Sat, 20 Apr 2002 02:39:44 +0000 (02:39 +0000)]
All over:  get rid of blanks before colons that open code blocks.

23 years agodo_project(): Modernized the code.
Tim Peters [Sat, 20 Apr 2002 02:37:07 +0000 (02:37 +0000)]
do_project():  Modernized the code.

23 years agoAdded "What's New" to the 2.2 doc set.
Tim Peters [Sat, 20 Apr 2002 02:07:58 +0000 (02:07 +0000)]
Added "What's New" to the 2.2 doc set.

23 years agoFix com_arglist() and update grammar fragment.
Jeremy Hylton [Fri, 19 Apr 2002 22:56:37 +0000 (22:56 +0000)]
Fix com_arglist() and update grammar fragment.
SF bug #522264 reported by Evelyn Mitchell.

The code included a comment about "STAR STAR" which was translated
into the code as the bogus attribute token.STARSTAR.  This name never
caused an attribute error because it was never retrieved.  The code
was based on an old version of the grammar that specified kwargs as
two tokens ('*' '*').  I checked as far back as 2.1 and didn't find
this production.

The fix is simple, because token.DOUBLESTAR is the only token
allowed.  Also update the grammar fragment in com_arglist().

XXX I'll bet lots of other grammar fragments in comments are out of
date, probably in this module and in compile.c.

23 years agoPatch #546194: Check constants individually. Fixes 534143 on OpenBSD.
Martin v. Löwis [Fri, 19 Apr 2002 21:04:41 +0000 (21:04 +0000)]
Patch #546194: Check constants individually. Fixes 534143 on OpenBSD.
Will backport to 2.2.

23 years agoAdded a stop-list to reduce the size of the full text search index. Fred,
Tim Peters [Fri, 19 Apr 2002 18:41:46 +0000 (18:41 +0000)]
Added a stop-list to reduce the size of the full text search index.  Fred,
populate the "stop_list" triple-quoted string with your favorite handful
of stop words.

23 years agoproject_template: use dict interpolation instead of giant tuples.
Tim Peters [Fri, 19 Apr 2002 18:07:52 +0000 (18:07 +0000)]
project_template:  use dict interpolation instead of giant tuples.

23 years ago+ Changed TOC to folder-tree style.
Tim Peters [Fri, 19 Apr 2002 16:46:43 +0000 (16:46 +0000)]
+ Changed TOC to folder-tree style.
+ Increased size of the window the user sees the first time.
+ Arranged for the display to remember its last size and position.
+ Added a Favorites (bookmarks) tab.
+ Added the "Advanced Search" decorations.

23 years agoGenerates inputs to the Microsoft Help Compiler, which creates compiled
Tim Peters [Fri, 19 Apr 2002 16:09:26 +0000 (16:09 +0000)]
Generates inputs to the Microsoft Help Compiler, which creates compiled
HTML help files (.chm).  Obtained from Robin Dunn's packaging of the
2.2 docs at <http://alldunn.com/python/>, obtained in turn from
Hernán Martínez Foffani's original work at
<http://www.orgmf.com.ar/condor/pytstuff.html>.

23 years agoGet the right funny characters in Hernan's name.
Tim Peters [Fri, 19 Apr 2002 15:59:01 +0000 (15:59 +0000)]
Get the right funny characters in Hernan's name.

23 years ago#546155, remove posix_int() it is not used
Neal Norwitz [Fri, 19 Apr 2002 14:58:40 +0000 (14:58 +0000)]
#546155, remove posix_int() it is not used

23 years agoFix SF #544995 (zlib crash on second flush call)
Jeremy Hylton [Fri, 19 Apr 2002 14:37:07 +0000 (14:37 +0000)]
Fix SF #544995 (zlib crash on second flush call)
Bug fix by mhammond.

Bug fix candidate for 2.2, not present in 2.1.

23 years agoOops: we used PyMem_DEL() to clean up objects, and that's a problem since
Jack Jansen [Fri, 19 Apr 2002 14:29:47 +0000 (14:29 +0000)]
Oops: we used PyMem_DEL() to clean up objects, and that's a problem since
pymalloc, apparently. Fixed, but this means all bgen-generated modules will
have to be re-generated.

I hope (and expect) that the pymalloc fixes aren't bugfix candidates, because
if they are this is one too.

23 years agoDocument the build process more precisely. Suggested by Hugh Sasse.
Martin v. Löwis [Fri, 19 Apr 2002 09:47:23 +0000 (09:47 +0000)]
Document the build process more precisely. Suggested by Hugh Sasse.

23 years ago\idxcode -> \py@idxcode (mimics index stuff in python.sty - problem only
Skip Montanaro [Fri, 19 Apr 2002 04:52:44 +0000 (04:52 +0000)]
\idxcode -> \py@idxcode (mimics index stuff in python.sty - problem only
revealed itself when i added index generating lines to doc/doc.tex)

23 years agofix duplicate label
Skip Montanaro [Fri, 19 Apr 2002 04:50:44 +0000 (04:50 +0000)]
fix duplicate label
add index turds

23 years agoClean up the use of version numbers in filenames; always use an "abstract"
Fred Drake [Fri, 19 Apr 2002 04:04:57 +0000 (04:04 +0000)]
Clean up the use of version numbers in filenames; always use an "abstract"
version number, and explain what it is at the top of the chapter.
This closes SF bug #225003.

23 years agoFix bug 544473 - "Queue module can deadlock".
Mark Hammond [Fri, 19 Apr 2002 00:11:32 +0000 (00:11 +0000)]
Fix bug 544473 - "Queue module can deadlock".
Use try/finally to ensure all Queue locks remain stable.
Includes test case.  Bugfix candidate.

23 years ago_PyObject_DebugMallocStats(): Added some potentially expensive internal
Tim Peters [Thu, 18 Apr 2002 22:25:03 +0000 (22:25 +0000)]
_PyObject_DebugMallocStats():  Added some potentially expensive internal
consistency checks, enabled only in a debug (Py_DEBUG) build.  Note that
this never gets called automatically unless PYMALLOC_DEBUG is #define'd
too, and the envar PYTHONMALLOCSTATS exists.

23 years agoPyObject_Malloc: make a tiny bit faster for platforms where malloc(0)
Tim Peters [Thu, 18 Apr 2002 21:58:56 +0000 (21:58 +0000)]
PyObject_Malloc:  make a tiny bit faster for platforms where malloc(0)
doesn't return NULL.

PyObject_Realloc:  better comment for why we don't call PyObject_Malloc(0).

23 years agoRemove some long-disabled debugging boilerplate.
Tim Peters [Thu, 18 Apr 2002 21:37:03 +0000 (21:37 +0000)]
Remove some long-disabled debugging boilerplate.

23 years agoceval.c/do_raise(): Tighten the test to disallow raising an instance of
Tim Peters [Thu, 18 Apr 2002 18:06:20 +0000 (18:06 +0000)]
ceval.c/do_raise():  Tighten the test to disallow raising an instance of
a str subclass.

test_descr.py/string_exceptions():  New sub-test.

For 2.3 only.  Guido doesn't want this backported.

23 years agoRemove more out-of-date comments and clarify explanation of visit().
Jeremy Hylton [Thu, 18 Apr 2002 16:26:40 +0000 (16:26 +0000)]
Remove more out-of-date comments and clarify explanation of visit().

23 years agoRemove out-of-date explanation in doc strings,
Jeremy Hylton [Thu, 18 Apr 2002 16:02:48 +0000 (16:02 +0000)]
Remove out-of-date explanation in doc strings,
as reported by Eric C. Newton.

23 years agoTest for --export-dynamic directly to avoid problems with binutils 2.12.
Martin v. Löwis [Thu, 18 Apr 2002 14:51:36 +0000 (14:51 +0000)]
Test for --export-dynamic directly to avoid problems with binutils 2.12.
Will backport to 2.1 and 2.2.

23 years agoSF bug 544733: Cygwin test_mmap fix for Python 2.2.1
Tim Peters [Thu, 18 Apr 2002 04:30:18 +0000 (04:30 +0000)]
SF bug 544733:  Cygwin test_mmap fix for Python 2.2.1
Close a file before trying to unlink it, and apparently Cygwin needs
writes to an mmap'ed file to get flushed before they're visible.

Bugfix candidate, but I think only for the 2.2 line (it's testing
features that I think were new in 2.2).

23 years agotype_get_doc(): Squash compiler wng about incompatible ptr types.
Tim Peters [Thu, 18 Apr 2002 04:12:28 +0000 (04:12 +0000)]
type_get_doc():  Squash compiler wng about incompatible ptr types.

23 years agoLong-forgotten change: Update first paragraph with actual release date
Andrew M. Kuchling [Thu, 18 Apr 2002 02:18:27 +0000 (02:18 +0000)]
Long-forgotten change: Update first paragraph with actual release date

23 years agoSF bug 542984.
Guido van Rossum [Thu, 18 Apr 2002 00:27:33 +0000 (00:27 +0000)]
SF bug 542984.

Change type_get_doc (the get function for __doc__) to look in tp_dict
more often, and if it finds a descriptor in tp_dict, to call it (with
a NULL instance).  This means you can add a __doc__ descriptor to a
new-style class that returns instance docs when called on an instance,
and class docs when called on a class -- or the same docs in either
case, but lazily computed.

I'll also check this into the 2.2 maintenance branch.

23 years agoSF bug 542984.
Guido van Rossum [Thu, 18 Apr 2002 00:22:00 +0000 (00:22 +0000)]
SF bug 542984.

Change type_get_doc (the get function for __doc__) to look in tp_dict
more often, and if it finds a descriptor in tp_dict, to call it (with
a NULL instance).  This means you can add a __doc__ descriptor to a
new-style class that returns instance docs when called on an instance,
and class docs when called on a class -- or the same docs in either
case, but lazily computed.

I'll also check this into the 2.2 maintenance branch.

23 years agoUse md5.new() constructor
Andrew M. Kuchling [Wed, 17 Apr 2002 21:53:21 +0000 (21:53 +0000)]
Use md5.new() constructor

23 years agoUse 2.1's .hexdigest() method
Andrew M. Kuchling [Wed, 17 Apr 2002 21:50:03 +0000 (21:50 +0000)]
Use 2.1's .hexdigest() method

23 years agoApply diff3.txt from SF patch http://www.python.org/sf/536241
Walter Dörwald [Wed, 17 Apr 2002 21:34:05 +0000 (21:34 +0000)]
Apply diff3.txt from SF patch http://www.python.org/sf/536241

If a str or unicode method returns the original object,
make sure that for str and unicode subclasses the original
will not be returned.

This should prevent SF bug http://www.python.org/sf/460020
from reappearing.

23 years agoAdded note about new distutils commands.
Marc-André Lemburg [Wed, 17 Apr 2002 20:33:40 +0000 (20:33 +0000)]
Added note about new distutils commands.

23 years agoPatch #531901 by Mark W. Alexander: adds a new distutils packager
Marc-André Lemburg [Wed, 17 Apr 2002 20:30:10 +0000 (20:30 +0000)]
Patch #531901 by Mark W. Alexander: adds a new distutils packager
base class (in bdist_packager) and two subclasses which make use
of this base class: bdist_pkgtool (for Solaris) and bdist_sdux (for
HP-UX).

23 years agotypo
Skip Montanaro [Wed, 17 Apr 2002 19:33:06 +0000 (19:33 +0000)]
typo

23 years agoAdd text on tp_as_buffer that refers tothe section that covers the topic.
Fred Drake [Wed, 17 Apr 2002 13:44:58 +0000 (13:44 +0000)]
Add text on tp_as_buffer that refers tothe section that covers the topic.
Additional material is still needed in that section.

23 years agoAdd a version annotation for the help() function.
Fred Drake [Wed, 17 Apr 2002 12:54:04 +0000 (12:54 +0000)]
Add a version annotation for the help() function.

23 years agoAdjust markup to worm around tool limitations; the "m" in "model" was being
Fred Drake [Wed, 17 Apr 2002 03:41:50 +0000 (03:41 +0000)]
Adjust markup to worm around tool limitations; the "m" in "model" was being
dropped in the HTML formatted version.
Reported by Mike Coleman.

23 years agoPass the -r option to getpagecounts to generate an entry for the "What's
Fred Drake [Wed, 17 Apr 2002 03:31:08 +0000 (03:31 +0000)]
Pass the -r option to getpagecounts to generate an entry for the "What's
New" document.

23 years agoRemove Emacs turd; not needed with modern Emacs versions.
Fred Drake [Wed, 17 Apr 2002 03:29:40 +0000 (03:29 +0000)]
Remove Emacs turd; not needed with modern Emacs versions.

Add a -r option; if given with a release number, the "What's New" document
is included with the relevant version number.

Update the text of the README distributed with the PostScript files to
reflect the changes in the user organizations in the Python community.

23 years agoChanged last remaining use of "./" to "index.html" when referring to the
Fred Drake [Wed, 17 Apr 2002 01:40:56 +0000 (01:40 +0000)]
Changed last remaining use of "./" to "index.html" when referring to the
index file for the top-level directory.  This makes it easier to use an
unpacked version of the documentation via file: URLs.
This closes SF bug #541257.

23 years agoStart of script to locate C symbols and segregate them into lists of
Fred Drake [Tue, 16 Apr 2002 21:27:17 +0000 (21:27 +0000)]
Start of script to locate C symbols and segregate them into lists of
the documented and undocumented symbols.

23 years agoWindows installer: disabled Wise's "delete in-use files" uninstall
Tim Peters [Tue, 16 Apr 2002 20:48:01 +0000 (20:48 +0000)]
Windows installer:  disabled Wise's "delete in-use files" uninstall
option.  It was the cause of at least one way UNWISE.EXE could vanish
(install a python; uninstall it; install it again; reboot the machine;
abracadabra the uinstaller is gone).

Bugfix candidate, but I'll backport it myself.

23 years agoAdded docstrings to the Profile class.
Fred Drake [Tue, 16 Apr 2002 19:27:23 +0000 (19:27 +0000)]
Added docstrings to the Profile class.
Avoid adding Python wrappers around the underlying C profiler if possible;
the extra layer of calls can lead to confusion in interpreting the logs.

23 years agoUpdate the dependencies.
Fred Drake [Tue, 16 Apr 2002 18:48:25 +0000 (18:48 +0000)]
Update the dependencies.

23 years agoMinor wording change.
Fred Drake [Tue, 16 Apr 2002 18:32:37 +0000 (18:32 +0000)]
Minor wording change.

23 years agoSF bug 544647.
Guido van Rossum [Tue, 16 Apr 2002 16:44:51 +0000 (16:44 +0000)]
SF bug 544647.

PyNumber_InPlaceMultiply insisted on calling sq_inplace_repeat if it
existed, even if nb_inplace_multiply also existed and the arguments
weren't right for sq_inplace_repeat.  Change this to only use
sq_inplace_repeat if nb_inplace_multiply isn't defined.

Bugfix candidate.

23 years agoWhitespace normalization and fold some long lines.
Guido van Rossum [Tue, 16 Apr 2002 16:32:50 +0000 (16:32 +0000)]
Whitespace normalization and fold some long lines.

23 years agoAdd more text from Guido on the type structure fields.
Fred Drake [Tue, 16 Apr 2002 16:22:24 +0000 (16:22 +0000)]
Add more text from Guido on the type structure fields.
Small additional changes.

23 years agoadded small clarification to the descriptions of encode() and decode()
Skip Montanaro [Tue, 16 Apr 2002 15:12:10 +0000 (15:12 +0000)]
added small clarification to the descriptions of encode() and decode()

23 years agoReplace the simpleminded string.find with a re.search looking only for
Thomas Heller [Tue, 16 Apr 2002 15:04:56 +0000 (15:04 +0000)]
Replace the simpleminded string.find with a re.search looking only for
full words. Before that, something like 'PyObject_Call' was missed
because 'PyObject_CallFunction' was found.

Passes PyChecker now.

23 years agotest_mktime(): Removed. This wasn't really testing anything useful
Barry Warsaw [Tue, 16 Apr 2002 12:37:55 +0000 (12:37 +0000)]
test_mktime(): Removed.  This wasn't really testing anything useful
(or platform independent).  Closes SF bug #460357.

Bug fix candidate.

23 years agoMove WITH_UNIVERSAL_NEWLINES template into configure.in.
Martin v. Löwis [Tue, 16 Apr 2002 05:51:02 +0000 (05:51 +0000)]
Move WITH_UNIVERSAL_NEWLINES template into configure.in.

23 years agoWhitespace normalization, while using non-whitespace literals for
Barry Warsaw [Tue, 16 Apr 2002 05:06:42 +0000 (05:06 +0000)]
Whitespace normalization, while using non-whitespace literals for
intended whitespace.

23 years agoExpect test_email_codecs to be skipped -- few users or developers will
Guido van Rossum [Tue, 16 Apr 2002 02:14:04 +0000 (02:14 +0000)]
Expect test_email_codecs to be skipped -- few users or developers will
have the needed optional Japanese codecs installed.

23 years agoApparently 3 of the tests here rely on trailing whitespace and/or hard
Tim Peters [Tue, 16 Apr 2002 02:08:51 +0000 (02:08 +0000)]
Apparently 3 of the tests here rely on trailing whitespace and/or hard
tab characters, so reverting the whitespace normalization.  Barry,
please repair this.

23 years agoRemove repeated index entry; adds nothing different.
Fred Drake [Tue, 16 Apr 2002 02:03:05 +0000 (02:03 +0000)]
Remove repeated index entry; adds nothing different.
Closes SF bug #518985.

23 years agoFewer deprecation warnings.
Tim Peters [Tue, 16 Apr 2002 01:59:17 +0000 (01:59 +0000)]
Fewer deprecation warnings.

23 years agoresetwarnings(): Remove extra space from docstring guts.
Tim Peters [Tue, 16 Apr 2002 01:51:25 +0000 (01:51 +0000)]
resetwarnings():  Remove extra space from docstring guts.

23 years agoWhitespace normalization.
Tim Peters [Tue, 16 Apr 2002 01:38:40 +0000 (01:38 +0000)]
Whitespace normalization.

23 years agoresetwarnings(): change the docstring to reflect what the code
Tim Peters [Tue, 16 Apr 2002 01:33:59 +0000 (01:33 +0000)]
resetwarnings():  change the docstring to reflect what the code
actually does.  Note that the description in the Library Reference
manual is already accurate.

Bugfix candidate.

23 years agoTighten up some warning filters, and break some dependencies on the
Tim Peters [Tue, 16 Apr 2002 01:27:44 +0000 (01:27 +0000)]
Tighten up some warning filters, and break some dependencies on the
order in which the tests are normally run.

23 years agoOK, don't call resetwarnings().
Tim Peters [Tue, 16 Apr 2002 00:29:27 +0000 (00:29 +0000)]
OK, don't call resetwarnings().

23 years agoIt makes more sense to call resetwarnings() after every test runs than
Tim Peters [Tue, 16 Apr 2002 00:01:09 +0000 (00:01 +0000)]
It makes more sense to call resetwarnings() after every test runs than
to keep doing that in every test that wants to filter a warning.

23 years agoI expect test_univnewlines to be skipped on Windows. I expect this
Tim Peters [Mon, 15 Apr 2002 23:56:04 +0000 (23:56 +0000)]
I expect test_univnewlines to be skipped on Windows.  I expect this
because it *is* skipped.  I'm not entirely sure it should be skipped, but
figuring that out would take actual thought <wink>.

23 years agoReduce the number of test-suite DeprecationWarnings; start adding
Tim Peters [Mon, 15 Apr 2002 23:52:04 +0000 (23:52 +0000)]
Reduce the number of test-suite DeprecationWarnings; start adding
resetwarnings() calls too.

23 years agoFix grammar
Neal Norwitz [Mon, 15 Apr 2002 22:57:46 +0000 (22:57 +0000)]
Fix grammar

23 years agotest_main(): Added this so the test can actually get run under the
Barry Warsaw [Mon, 15 Apr 2002 22:14:06 +0000 (22:14 +0000)]
test_main(): Added this so the test can actually get run under the
regrtest framework.  Keep the original standalone-unittest
scaffolding (i.e. suite() and __main__).

23 years agoparseaddr(): Don't use rfc822.parseaddr() because this now implies a
Barry Warsaw [Mon, 15 Apr 2002 22:00:25 +0000 (22:00 +0000)]
parseaddr(): Don't use rfc822.parseaddr() because this now implies a
double call to AddressList.getaddrlist(), and /that/ always returns an
empty list for the second and subsequent calls.

Instead, instantiate an AddressList directly, and get the parsed
addresses out of the addresslist attribute.

23 years agoAdd documentation for PyObject_Call().
Fred Drake [Mon, 15 Apr 2002 20:51:19 +0000 (20:51 +0000)]
Add documentation for PyObject_Call().
Note that PyObject_Size() is a synonym for PyObject_Length().
This closes SF patch #544330 (contributed by Thomas Heller).