]> granicus.if.org Git - python/log
python
24 years agoWhen raising a SyntaxError, make a best-effort attempt to set the
Fred Drake [Tue, 15 Aug 2000 15:49:03 +0000 (15:49 +0000)]
When raising a SyntaxError, make a best-effort attempt to set the
filename and lineno attributes, but do not mask the SyntaxError if we
fail.

This is part of what is needed to close SoruceForge bug #110628
(Jitterbug PR#278).

24 years agoSyntaxError__str__(): Do more formatting of the exception here, rather
Fred Drake [Tue, 15 Aug 2000 15:46:16 +0000 (15:46 +0000)]
SyntaxError__str__():  Do more formatting of the exception here, rather
than depending on the site that raises the exception.  If the
filename and lineno attributes are set on the exception object,
use them to augment the message displayed.

This is part of what is needed to close SoruceForge bug #110628
(Jitterbug PR#278).

24 years agoBump version to 0.9.1.
Greg Ward [Tue, 15 Aug 2000 13:14:27 +0000 (13:14 +0000)]
Bump version to 0.9.1.

24 years agoFixed the move-RPM-files hack so it knows about the '--binary-only' and
Greg Ward [Tue, 15 Aug 2000 13:05:35 +0000 (13:05 +0000)]
Fixed the move-RPM-files hack so it knows about the '--binary-only' and
'--source-only' options.

24 years agoAdded support for the '--dist-dir' option, including a mildly nasty
Greg Ward [Tue, 15 Aug 2000 13:03:16 +0000 (13:03 +0000)]
Added support for the '--dist-dir' option, including a mildly nasty
hack to find the two created RPM files (source and binary) and
move them to the "dist dir" (default "dist").

24 years agoFix long-hidden inconsistency in internal interface: 'find_modules()' now
Greg Ward [Tue, 15 Aug 2000 13:01:25 +0000 (13:01 +0000)]
Fix long-hidden inconsistency in internal interface: 'find_modules()' now
represents packages as strings, not tuples.  This allowed a simplification
in 'get_package_dir()', too -- can now assume that 'package' is a string.

24 years agobinascii_unhexlify(): Better error message, courtesy effbot.
Barry Warsaw [Tue, 15 Aug 2000 06:59:58 +0000 (06:59 +0000)]
binascii_unhexlify(): Better error message, courtesy effbot.

24 years agotests for binascii.b2a_hex() and binascii.a2b_hex().
Barry Warsaw [Tue, 15 Aug 2000 06:08:31 +0000 (06:08 +0000)]
tests for binascii.b2a_hex() and binascii.a2b_hex().

24 years agoDescribe the b2a_hex() and a2b_hex() functions (a.k.a. hexlify() and
Barry Warsaw [Tue, 15 Aug 2000 06:08:00 +0000 (06:08 +0000)]
Describe the b2a_hex() and a2b_hex() functions (a.k.a. hexlify() and
unhexlify() respectively).

24 years agoAfter a brief conversation and code review with TP, adding two very
Barry Warsaw [Tue, 15 Aug 2000 06:07:13 +0000 (06:07 +0000)]
After a brief conversation and code review with TP, adding two very
commonly used functions to convert an arbitrary binary string into
a hexadecimal digit representation and back again.  These are often
(and often differently) implemented in Python.  Best to have one
common fast implementation.  Specifically,

binascii_hexlify(): a.k.a. b2a_hex() to return the hex representation
of binary data.

binascii_unhexlify(): a.k.a. a2b_hex() to do the inverse conversion
(hex digits to binary data).  The argument must have an even length,
and must contain only hex digits, otherwise a TypeError is raised.

24 years agoSHA_hexdigest(): A couple of small patches to this function, added
Barry Warsaw [Tue, 15 Aug 2000 06:03:35 +0000 (06:03 +0000)]
SHA_hexdigest(): A couple of small patches to this function, added
after a brief conversation with TP.  First, the return values of the
PyString_* function calls should be checked for errors.  Second,
bit-manipulations should be used instead of division for spliting the
byte up into its 4 bit digits.

24 years agoAdded a test of the md5.hexdigest() method. Funny enough, this test
Barry Warsaw [Tue, 15 Aug 2000 06:01:36 +0000 (06:01 +0000)]
Added a test of the md5.hexdigest() method.  Funny enough, this test
had yet-another Python implementation of a binary-data-to-hex-digit
encoder!

24 years agoAdded description of the md5.hexdigest() method.
Barry Warsaw [Tue, 15 Aug 2000 06:00:28 +0000 (06:00 +0000)]
Added description of the md5.hexdigest() method.

24 years agomd5_hexdigest(): After a brief conversation with TP, added hexdigest()
Barry Warsaw [Tue, 15 Aug 2000 05:59:44 +0000 (05:59 +0000)]
md5_hexdigest(): After a brief conversation with TP, added hexdigest()
to this module to mirror sha's hexdigest() method.

24 years agoCorrect the reference count information for the parameters of
Fred Drake [Tue, 15 Aug 2000 04:36:16 +0000 (04:36 +0000)]
Correct the reference count information for the parameters of
PyErr_Restore().

24 years agoGuido pointed out that all names in the sys module have no underscore,
Fred Drake [Tue, 15 Aug 2000 04:24:43 +0000 (04:24 +0000)]
Guido pointed out that all names in the sys module have no underscore,

24 years agoFix for http://sourceforge.net/bugs/?func=detailbug&bug_id=111866&group_id=5470.
Tim Peters [Tue, 15 Aug 2000 03:34:48 +0000 (03:34 +0000)]
Fix for http://sourceforge.net/bugs/?func=detailbug&bug_id=111866&group_id=5470.
This was a misleading bug -- the true "bug" was that hash(x) gave an error
return when x is an infinity.  Fixed that.  Added new Py_IS_INFINITY macro to
pyport.h.  Rearranged code to reduce growing duplication in hashing of float and
complex numbers, pushing Trent's earlier stab at that to a logical conclusion.
Fixed exceedingly rare bug where hashing of floats could return -1 even if there
wasn't an error (didn't waste time trying to construct a test case, it was simply
obvious from the code that it *could* happen).  Improved complex hash so that
hash(complex(x, y)) doesn't systematically equal hash(complex(y, x)) anymore.

24 years agoInitial revision
David Scherer [Tue, 15 Aug 2000 01:13:23 +0000 (01:13 +0000)]
Initial revision

24 years agoFix for bug #110670 - Win32 os.listdir raises confusing errors:
Mark Hammond [Tue, 15 Aug 2000 00:46:38 +0000 (00:46 +0000)]
Fix for bug #110670 - Win32 os.listdir raises confusing errors:
The existing win32_error() function now returns the new(ish) WindowsError, ensuring we get correct error messages.

24 years agoFix the parent of WindowsError - both the comments in this source file, and the previ...
Mark Hammond [Tue, 15 Aug 2000 00:37:32 +0000 (00:37 +0000)]
Fix the parent of WindowsError - both the comments in this source file, and the previous exceptions.py have WindowsError as a sub-class of OSError.

24 years agoRemove the test for abspath with an empty path - too hard to do in a cross-platform...
Mark Hammond [Mon, 14 Aug 2000 23:06:37 +0000 (23:06 +0000)]
Remove the test for abspath with an empty path - too hard to do in a cross-platform manner.

24 years agoThe attempt to protect against MS_WIN16 compilers that do not support long
Fred Drake [Mon, 14 Aug 2000 20:59:57 +0000 (20:59 +0000)]
The attempt to protect against MS_WIN16 compilers that do not support long
string literals has not been tested on an MS_WIN16 platform; the trailing
";" was inside the #ifndef MS_WIN16, which should cause an error (missing
semi-colon) when compiled with that symbol #defined.

24 years agoFor bug reporting, point to the SourceForge bug tracker instead of the
Fred Drake [Mon, 14 Aug 2000 16:35:05 +0000 (16:35 +0000)]
For bug reporting, point to the SourceForge bug tracker instead of the
old Jitterbug interface.

24 years agoDocument the byte_order value in the sys module.
Fred Drake [Mon, 14 Aug 2000 15:47:30 +0000 (15:47 +0000)]
Document the byte_order value in the sys module.

24 years agoAdd a byte_order value to the sys module. The value is "big" for
Fred Drake [Mon, 14 Aug 2000 15:47:03 +0000 (15:47 +0000)]
Add a byte_order value to the sys module.  The value is "big" for
big-endian machines and "little" for little-endian machines.

24 years agoDocument the range type, as suggested by Denis S. Otkidach
Fred Drake [Mon, 14 Aug 2000 15:37:59 +0000 (15:37 +0000)]
Document the range type, as suggested by Denis S. Otkidach
<den@analyt.chem.msu.ru>.

24 years agoFixed a couple of instances where a 0-length string was being
Marc-André Lemburg [Mon, 14 Aug 2000 11:29:19 +0000 (11:29 +0000)]
Fixed a couple of instances where a 0-length string was being
resized after creation. 0-length strings are usually shared
and _PyString_Resize() fails on these shared strings.

Fixes [ Bug #111667 ] unicode core dump.

24 years agoTest for fix to bug #110673: os.abspatth() now always returns os.getcwd() on Windows...
Mark Hammond [Mon, 14 Aug 2000 06:21:26 +0000 (06:21 +0000)]
Test for fix to bug #110673: os.abspatth() now always returns os.getcwd() on Windows, if an empty path is specified.  It previously did not if an empty path was delegated to win32api.GetFullPathName())

24 years agoFix for Bug #110673: os.abspatth() now always returns os.getcwd() on Windows, if...
Mark Hammond [Mon, 14 Aug 2000 06:20:32 +0000 (06:20 +0000)]
Fix for Bug #110673: os.abspatth() now always returns os.getcwd() on Windows, if an empty path is specified.  It previously did not if an empty path was delegated to win32api.GetFullPathName())

24 years agoCheck in the correct output - even though the module itself may not survive!
Mark Hammond [Mon, 14 Aug 2000 06:05:40 +0000 (06:05 +0000)]
Check in the correct output - even though the module itself may not survive!

24 years agoSupport for building the new w9xpopen.exe, which is used for reliable popen operation...
Mark Hammond [Mon, 14 Aug 2000 05:07:05 +0000 (05:07 +0000)]
Support for building the new w9xpopen.exe, which is used for reliable popen operation on Windows 9x.

24 years agoPatch #101032, from David Bolen:
Mark Hammond [Mon, 14 Aug 2000 05:04:28 +0000 (05:04 +0000)]
Patch #101032, from David Bolen:

Ensure the "proxied" command's return code bubbles back up.

24 years agoPatch #101032, from David Bolen:
Mark Hammond [Mon, 14 Aug 2000 04:47:33 +0000 (04:47 +0000)]
Patch #101032, from David Bolen:
This is an enhancement to a prior patch (100941) ...
[T]his patch removes the risk of deadlock waiting for the child previously present in certain cases. It adds tracking of all file handles returned from an os.popen* call and only waits for the child process, returning the exit code, on the closure of the final file handle to that child.

24 years agoIn the section on the "Very High Level Layer", address concerns brought up
Fred Drake [Mon, 14 Aug 2000 02:50:21 +0000 (02:50 +0000)]
In the section on the "Very High Level Layer", address concerns brought up
by Edward K. Ream <edream@users.sourceforge.net> about FILE* values and
incompatible C libraries in dynamically linked extensions.  It is not clear
(to me) how realistic the issue is, but it is better documented than not.

This closes SourceForge bug #111520.

24 years agoRevert this checkin:
Trent Mick [Sun, 13 Aug 2000 22:59:26 +0000 (22:59 +0000)]
Revert this checkin:
http://www.python.org/pipermail/python-checkins/2000-August/007072.html
and make PCbuild/*.dsp PCbuild/*.dsw binary again.

24 years agoCheck for overflow in list object insertion and raise OverflowError.
Trent Mick [Sun, 13 Aug 2000 22:47:45 +0000 (22:47 +0000)]
Check for overflow in list object insertion and raise OverflowError.
see: http://www.python.org/pipermail/python-dev/2000-August/014971.html

24 years agoThe list comp patch checked for the second child node of the 'listmaker'
Thomas Wouters [Sun, 13 Aug 2000 17:05:17 +0000 (17:05 +0000)]
The list comp patch checked for the second child node of the 'listmaker'
node, without checking if the node actually had more than one child. It can
have only one node, though: '[' test ']'. This fixes it.

24 years agoFix a typo in the PyMem_Resize macro, found by Andrew Kuchling
Vladimir Marangozov [Sun, 13 Aug 2000 11:59:08 +0000 (11:59 +0000)]
Fix a typo in the PyMem_Resize macro, found by Andrew Kuchling

24 years agoOverhauld 'check_config_h()': now returns a (status, details) tuple,
Greg Ward [Sun, 13 Aug 2000 01:18:55 +0000 (01:18 +0000)]
Overhauld 'check_config_h()': now returns a (status, details) tuple,
and is much better documented to boot.

24 years agoAdded a whinging comment about the ugliness of constructing the BCPP
Greg Ward [Sun, 13 Aug 2000 00:54:39 +0000 (00:54 +0000)]
Added a whinging comment about the ugliness of constructing the BCPP
argument list.

24 years agoRene Liebscher:
Greg Ward [Sun, 13 Aug 2000 00:43:56 +0000 (00:43 +0000)]
Rene Liebscher:
  * use self.debug_print() for debug messages
  * uses now copy.copy() to copy lists
  * added 'shared_lib_extension=".dll"', ... , this is necessary if you
    want use the compiler class outside of the standard distutils build
    process.
  * changed result type of check_config_h() from int to string

24 years agoRene Liebscher:
Greg Ward [Sun, 13 Aug 2000 00:43:16 +0000 (00:43 +0000)]
Rene Liebscher:
  * changed some list.extend([...]) to list.append(...)
  * added '/g0' to compiler_options, so compiler doesn't
    stop after 100 warnings

24 years agoget_export_symbols() changed, adds now module init function if not given
Greg Ward [Sun, 13 Aug 2000 00:42:35 +0000 (00:42 +0000)]
get_export_symbols() changed, adds now module init function if not given
by the user.

24 years agoRene Liebscher: ext.export_symbols is now always a list (added 'or []').
Greg Ward [Sun, 13 Aug 2000 00:41:40 +0000 (00:41 +0000)]
Rene Liebscher: ext.export_symbols is now always a list (added 'or []').

24 years agoTypo fix in docstring.
Greg Ward [Sun, 13 Aug 2000 00:38:58 +0000 (00:38 +0000)]
Typo fix in docstring.

24 years agoFix references to functions formerly imported from 'util'.
Greg Ward [Sun, 13 Aug 2000 00:36:47 +0000 (00:36 +0000)]
Fix references to functions formerly imported from 'util'.

24 years agoClean up warning from Monterey compiler.
Trent Mick [Sat, 12 Aug 2000 22:14:34 +0000 (22:14 +0000)]
Clean up warning from Monterey compiler.
Properly end a comment block. It was terminated fine later but by a subsequent
block and. It was also in #if 0. This patch is so trivial I can't believe I am
talking about it. :)

24 years agoThe list comprehensions patch partly reversed the removal of UNPACK_LIST,
Thomas Wouters [Sat, 12 Aug 2000 22:03:16 +0000 (22:03 +0000)]
The list comprehensions patch partly reversed the removal of UNPACK_LIST,
re-introducing com_assign_list, now unused. Removed it.

24 years agoClean up a warning on Win64. The downcast of the strlen size_t
Trent Mick [Sat, 12 Aug 2000 21:37:39 +0000 (21:37 +0000)]
Clean up a warning on Win64. The downcast of the strlen size_t
return value to int is safe here because it previously checked that
there will be no overflow.

24 years agoClean up a couple of warnings on Win64. The downcast of the strlen size_t
Trent Mick [Sat, 12 Aug 2000 21:35:36 +0000 (21:35 +0000)]
Clean up a couple of warnings on Win64. The downcast of the strlen size_t
return value to int is safe here because in each case it previouls checked that
there will be no overflow.

24 years agoUse safer comparisons (only matters when sizeof(int) != sizeof(size_t)). fread
Trent Mick [Sat, 12 Aug 2000 20:58:11 +0000 (20:58 +0000)]
Use safer comparisons (only matters when sizeof(int) != sizeof(size_t)). fread
and fwrite return size_t, so it is safer to cast up to the largest type for the
comparison. I believe the cast is required at all to remove compiler warnings.

24 years agoBring Tools/compiler almost up to date. Specifically:
Thomas Wouters [Sat, 12 Aug 2000 20:32:46 +0000 (20:32 +0000)]
Bring Tools/compiler almost up to date. Specifically:

- fix tab space issues (SF patch #101167 by Neil Schemenauer)
- fix co_flags for classes to include CO_NEWLOCALS (SF patch #101145 by Neil)
- fix for merger of UNPACK_LIST and UNPACK_TUPLE into UNPACK_SEQUENCE,
  (SF patch #101168 by, well, Neil :)
- Adjust bytecode MAGIC to current bytecode.

TODO: teach compile.py about list comprehensions.

24 years agoFix some markup errors that prevented formatting, and one that didn't.
Fred Drake [Sat, 12 Aug 2000 20:08:04 +0000 (20:08 +0000)]
Fix some markup errors that prevented formatting, and one that didn't.

24 years agoAdd the current Win64 compiler to the list of those that need the
Trent Mick [Sat, 12 Aug 2000 19:37:27 +0000 (19:37 +0000)]
Add the current Win64 compiler to the list of those that need the
huge switch statement broken up. This will probably not be necessary when
the Win64 compiler matures.

24 years agoUpdated this module after the recent grammar changes
Andrew M. Kuchling [Sat, 12 Aug 2000 19:09:14 +0000 (19:09 +0000)]
Updated this module after the recent grammar changes

24 years agoBack out ESR's erroneous commit of a DB-related change
Andrew M. Kuchling [Sat, 12 Aug 2000 18:43:02 +0000 (18:43 +0000)]
Back out ESR's erroneous commit of a DB-related change

24 years agolist comprehensions. see
Skip Montanaro [Sat, 12 Aug 2000 18:09:51 +0000 (18:09 +0000)]
list comprehensions.  see

    http://sourceforge.net/patch/?func=detailpatch&patch_id=100654&group_id=5470

for details.

24 years agoWhoever added the Makefile rule to auto-build the Grammar didn't have
Guido van Rossum [Sat, 12 Aug 2000 14:45:50 +0000 (14:45 +0000)]
Whoever added the Makefile rule to auto-build the Grammar didn't have
his build directory in a different place than his source directory.  I
do, and it is supposed to be supported.  The naive patch caused an
endless recursion in the Make process.  This should take care of that.

24 years agoAdded information for PyEval_EvalCode().
Fred Drake [Sat, 12 Aug 2000 03:39:47 +0000 (03:39 +0000)]
Added information for PyEval_EvalCode().
Fixed a couple of typos (new references are represented by "+1", not "1").

24 years agoAdded Marc-Andre Lemburg's documentation for string methods, with some
Fred Drake [Sat, 12 Aug 2000 03:36:23 +0000 (03:36 +0000)]
Added Marc-Andre Lemburg's documentation for string methods, with some
massaging for markup consistency.  This closes SourceForge patch #101063.

Added Unicode strings and buffer objects to the list of sequence types.

Small markup nits elsewhere.

24 years agoThese files all used to be tagged as binary in CVS. I recently changed this so
Trent Mick [Fri, 11 Aug 2000 23:20:32 +0000 (23:20 +0000)]
These files all used to be tagged as binary in CVS. I recently changed this so
that these files are treated as normal text files (which they are). However,
the files also had to be changed to be stored in CVS internally with UNIX line
terminators (they had DOS line terminators internally before this commit).

24 years ago'make' in Grammar too, so graminit.h and graminit.c get re-build when
Thomas Wouters [Fri, 11 Aug 2000 22:26:35 +0000 (22:26 +0000)]
'make' in Grammar too, so graminit.h and graminit.c get re-build when
necessary. Do Grammar after Parser because Grammar needs Parser, and not the
other way 'round. This patch doesn't bother with dependencies because it's
tricky to get right (for instance for the modules that want graminit.h,
like cPickle) and other dependencies are broken to begin with.

24 years agoMerge UNPACK_LIST and UNPACK_TUPLE into a single UNPACK_SEQUENCE, since they
Thomas Wouters [Fri, 11 Aug 2000 22:15:52 +0000 (22:15 +0000)]
Merge UNPACK_LIST and UNPACK_TUPLE into a single UNPACK_SEQUENCE, since they
did the same anyway.

I'm not sure what to do with Tools/compiler/compiler/* -- that isn't part of
distutils, is it ? Should it try to be compatible with old bytecode version ?

24 years agoPyRun_InteractiveOne(),
Fred Drake [Fri, 11 Aug 2000 20:39:29 +0000 (20:39 +0000)]
PyRun_InteractiveOne(),
PyRun_InteractiveLoop():  Added descriptions.

PyExc_WindowsError:  Added to list of standard exceptions and added note
                     about the right preprocessor symbol to use to protect
                     code that uses it.

24 years agoSome minor clarifications and added some index entries.
Fred Drake [Fri, 11 Aug 2000 20:34:27 +0000 (20:34 +0000)]
Some minor clarifications and added some index entries.

24 years agoO_BINARY: Documented this constant; omission noted by David Ascher.
Fred Drake [Fri, 11 Aug 2000 20:19:51 +0000 (20:19 +0000)]
O_BINARY:  Documented this constant; omission noted by David Ascher.

access():  Corrected availability statement; error pointed out by
           Tim Peters.

24 years agodo_env_cfuncdesc(): Push as much of the generated HTML into one place
Fred Drake [Fri, 11 Aug 2000 20:04:19 +0000 (20:04 +0000)]
do_env_cfuncdesc():  Push as much of the generated HTML into one place
                     as possible for better readability.  Revise a comment.

24 years agogetopt(): revise description of long_options parameter slightly so it will
Fred Drake [Fri, 11 Aug 2000 19:55:06 +0000 (19:55 +0000)]
getopt(): revise description of long_options parameter slightly so it will
be less confusing; add a paragraph separation so that comments about
the options and long_options parameters don't have references that
are easily misinterpreted.

Adjust the interactive examples to not need the string module.

Add an example showing how the module is commonly used in a script.

24 years agoAdd largefile support for Linux64 and WIn64. Add test_largefile and some minor
Trent Mick [Fri, 11 Aug 2000 19:02:59 +0000 (19:02 +0000)]
Add largefile support for Linux64 and WIn64. Add test_largefile and some minor
change to regrtest.py to allow optional running of test_largefile ('cause it's
slow on Win64).

This closes patches:
http://sourceforge.net/patch/index.php?func=detailpatch&patch_id=100510&group_id=5470
and
http://sourceforge.net/patch/index.php?func=detailpatch&patch_id=100511&group_id=5470

24 years agoAdded material about documenting packages, so that the use of module
Fred Drake [Fri, 11 Aug 2000 17:37:33 +0000 (17:37 +0000)]
Added material about documenting packages, so that the use of module
markup for packages is clear.

24 years agoInclude the document dependencies earlier so that documents are rebuilt
Fred Drake [Fri, 11 Aug 2000 17:36:21 +0000 (17:36 +0000)]
Include the document dependencies earlier so that documents are rebuilt
when they need to be.

24 years agoMarkup errors: \cfuntion -> \cfunction
Fred Drake [Fri, 11 Aug 2000 17:09:23 +0000 (17:09 +0000)]
Markup errors:  \cfuntion -> \cfunction

24 years agoANY becomes void, to reflect the requirement for ANSI C.
Fred Drake [Fri, 11 Aug 2000 17:07:32 +0000 (17:07 +0000)]
ANY becomes void, to reflect the requirement for ANSI C.

24 years agoAdd support for FreeBSD --rpath linker option; this is equivalent to
Fred Drake [Fri, 11 Aug 2000 13:58:37 +0000 (13:58 +0000)]
Add support for FreeBSD --rpath linker option; this is equivalent to
-R on Solaris and -rpath on IRIX.

This closes SourceForge bug #110613 (Jitterbug PR#202), reported by
<aa8vb@yahoo.com>.

24 years ago#include reordering so that extern "C" does not interfere with
Vladimir Marangozov [Fri, 11 Aug 2000 11:48:33 +0000 (11:48 +0000)]
#include reordering so that extern "C" does not interfere with
standard C++ specific includes.

Closes patch 101061.

24 years agoAdded #fndef's to avoid compiler errors.
Marc-André Lemburg [Fri, 11 Aug 2000 11:43:10 +0000 (11:43 +0000)]
Added #fndef's to avoid compiler errors.

24 years agoUse built in function filter instead of doing it laboriously by hand.
Sjoerd Mullender [Fri, 11 Aug 2000 07:48:36 +0000 (07:48 +0000)]
Use built in function filter instead of doing it laboriously by hand.

24 years agoFix missing decrements of the recursive counter in PyObject_Compare().
Vladimir Marangozov [Fri, 11 Aug 2000 00:14:26 +0000 (00:14 +0000)]
Fix missing decrements of the recursive counter in PyObject_Compare().

Closes Patch #101065.

24 years agoClean up compiler warning exposed by GCC's -Wall option: make sure
Fred Drake [Thu, 10 Aug 2000 21:41:08 +0000 (21:41 +0000)]
Clean up compiler warning exposed by GCC's -Wall option: make sure
Python.h is included before standard headers since we set _GNU_SOURCE
there.  This ensures that strdup() is prototyped.

24 years agoadd better algorithm to get fully qualified domain name for localhost
Peter Schneider-Kamp [Thu, 10 Aug 2000 14:02:23 +0000 (14:02 +0000)]
add better algorithm to get fully qualified domain name for localhost
in smtplib.ehlo() and smtplib.helo().

closes patch #101103
closes bug   #110935

24 years agoremove all occurence of math.rint() from the sources
Peter Schneider-Kamp [Thu, 10 Aug 2000 04:23:30 +0000 (04:23 +0000)]
remove all occurence of math.rint() from the sources

(and yes, "Currintly" also counts <0.5 wink>)

24 years agoImprove MHMailbox: messages are now sorted in numerical order.
Guido van Rossum [Thu, 10 Aug 2000 03:05:26 +0000 (03:05 +0000)]
Improve MHMailbox: messages are now sorted in numerical order.
Also don't allow leading zeros in message numbers.

24 years agoMore on noutrefresh.
Eric S. Raymond [Wed, 9 Aug 2000 21:49:31 +0000 (21:49 +0000)]
More on noutrefresh.

24 years agoTweak curses.wrapper so it initializes colors if they are available.
Eric S. Raymond [Wed, 9 Aug 2000 21:11:07 +0000 (21:11 +0000)]
Tweak curses.wrapper so it initializes colors if they are available.

24 years ago-- added a couple of missing Tkinter constants (canvas item styles,
Fredrik Lundh [Wed, 9 Aug 2000 19:37:16 +0000 (19:37 +0000)]
-- added a couple of missing Tkinter constants (canvas item styles,
   place bordermode, etc)

24 years ago-- don't mess up in winfo_visualsavailable if the system only
Fredrik Lundh [Wed, 9 Aug 2000 19:26:47 +0000 (19:26 +0000)]
-- don't mess up in winfo_visualsavailable if the system only
   supports a single visual (closes bug #110603)

24 years ago-- added optional newstate argument to Wm.state. The newstate arg
Fredrik Lundh [Wed, 9 Aug 2000 19:11:59 +0000 (19:11 +0000)]
-- added optional newstate argument to Wm.state.  The newstate arg
   was added in Tk 8.3 (this fixes the first part of Bug #110605)

24 years ago-- use explicit conversion instead of u-string literal in the test
Fredrik Lundh [Wed, 9 Aug 2000 18:51:01 +0000 (18:51 +0000)]
-- use explicit conversion instead of u-string literal in the test
   code, to make the new Tkinter.py run under 1.5.2
-- changed Text.yview argument name (for consistency with xview)

24 years ago-- added xview_moveto, xview_scroll, yview_moveto, yview_scroll
Fredrik Lundh [Wed, 9 Aug 2000 18:29:51 +0000 (18:29 +0000)]
-- added xview_moveto, xview_scroll, yview_moveto, yview_scroll
   to the Text method (closes Bug #110605)

24 years ago-- untabification (use "diff -b" to verify)
Fredrik Lundh [Wed, 9 Aug 2000 18:03:12 +0000 (18:03 +0000)]
-- untabification (use "diff -b" to verify)

24 years agoCorrect markup error.
Fred Drake [Wed, 9 Aug 2000 14:37:05 +0000 (14:37 +0000)]
Correct markup error.

24 years agoCorrect version number at which the curses.ascii module was introduced.
Fred Drake [Wed, 9 Aug 2000 14:36:11 +0000 (14:36 +0000)]
Correct version number at which the curses.ascii module was introduced.

24 years agoFix a few markup errors and lots of small consistency issues.
Fred Drake [Wed, 9 Aug 2000 14:34:48 +0000 (14:34 +0000)]
Fix a few markup errors and lots of small consistency issues.

Add "See also" link to curses.wrapper module from curses module.

24 years agofix_font(): Handle one more case for the magical first column of tables.
Fred Drake [Wed, 9 Aug 2000 13:45:04 +0000 (13:45 +0000)]
fix_font():  Handle one more case for the magical first column of tables.

24 years ago-- changed findall to return empty strings instead of None
Fredrik Lundh [Wed, 9 Aug 2000 09:14:35 +0000 (09:14 +0000)]
-- changed findall to return empty strings instead of None
   for undefined groups

24 years ago-- enabled some temporarily disabled RE tests
Fredrik Lundh [Tue, 8 Aug 2000 17:06:53 +0000 (17:06 +0000)]
-- enabled some temporarily disabled RE tests
-- added basic unicode tests to test_re
-- added test case for Sjoerd's xmllib problem to re_tests

24 years ago-- whitespace cleanup (real changes coming in next checkin)
Fredrik Lundh [Tue, 8 Aug 2000 16:52:51 +0000 (16:52 +0000)]
-- whitespace cleanup (real changes coming in next checkin)

24 years ago-- whitespace cleanup (more tests to be added in the next commit)
Fredrik Lundh [Tue, 8 Aug 2000 16:47:42 +0000 (16:47 +0000)]
-- whitespace cleanup (more tests to be added in the next commit)

24 years agoBarry's patch to document the new setdefault() method. Slightly
Guido van Rossum [Tue, 8 Aug 2000 16:15:49 +0000 (16:15 +0000)]
Barry's patch to document the new setdefault() method.  Slightly
clarified the summary for default() in the table to indicate the side
effect.

24 years agoBarry's patch to test the new setdefault() method.
Guido van Rossum [Tue, 8 Aug 2000 16:13:23 +0000 (16:13 +0000)]
Barry's patch to test the new setdefault() method.