Jack Jansen [Mon, 22 Apr 2002 11:45:46 +0000 (11:45 +0000)]
Regenerated to include Internet Config error strings.
Bugfix candidate.
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.
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.
Neil Schemenauer [Mon, 22 Apr 2002 03:05:25 +0000 (03:05 +0000)]
pgen now needs pymalloc
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.
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]
Tim Peters [Mon, 22 Apr 2002 00:39:44 +0000 (00:39 +0000)]
Update the Windows makefile for 2.3.
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.
Neal Norwitz [Sun, 21 Apr 2002 23:44:34 +0000 (23:44 +0000)]
#546156, Remove load_false()/load_true(), they are not used
Tim Peters [Sun, 21 Apr 2002 18:15:20 +0000 (18:15 +0000)]
Py_UniversalNewlineFread(): small speed boost on non-Windows boxes.
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.
Neal Norwitz [Sun, 21 Apr 2002 15:03:18 +0000 (15:03 +0000)]
#544265, Remove warnings for passing const to free()
Martin v. Löwis [Sun, 21 Apr 2002 09:59:45 +0000 (09:59 +0000)]
Back out 2.140.
Tim Peters [Sun, 21 Apr 2002 07:30:30 +0000 (07:30 +0000)]
Enable universal newlines on Windows. Note that NEWS needs more words!
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.
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.
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).
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.
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.
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.
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.
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
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.
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).
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.
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
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.
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.
Tim Peters [Sat, 20 Apr 2002 02:56:20 +0000 (02:56 +0000)]
Fixed a comment.
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.
Tim Peters [Sat, 20 Apr 2002 02:37:07 +0000 (02:37 +0000)]
do_project(): Modernized the code.
Tim Peters [Sat, 20 Apr 2002 02:07:58 +0000 (02:07 +0000)]
Added "What's New" to the 2.2 doc set.
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.
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.
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.
Tim Peters [Fri, 19 Apr 2002 18:07:52 +0000 (18:07 +0000)]
project_template: use dict interpolation instead of giant tuples.
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.
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>.
Tim Peters [Fri, 19 Apr 2002 15:59:01 +0000 (15:59 +0000)]
Get the right funny characters in Hernan's name.
Neal Norwitz [Fri, 19 Apr 2002 14:58:40 +0000 (14:58 +0000)]
#546155, remove posix_int() it is not used
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.
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.
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.
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)
Skip Montanaro [Fri, 19 Apr 2002 04:50:44 +0000 (04:50 +0000)]
fix duplicate label
add index turds
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.
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.
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.
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).
Tim Peters [Thu, 18 Apr 2002 21:37:03 +0000 (21:37 +0000)]
Remove some long-disabled debugging boilerplate.
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.
Jeremy Hylton [Thu, 18 Apr 2002 16:26:40 +0000 (16:26 +0000)]
Remove more out-of-date comments and clarify explanation of visit().
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.
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.
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).
Tim Peters [Thu, 18 Apr 2002 04:12:28 +0000 (04:12 +0000)]
type_get_doc(): Squash compiler wng about incompatible ptr types.
Andrew M. Kuchling [Thu, 18 Apr 2002 02:18:27 +0000 (02:18 +0000)]
Long-forgotten change: Update first paragraph with actual release date
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.
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.
Andrew M. Kuchling [Wed, 17 Apr 2002 21:53:21 +0000 (21:53 +0000)]
Use md5.new() constructor
Andrew M. Kuchling [Wed, 17 Apr 2002 21:50:03 +0000 (21:50 +0000)]
Use 2.1's .hexdigest() method
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.
Marc-André Lemburg [Wed, 17 Apr 2002 20:33:40 +0000 (20:33 +0000)]
Added note about new distutils commands.
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).
Skip Montanaro [Wed, 17 Apr 2002 19:33:06 +0000 (19:33 +0000)]
typo
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.
Fred Drake [Wed, 17 Apr 2002 12:54:04 +0000 (12:54 +0000)]
Add a version annotation for the help() function.
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.
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.
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.
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.
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.
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.
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.
Fred Drake [Tue, 16 Apr 2002 18:48:25 +0000 (18:48 +0000)]
Update the dependencies.
Fred Drake [Tue, 16 Apr 2002 18:32:37 +0000 (18:32 +0000)]
Minor wording change.
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.
Guido van Rossum [Tue, 16 Apr 2002 16:32:50 +0000 (16:32 +0000)]
Whitespace normalization and fold some long lines.
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.
Skip Montanaro [Tue, 16 Apr 2002 15:12:10 +0000 (15:12 +0000)]
added small clarification to the descriptions of encode() and decode()
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.
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.
Martin v. Löwis [Tue, 16 Apr 2002 05:51:02 +0000 (05:51 +0000)]
Move WITH_UNIVERSAL_NEWLINES template into configure.in.
Barry Warsaw [Tue, 16 Apr 2002 05:06:42 +0000 (05:06 +0000)]
Whitespace normalization, while using non-whitespace literals for
intended whitespace.
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.
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.
Fred Drake [Tue, 16 Apr 2002 02:03:05 +0000 (02:03 +0000)]
Remove repeated index entry; adds nothing different.
Closes SF bug #518985.
Tim Peters [Tue, 16 Apr 2002 01:59:17 +0000 (01:59 +0000)]
Fewer deprecation warnings.
Tim Peters [Tue, 16 Apr 2002 01:51:25 +0000 (01:51 +0000)]
resetwarnings(): Remove extra space from docstring guts.
Tim Peters [Tue, 16 Apr 2002 01:38:40 +0000 (01:38 +0000)]
Whitespace normalization.
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.
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.
Tim Peters [Tue, 16 Apr 2002 00:29:27 +0000 (00:29 +0000)]
OK, don't call resetwarnings().
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.
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>.
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.
Neal Norwitz [Mon, 15 Apr 2002 22:57:46 +0000 (22:57 +0000)]
Fix grammar
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__).
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.
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).