]> granicus.if.org Git - python/log
python
23 years agoAdd reference to the "String Methods" section to make that information
Fred Drake [Sun, 2 Dec 2001 15:10:46 +0000 (15:10 +0000)]
Add reference to the "String Methods" section to make that information
easier to find.  Based on the comment from Steve Alexander on the
zope-coders mailing list.

23 years agoPatch #487784: Support Unicode commands in popen3/4 handling on UNIX.
Martin v. Löwis [Sun, 2 Dec 2001 13:32:15 +0000 (13:32 +0000)]
Patch #487784: Support Unicode commands in popen3/4 handling on UNIX.

23 years agoCompute thread headers through shell expansion in configure.
Martin v. Löwis [Sun, 2 Dec 2001 13:02:32 +0000 (13:02 +0000)]
Compute thread headers through shell expansion in configure.
Fixes #485679.

23 years agoPatch #481718: Time module doc string changes.
Martin v. Löwis [Sun, 2 Dec 2001 12:27:43 +0000 (12:27 +0000)]
Patch #481718: Time module doc string changes.

23 years agoPatch #487275: windows-1251 charset alias.
Martin v. Löwis [Sun, 2 Dec 2001 12:26:03 +0000 (12:26 +0000)]
Patch #487275: windows-1251 charset alias.

23 years agoPatch #487275: Add windows-1251 charset alias.
Martin v. Löwis [Sun, 2 Dec 2001 12:24:19 +0000 (12:24 +0000)]
Patch #487275: Add windows-1251 charset alias.

23 years agoPatch #486743: remove bad INCREF, propagate exception in append_objects.
Martin v. Löwis [Sun, 2 Dec 2001 12:21:34 +0000 (12:21 +0000)]
Patch #486743: remove bad INCREF, propagate exception in append_objects.

23 years agoPatch #487455: make types.StringTypes a tuple.
Martin v. Löwis [Sun, 2 Dec 2001 12:08:06 +0000 (12:08 +0000)]
Patch #487455: make types.StringTypes a tuple.

23 years agoRemove INET6 define. Use ENABLE_IPV6 instead.
Martin v. Löwis [Sun, 2 Dec 2001 10:15:37 +0000 (10:15 +0000)]
Remove INET6 define. Use ENABLE_IPV6 instead.

23 years agomywrite(): The test for trouble in PyOS_vsnprintf was wrong on both
Tim Peters [Sun, 2 Dec 2001 08:29:16 +0000 (08:29 +0000)]
mywrite():  The test for trouble in PyOS_vsnprintf was wrong on both
ends.  Also, when there is trouble, ensure the buffer has a traiing
0 byte.

23 years agoWhen the number of bytes written to the malloc'ed buffer is larger
Guido van Rossum [Sat, 1 Dec 2001 16:00:10 +0000 (16:00 +0000)]
When the number of bytes written to the malloc'ed buffer is larger
than the argument string size, copy as many bytes as will fit
(including a terminating '\0'), rather than not copying anything.
This to make it satisfy the C99 spec.

23 years agoWhitespace normalization.
Tim Peters [Sat, 1 Dec 2001 04:11:16 +0000 (04:11 +0000)]
Whitespace normalization.

23 years agoSF bug #487743: test_builtin fails on 64 bit platform.
Tim Peters [Sat, 1 Dec 2001 02:52:56 +0000 (02:52 +0000)]
SF bug #487743: test_builtin fails on 64 bit platform.
Bugfix candidate.
int_repr():  we've never had a buffer big enough to hold the largest
possible result on a 64-bit box.  Now that we're using snprintf instead
of sprintf, this can lead to nonsense results instead of random stack
corruption.

23 years agoSynchronize with pulldom from PyXML (revision 1.18).
Fred Drake [Fri, 30 Nov 2001 22:22:26 +0000 (22:22 +0000)]
Synchronize with pulldom from PyXML (revision 1.18).

23 years agoSynchronize with minidom from PyXML (revision 1.35).
Fred Drake [Fri, 30 Nov 2001 22:21:58 +0000 (22:21 +0000)]
Synchronize with minidom from PyXML (revision 1.35).

23 years agoDrop xmllib in favor of SAX.
Fred Drake [Fri, 30 Nov 2001 19:30:03 +0000 (19:30 +0000)]
Drop xmllib in favor of SAX.

23 years agoAdd a couple of entries to the whitespace-cleanups table.
Fred Drake [Fri, 30 Nov 2001 19:25:39 +0000 (19:25 +0000)]
Add a couple of entries to the whitespace-cleanups table.

23 years agoAdd description of tkCommonDialog.
Fred Drake [Fri, 30 Nov 2001 19:24:49 +0000 (19:24 +0000)]
Add description of tkCommonDialog.

23 years agoAdded two new conversion specifications.
Fred Drake [Fri, 30 Nov 2001 19:06:18 +0000 (19:06 +0000)]
Added two new conversion specifications.

23 years agoChange the chapter title to reflect the Tk affinity.
Fred Drake [Fri, 30 Nov 2001 18:17:24 +0000 (18:17 +0000)]
Change the chapter title to reflect the Tk affinity.
Use the new seealso* environment in the section pointing out other GUI
toolkits.

23 years agoAdd a new environment in the Python docs markup: seealso*. This is similar
Fred Drake [Fri, 30 Nov 2001 18:09:54 +0000 (18:09 +0000)]
Add a new environment in the Python docs markup: seealso*.  This is similar
to seealso, but does not add the "See also:" header or put the content in a
box in the HTML version.

Updated the description of \seeurl to better indicate when it should be used;
the old description was written before we had \seetitle.

23 years agoMinor adjustments to markup for the getDOMImplementation() description.
Fred Drake [Fri, 30 Nov 2001 16:58:15 +0000 (16:58 +0000)]
Minor adjustments to markup for the getDOMImplementation() description.

23 years agoAdded the convenience constants that are present in PyXML to make these
Fred Drake [Fri, 30 Nov 2001 15:37:33 +0000 (15:37 +0000)]
Added the convenience constants that are present in PyXML to make these
more similar.

23 years agoMerged changes made on r22b2-branch between r22b2 and r22b2-mac (the
Jack Jansen [Fri, 30 Nov 2001 14:16:36 +0000 (14:16 +0000)]
Merged changes made on r22b2-branch between r22b2 and r22b2-mac (the
changes from start of branch upto r22b2 were already merged, of course).

23 years agounicodedata_decomposition(): sprintf -> PyOS_snprintf.
Tim Peters [Fri, 30 Nov 2001 07:23:05 +0000 (07:23 +0000)]
unicodedata_decomposition():  sprintf -> PyOS_snprintf.

23 years agoUpdated documentation for the new httplib interface, by Kalle Svensson.
Fred Drake [Fri, 30 Nov 2001 06:06:40 +0000 (06:06 +0000)]
Updated documentation for the new httplib interface, by Kalle Svensson.
This closes SF bug #458447.

23 years agoUpdate the signature of PyFile_WriteString().
Fred Drake [Thu, 29 Nov 2001 22:42:59 +0000 (22:42 +0000)]
Update the signature of PyFile_WriteString().

23 years agoMore information about Tix support, contributed by Mike Clarkson.
Fred Drake [Thu, 29 Nov 2001 21:09:08 +0000 (21:09 +0000)]
More information about Tix support, contributed by Mike Clarkson.

23 years agoVarious cleanups & markup fixes, mostly relating to the stat and statvfs
Fred Drake [Thu, 29 Nov 2001 20:48:44 +0000 (20:48 +0000)]
Various cleanups & markup fixes, mostly relating to the stat and statvfs
result object changes.

23 years agoNeil Schemenauer suggested a small improvement to one of the example REs.
Fred Drake [Thu, 29 Nov 2001 20:23:14 +0000 (20:23 +0000)]
Neil Schemenauer suggested a small improvement to one of the example REs.

23 years agowriteline() --> writelines()
Fred Drake [Thu, 29 Nov 2001 19:04:50 +0000 (19:04 +0000)]
writeline() --> writelines()
This closes SF bug #487147.

23 years agoUse identity instead of equality when looking for referrers. Fixes #485781.
Martin v. Löwis [Thu, 29 Nov 2001 18:08:31 +0000 (18:08 +0000)]
Use identity instead of equality when looking for referrers. Fixes #485781.

23 years agoNew section of regular expression examples contributed by Skip Montanaro,
Fred Drake [Thu, 29 Nov 2001 08:45:22 +0000 (08:45 +0000)]
New section of regular expression examples contributed by Skip Montanaro,
with some extensions and changes from me.
This closes SF patch #472825.

23 years agoClarify the description of the creation of an owned reference from an API
Fred Drake [Thu, 29 Nov 2001 07:16:19 +0000 (07:16 +0000)]
Clarify the description of the creation of an owned reference from an API
function.
This closes SF bug #486657.

23 years agoAdd an index entry for the discussion of PyEval_CallObject().
Fred Drake [Thu, 29 Nov 2001 05:02:34 +0000 (05:02 +0000)]
Add an index entry for the discussion of PyEval_CallObject().
This is related to SF bug #485165.

23 years agoA few small changes:
Fred Drake [Thu, 29 Nov 2001 04:30:46 +0000 (04:30 +0000)]
A few small changes:
- Change PREFIX to PREFIXES, which contains a sequence of prefix strings.
  This is useful since we want to look for both Py and PY.
- Wrap a long line.
- Collect struct tags as well as typedef names.  Since we generally only
  use one of the other, that improves coverage.
- Make the script executable on Unix.

This could use a better approach to determine if a symbol is documented,
and could easily avoid keeping the massive string in memory.  That would
take time to actually write more code, though, so we'll bail on that
for now.

23 years agoSF bug 486278 SystemError: Python/getargs.c:1086: bad.
Tim Peters [Thu, 29 Nov 2001 03:26:37 +0000 (03:26 +0000)]
SF bug 486278 SystemError: Python/getargs.c:1086: bad.
vgetargskeywords():  Now that this routine is checking for bad input
(rather than dump core in some cases), some bad calls are raising errors
that previously "worked".  This patch makes the error strings more
revealing, and changes the exceptions from SystemError to RuntimeError
(under the theory that SystemError is more of a "can't happen!" assert-
like thing, and so inappropriate for bad arguments to a public C API
function).

23 years agocanonic(): don't use abspath() for filenames looking like <...>; this
Guido van Rossum [Thu, 29 Nov 2001 02:50:15 +0000 (02:50 +0000)]
canonic(): don't use abspath() for filenames looking like <...>; this
fixes the problem reported in SF bug #477023 (Jonathan Mark): "pdb:
unexpected path confuses Emacs".

23 years agoSF bug 486480: zipfile __del__ is broken
Tim Peters [Wed, 28 Nov 2001 23:16:40 +0000 (23:16 +0000)]
SF bug 486480:  zipfile __del__ is broken
ZipFile.__del__():  call ZipFile.close(), like its docstring says it does.
ZipFile.close():  allow calling more than once (as all file-like objects
in Python should support).

23 years agoPyFloat_AsStringEx(): This function takes an output char* but doesn't
Tim Peters [Wed, 28 Nov 2001 22:43:45 +0000 (22:43 +0000)]
PyFloat_AsStringEx():  This function takes an output char* but doesn't
pass the buffer length.  Stop using it.  It should be deprecated, but too
late in the release cycle to do that now.
New static format_float() does the same thing but requires passing the
buffer length too.  Use it instead.

23 years agoTwo screwups fixed for sizeof(char *) instead of sizeof(char []).
Jeremy Hylton [Wed, 28 Nov 2001 22:14:37 +0000 (22:14 +0000)]
Two screwups fixed for sizeof(char *) instead of sizeof(char []).

Also change all the helper functions to pass along the size of the
msgbuf and use PyOS_snprintf() when writing into the buffer.

23 years agoPyFile_WriteString(): change prototype so that the string arg is
Tim Peters [Wed, 28 Nov 2001 22:13:25 +0000 (22:13 +0000)]
PyFile_WriteString():  change prototype so that the string arg is
const char* instead of char*.  The change is conceptually correct, and
indirectly fixes a compiler wng introduced when somebody else innocently
passed a const char* to this function.

23 years agoMore sprintf -> PyOS_snprintf.
Tim Peters [Wed, 28 Nov 2001 22:07:30 +0000 (22:07 +0000)]
More sprintf -> PyOS_snprintf.

23 years agoUse PyOS_snprintf() instead of sprintf().
Jeremy Hylton [Wed, 28 Nov 2001 21:49:51 +0000 (21:49 +0000)]
Use PyOS_snprintf() instead of sprintf().

23 years agoUse PyOS_snprintf() at some cost even though it was correct before.
Jeremy Hylton [Wed, 28 Nov 2001 21:46:59 +0000 (21:46 +0000)]
Use PyOS_snprintf() at some cost even though it was correct before.

seterror() uses a char array and a pointer to the current position in
that array.  Use snprintf() and compute the amount of space left in
the buffer based on the current pointer position.

23 years agoUse PyOS_vsnprintf() and check its return value.
Jeremy Hylton [Wed, 28 Nov 2001 21:44:53 +0000 (21:44 +0000)]
Use PyOS_vsnprintf() and check its return value.

If it returns -1 (which indicates overflow on old Linux platforms and
perhaps on Windows) or size greater than buffer, write a message
indicating that the previous message was truncated.

23 years agoste_repr(): Conversion of sprintf() to PyOS_snprintf() for buffer
Barry Warsaw [Wed, 28 Nov 2001 21:36:28 +0000 (21:36 +0000)]
ste_repr(): Conversion of sprintf() to PyOS_snprintf() for buffer
overrun avoidance.

23 years agoaix_loaderror(): Conversion of sprintf() to PyOS_snprintf() for buffer
Barry Warsaw [Wed, 28 Nov 2001 21:35:49 +0000 (21:35 +0000)]
aix_loaderror(): Conversion of sprintf() to PyOS_snprintf() for buffer
overrun avoidance.

23 years agoReverting last change so we don't have to think about the assert macro
Barry Warsaw [Wed, 28 Nov 2001 21:34:34 +0000 (21:34 +0000)]
Reverting last change so we don't have to think about the assert macro
redefinition problem.

23 years agoUse strncpy() instead of sprintf() in calculate_path().
Jeremy Hylton [Wed, 28 Nov 2001 21:30:04 +0000 (21:30 +0000)]
Use strncpy() instead of sprintf() in calculate_path().

Also reformat calculate_path() using the standard format.

23 years agocode_repr(), com_addop_varname(), com_list_comprehension(),
Barry Warsaw [Wed, 28 Nov 2001 21:10:39 +0000 (21:10 +0000)]
code_repr(), com_addop_varname(), com_list_comprehension(),
com_arglist(), symtable_check_unoptimized(), symtable_params(),
symtable_global(), symtable_list_comprehension():

    Conversion of sprintf() to PyOS_snprintf() for buffer overrun
    avoidance.

23 years agoPyGrammar_LabelRepr(): Conversion of sprintf() to PyOS_snprintf() for
Barry Warsaw [Wed, 28 Nov 2001 21:04:25 +0000 (21:04 +0000)]
PyGrammar_LabelRepr(): Conversion of sprintf() to PyOS_snprintf() for
buffer overrun avoidance.

23 years agoPyWin_FindRegisteredModule(): Conversion of sprintf() to
Barry Warsaw [Wed, 28 Nov 2001 21:03:37 +0000 (21:03 +0000)]
PyWin_FindRegisteredModule(): Conversion of sprintf() to
PyOS_snprintf() for buffer overrun avoidance.

23 years agoweakref_repr(), proxy_repr(): Conversion of sprintf() to
Barry Warsaw [Wed, 28 Nov 2001 21:01:56 +0000 (21:01 +0000)]
weakref_repr(), proxy_repr(): Conversion of sprintf() to
PyOS_snprintf() for buffer overrun avoidance.

23 years agoformatfloat(), formatint(): Conversion of sprintf() to PyOS_snprintf()
Barry Warsaw [Wed, 28 Nov 2001 21:00:41 +0000 (21:00 +0000)]
formatfloat(), formatint(): Conversion of sprintf() to PyOS_snprintf()
for buffer overrun avoidance.

23 years agostructseq_new(): Conversion of sprintf() to PyOS_snprintf() for buffer
Barry Warsaw [Wed, 28 Nov 2001 20:56:44 +0000 (20:56 +0000)]
structseq_new(): Conversion of sprintf() to PyOS_snprintf() for buffer
overrun avoidance.

23 years agoPyInt_FromString(), int_repr(), int_oct(), int_hex(): Conversion of
Barry Warsaw [Wed, 28 Nov 2001 20:55:34 +0000 (20:55 +0000)]
PyInt_FromString(), int_repr(), int_oct(), int_hex(): Conversion of
sprintf() to PyOS_snprintf() for buffer overrun avoidance.

23 years agoPyFloat_FromString(): Conversion of sprintf() to PyOS_snprintf() for
Barry Warsaw [Wed, 28 Nov 2001 20:52:21 +0000 (20:52 +0000)]
PyFloat_FromString(): Conversion of sprintf() to PyOS_snprintf() for
buffer overrun avoidance.

23 years agocomplex_to_buf(), complex_subtype_from_c_complex(): Conversion of
Barry Warsaw [Wed, 28 Nov 2001 20:50:56 +0000 (20:50 +0000)]
complex_to_buf(), complex_subtype_from_c_complex(): Conversion of
sprintf() to PyOS_snprintf() for buffer overrun avoidance.

complex_print(), complex_repr(), complex_str(): Call complex_to_buf()
passing in sizeof(buf).

23 years agoUse PyOS_snprintf instead of sprintf.
Jeremy Hylton [Wed, 28 Nov 2001 20:42:20 +0000 (20:42 +0000)]
Use PyOS_snprintf instead of sprintf.

23 years agoUse PyOS_snprintf instead of sprintf.
Jeremy Hylton [Wed, 28 Nov 2001 20:37:25 +0000 (20:37 +0000)]
Use PyOS_snprintf instead of sprintf.

Also replace a switch statement with one case and a default to an
if/else.

23 years agoRepair a botched PyOS_snprintf conversion.
Tim Peters [Wed, 28 Nov 2001 20:32:57 +0000 (20:32 +0000)]
Repair a botched PyOS_snprintf conversion.

23 years agoUse PyOS_snprintf when possible.
Jeremy Hylton [Wed, 28 Nov 2001 20:29:22 +0000 (20:29 +0000)]
Use PyOS_snprintf when possible.

23 years agosprintf -> PyOS_snprintf in some "obviously safe" cases.
Tim Peters [Wed, 28 Nov 2001 20:27:42 +0000 (20:27 +0000)]
sprintf -> PyOS_snprintf in some "obviously safe" cases.
Also changed <>-style #includes to ""-style in some places where the
former didn't make sense.

23 years agoUse PyOS_snprintf instead of sprintf.
Jeremy Hylton [Wed, 28 Nov 2001 20:24:33 +0000 (20:24 +0000)]
Use PyOS_snprintf instead of sprintf.

Just being sure.  The old code looks like it was safe, but there's no
harm in double-checking.

23 years agoChecking in Zooko's version per SF patch #476866, plus my changes to
Guido van Rossum [Wed, 28 Nov 2001 19:41:45 +0000 (19:41 +0000)]
Checking in Zooko's version per SF patch #476866, plus my changes to
the usage docs: (a) align properly, (b) explain properly.

23 years agoRemoved preprocessor gimmick trying to force use of snprintf emulation
Tim Peters [Wed, 28 Nov 2001 16:51:49 +0000 (16:51 +0000)]
Removed preprocessor gimmick trying to force use of snprintf emulation
before 2.2b1.

23 years agoFix SF bug [ #476852 ] Some bad macros in abstract.h
Jeremy Hylton [Wed, 28 Nov 2001 16:20:07 +0000 (16:20 +0000)]
Fix SF bug [ #476852 ] Some bad macros in abstract.h

Change macros as requested by Guido

23 years agoAdding test for Unicode repr()-output.
Marc-André Lemburg [Wed, 28 Nov 2001 14:03:14 +0000 (14:03 +0000)]
Adding test for Unicode repr()-output.

23 years agoFix for bug #485951: repr diff between string and unicode.
Marc-André Lemburg [Wed, 28 Nov 2001 12:56:20 +0000 (12:56 +0000)]
Fix for bug #485951: repr diff between string and unicode.

23 years agoFixes for possible buffer overflows in sprintf() usages.
Marc-André Lemburg [Wed, 28 Nov 2001 11:47:00 +0000 (11:47 +0000)]
Fixes for possible buffer overflows in sprintf() usages.

23 years agoRe-arrange the modules in the "Internet Data Handling" chapter to try to
Fred Drake [Wed, 28 Nov 2001 07:50:45 +0000 (07:50 +0000)]
Re-arrange the modules in the "Internet Data Handling" chapter to try to
achieve a more sensible organization.

23 years agoClarify that on some systems, lockf() using LOCK_EX requires that the file
Fred Drake [Wed, 28 Nov 2001 07:48:32 +0000 (07:48 +0000)]
Clarify that on some systems, lockf() using LOCK_EX requires that the file
is opened for writing; this closes SF bug #485342.

Added notes that file objects are also accepted in the place of file
descriptors.

23 years agoAdd synopsis for the SimpleXMLRPCServer module; used in the chapter-level
Fred Drake [Wed, 28 Nov 2001 07:32:53 +0000 (07:32 +0000)]
Add synopsis for the SimpleXMLRPCServer module; used in the chapter-level
list of modules.

23 years agoClean up some markup cruft. A number of the macros that take no
Fred Drake [Wed, 28 Nov 2001 07:26:15 +0000 (07:26 +0000)]
Clean up some markup cruft.  A number of the macros that take no
parameters (like \UNIX) are commonly entered using an empty group to
separate the markup from a following inter-word space; this is not
needed when the next character is punctuation, or the markup is the
last thing in the enclosing group.  These cases were marked
inconsistently; the empty group is now *only* used when needed.

23 years ago__format(): Applied SF patch #482003 by Skip to fix multiline dict
Barry Warsaw [Wed, 28 Nov 2001 05:49:39 +0000 (05:49 +0000)]
__format(): Applied SF patch #482003 by Skip to fix multiline dict
output.

Patch includes additional test case test_basic_line_wrap().

This patch is a candidate for Python 2.1.2.

23 years agoFix docstring typo
Andrew M. Kuchling [Wed, 28 Nov 2001 04:28:31 +0000 (04:28 +0000)]
Fix docstring typo

23 years agoFix [ #484645 ] little bug in pycodegen.py
Jeremy Hylton [Tue, 27 Nov 2001 23:35:10 +0000 (23:35 +0000)]
Fix [ #484645 ] little bug in pycodegen.py

23 years agoSF bug #483469: crash on unbounded recursion in __del__.
Tim Peters [Tue, 27 Nov 2001 23:29:29 +0000 (23:29 +0000)]
SF bug #483469:  crash on unbounded recursion in __del__.
PyEval_EvalCodeEx():  increment tstate->recursion_depth around the
decref of the frame, because the C stack for this call is still in
use and the decref can lead to __del__ methods getting called.

While this gives tstate->recursion_depth a value proportional to the
depth of the C stack (instead of a small constant no matter how
deeply __del__s recurse), it's not enough to stop the reported crash
when using the default recursion limit on Windows.

Bugfix candidate.

23 years agoSF bug 485175: buffer overflow in traceback.c.
Tim Peters [Tue, 27 Nov 2001 20:30:42 +0000 (20:30 +0000)]
SF bug 485175:  buffer overflow in traceback.c.
Bugfix candidate.
tb_displayline():  the sprintf format was choking off the file name, but
used plain %s for the function name (which can be arbitrarily long).
Limit both to 500 chars max.

23 years agotest_formatdate(): Integrating Jack's 22b2 branch fix for Mac epoch:
Barry Warsaw [Tue, 27 Nov 2001 07:12:35 +0000 (07:12 +0000)]
test_formatdate(): Integrating Jack's 22b2 branch fix for Mac epoch:

    More changes to the formatdate epoch test: the Mac epoch is in
    localtime, so east of GMT it falls in 1903:-( Changed the test to
    obtain the epoch in both local time and GMT, and do the right
    thing in the comparisons. As a sanity measure also check that
    day/month is Jan 1.

23 years agoTypo, spotted by Fredrik Lundh.
Fred Drake [Mon, 26 Nov 2001 21:46:53 +0000 (21:46 +0000)]
Typo, spotted by Fredrik Lundh.

23 years agoTypo, spotted by Detlef Lannert.
Fred Drake [Mon, 26 Nov 2001 21:39:40 +0000 (21:39 +0000)]
Typo, spotted by Detlef Lannert.

23 years agoTk-related modules should no longer be listed here.
Fred Drake [Mon, 26 Nov 2001 21:38:50 +0000 (21:38 +0000)]
Tk-related modules should no longer be listed here.

23 years agoFix typo, extra markup constructs.
Fred Drake [Mon, 26 Nov 2001 21:30:36 +0000 (21:30 +0000)]
Fix typo, extra markup constructs.
This closes SF bug #485252.

23 years agoAdd documentation for the PyCell* APIs.
Fred Drake [Mon, 26 Nov 2001 21:29:17 +0000 (21:29 +0000)]
Add documentation for the PyCell* APIs.

23 years agoCorrectly create new-style classes in the examples
Andrew M. Kuchling [Mon, 26 Nov 2001 18:15:44 +0000 (18:15 +0000)]
Correctly create new-style classes in the examples
Mention change to _PyTuple_Resize

23 years agoSF patch 483059: Avoid use of eval() in random.py, from Finn Bock.
Tim Peters [Sun, 25 Nov 2001 21:12:43 +0000 (21:12 +0000)]
SF patch 483059: Avoid use of eval() in random.py, from Finn Bock.
_verify():  Pass in the values of globals insted of eval()ing their
names.  The use of eval() was obscure and unnecessary, and the patch
claimed random.py couldn't be used in Jython applets because of it.

23 years agoProperly set static options for tixBalloon and tixResizeHandle.
Martin v. Löwis [Sun, 25 Nov 2001 14:50:56 +0000 (14:50 +0000)]
Properly set static options for tixBalloon and tixResizeHandle.
Expose Tix.ResizeHandle.{detach_widget,hide,show}.
Update Tix demos.

23 years agoPatch #484847: Default to netscape.exe on OS/2.
Martin v. Löwis [Sun, 25 Nov 2001 14:35:58 +0000 (14:35 +0000)]
Patch #484847: Default to netscape.exe on OS/2.

23 years ago- Change all remaining assertions into verify() and vereq() calls.
Guido van Rossum [Sat, 24 Nov 2001 21:07:01 +0000 (21:07 +0000)]
- Change all remaining assertions into verify() and vereq() calls.

- Add tests for the recent fixes to copy_reg.py:
  __getstate__/__setstate__ and mixed inheritance from new+classic
  classes.

23 years ago_reduce():
Guido van Rossum [Sat, 24 Nov 2001 21:04:31 +0000 (21:04 +0000)]
_reduce():

  - Fix for SF bug #482752: __getstate__ & __setstate__ ignored (by Anon.)

    In fact, only __getstate__ isn't recognized.  This fixes that.

  - Separately, the test for base.__flags__ & _HEAPTYPE raised an
    AttributeError exception when a classic class was amongst the
    bases.  Fixed this with a hasattr() bandaid (classic classes never
    qualify as the "hard" base class anyway, which is what the code is
    trying to find).

23 years agoPyObject_GetItem(), PyObject_SetItem(), PyObject_DelItem(): Fix a few
Guido van Rossum [Sat, 24 Nov 2001 18:24:47 +0000 (18:24 +0000)]
PyObject_GetItem(), PyObject_SetItem(), PyObject_DelItem(): Fix a few
confusing error messages.  If a new-style class has no sequence or
mapping behavior, attempting to use the indexing notation with a
non-integer key would complain that the sequence index must be an
integer, rather than complaining that the operation is not supported.

23 years agoMore typo fixes.
Barry Warsaw [Sat, 24 Nov 2001 16:56:56 +0000 (16:56 +0000)]
More typo fixes.

23 years agoDocstring typo fix.
Greg Ward [Sat, 24 Nov 2001 15:49:53 +0000 (15:49 +0000)]
Docstring typo fix.

23 years agoAdd hotshot to LIBSUBDIRS. Fixes #484642.
Martin v. Löwis [Sat, 24 Nov 2001 09:39:05 +0000 (09:39 +0000)]
Add hotshot to LIBSUBDIRS. Fixes #484642.

23 years agoCorrect typo. Fixes #484611.
Martin v. Löwis [Sat, 24 Nov 2001 09:31:44 +0000 (09:31 +0000)]
Correct typo. Fixes #484611.

23 years agoSupport bsddb 3.2. Fixes #483653.
Martin v. Löwis [Sat, 24 Nov 2001 09:28:42 +0000 (09:28 +0000)]
Support bsddb 3.2. Fixes #483653.

23 years agoRename get_referents to get_referrers. Fixes #483815.
Martin v. Löwis [Sat, 24 Nov 2001 09:24:51 +0000 (09:24 +0000)]
Rename get_referents to get_referrers. Fixes #483815.

23 years agofix for redundant empty parent window when invoked from idle shell window
Steven M. Gava [Wed, 21 Nov 2001 05:58:24 +0000 (05:58 +0000)]
fix for redundant empty parent window when invoked from idle shell window