]> granicus.if.org Git - python/log
python
24 years ago- renamed "tolower" hook (it happened to work with
Fredrik Lundh [Thu, 29 Jun 2000 12:48:37 +0000 (12:48 +0000)]
- renamed "tolower" hook (it happened to work with
  my compiler, but not on guido's box...)

24 years agoTypo fix.
Greg Ward [Thu, 29 Jun 2000 12:45:50 +0000 (12:45 +0000)]
Typo fix.

24 years ago- make sure group names are valid identifiers
Fredrik Lundh [Thu, 29 Jun 2000 12:38:45 +0000 (12:38 +0000)]
- make sure group names are valid identifiers
  (closes the "SRE: symbolic reference" bug)

24 years ago- last patch broke parse_template; fixed by changing some
Fredrik Lundh [Thu, 29 Jun 2000 11:34:28 +0000 (11:34 +0000)]
- last patch broke parse_template; fixed by changing some
  tests in sre_patch back to previous version

- fixed return value from findall

- renamed a bunch of functions inside _sre (way too
  many leading underscores...)

</F>

24 years agodemonstration importers
Greg Stein [Thu, 29 Jun 2000 11:05:30 +0000 (11:05 +0000)]
demonstration importers

24 years ago- removed "alpha only" licensing restriction
Fredrik Lundh [Thu, 29 Jun 2000 10:34:56 +0000 (10:34 +0000)]
- removed "alpha only" licensing restriction
- removed some hacks that worked around 1.6 alpha bugs
- removed bogus test code from sre_parse

24 years agotowards 1.6b1
Fredrik Lundh [Thu, 29 Jun 2000 08:58:44 +0000 (08:58 +0000)]
towards 1.6b1

24 years agotowards 1.6b1
Fredrik Lundh [Thu, 29 Jun 2000 08:55:54 +0000 (08:55 +0000)]
towards 1.6b1

24 years agoImprove explanation of how to build the pyexpat module.
Fred Drake [Thu, 29 Jun 2000 05:29:08 +0000 (05:29 +0000)]
Improve explanation of how to build the pyexpat module.

24 years agoConvert to use class-based exceptions.
Fred Drake [Thu, 29 Jun 2000 05:06:02 +0000 (05:06 +0000)]
Convert to use class-based exceptions.
Correct exception information in one docstring.

24 years agoMake it clear that id() can return either a long integer or a plain integer.
Fred Drake [Thu, 29 Jun 2000 03:46:46 +0000 (03:46 +0000)]
Make it clear that id() can return either a long integer or a plain integer.

24 years agoAdd update of httplib docs to reflect Greg Stein's recent updates.
Fred Drake [Thu, 29 Jun 2000 03:33:28 +0000 (03:33 +0000)]
Add update of httplib docs to reflect Greg Stein's recent updates.
Greg, this is yours!

24 years agoFixed so 'get_source_files()' calls 'check_extension_list()' -- that way,
Greg Ward [Thu, 29 Jun 2000 02:16:24 +0000 (02:16 +0000)]
Fixed so 'get_source_files()' calls 'check_extension_list()' -- that way,
we can run "sdist" on a distribution with old-style extension structures
even if we haven't built it yet.  Bug spotted by Harry Gebel.

24 years agoFixed 'findall()' so it only returns regular files -- no directories.
Greg Ward [Thu, 29 Jun 2000 02:06:29 +0000 (02:06 +0000)]
Fixed 'findall()' so it only returns regular files -- no directories.
Changed 'prune_file_list()' so it also prunes out RCS and CVS directories.
Added 'is_regex' parameter to 'select_pattern()', 'exclude_pattern()',
  and 'translate_pattern()', so that you don't have to be constrained
  by the simple shell-glob-like pattern language, and can escape into
  full-blown regexes when needed.  Currently this is only available
  in code -- it's not exposed in the manifest template mini-language.
Added 'prune' option (controlled by --prune and --no-prune) to determine
  whether we call 'prune_file_list()' or not -- it's true by default.
Fixed 'negative_opt' -- it was misnamed and not being seen by dist.py.
Added --no-defaults to the option table, so it's seen by FancyGetopt.

24 years agoJack Jansen: Use include "" instead of <>; and staticforward declarations
Guido van Rossum [Thu, 29 Jun 2000 00:06:39 +0000 (00:06 +0000)]
Jack Jansen: Use include "" instead of <>; and staticforward declarations

24 years agoSome new names (some contributors of patches that haven't even been
Guido van Rossum [Thu, 29 Jun 2000 00:04:51 +0000 (00:04 +0000)]
Some new names (some contributors of patches that haven't even been
accepted yet!)

24 years agoVladimir Marangozov:
Guido van Rossum [Wed, 28 Jun 2000 23:53:56 +0000 (23:53 +0000)]
Vladimir Marangozov:

This patch fixes a problem on AIX with the signed int case code in
getargs.c, after Trent Mick's intervention about MIN/MAX overflow
checks. The AIX compiler/optimizer generates bogus code with the
default flags "-g -O" causing test_builtin to fail: int("10", 16) <>
16L. Swapping the two checks in the signed int code makes the problem
go away.

Also, make the error messages fit in 80 char lines in the
source.

24 years agoVladimir Marangozov:
Guido van Rossum [Wed, 28 Jun 2000 23:46:07 +0000 (23:46 +0000)]
Vladimir Marangozov:

Avoid calling the dealloc function, previously triggered with
DECREF(inst).  This caused a segfault in PyDict_GetItem, called with a
NULL dict, whenever inst->in_dict fails under low-memory conditions.

24 years agoUrmpf. Quality control on this patch lapsed a bit. :-(
Guido van Rossum [Wed, 28 Jun 2000 23:24:19 +0000 (23:24 +0000)]
Urmpf.  Quality control on this patch lapsed a bit. :-(

The depth field was never decremented inside w_object(), and it was
never initialized in PyMarshal_WriteObjectToFile().

This caused imports from .pyc files to fil mysteriously when the .pyc
file was written by the broken code -- w_object() would bail out
early, but PyMarshal_WriteObjectToFile() doesn't check the error or
return an error code, and apparently the marshalling code doesn't call
PyErr_Check() either.  (That's a separate patch if I feel like it.)

24 years agoRunning the program through itself reveals that one end tag was
Guido van Rossum [Wed, 28 Jun 2000 22:55:20 +0000 (22:55 +0000)]
Running the program through itself reveals that one end tag was
mislabeled.

(Using -c and then -e rearranges some comments, so I won't check that
in -- but it's a good test anyway.

Note that pindent is not perfect -- e.g. it doesn't know about
triple-quoted strings!)

24 years agoPeter Schneider-Kamp:
Guido van Rossum [Wed, 28 Jun 2000 22:47:22 +0000 (22:47 +0000)]
Peter Schneider-Kamp:

Problem:
A Python program can be completed and reformatted using
Tools/scripts/pindent.py. Unfortunately there is no option for removal
of the generated "# end"-tags.  Although a few Python commands or a
"grep -v '# end '" can do wonders here, there are two drawbacks:
- not everyone has grep/time to write a Python script
- it is not checked whether the "# end"-tags were used validly

Solution:
add extra option "-e" (eliminate) to pindent.py

24 years agoTrent Mick:
Guido van Rossum [Wed, 28 Jun 2000 22:26:21 +0000 (22:26 +0000)]
Trent Mick:

Fix warnings on 64-bit build build of signalmodule.c

- Though I know that SIG_DFL and SIG_IGN are just small constants,
there are cast to function pointers so the appropriate Python call is
PyLong_FromVoidPtr so that the pointer value cannot overflow on Win64
where sizeof(long) < sizeof(void*).

24 years agoTrent Mick:
Guido van Rossum [Wed, 28 Jun 2000 22:23:56 +0000 (22:23 +0000)]
Trent Mick:

This patch fixes cPickle.c for 64-bit platforms.

- The false assumption sizeof(long) == size(void*) exists where
PyInt_FromLong is used to represent a pointer. The safe Python call
for this is PyLong_FromVoidPtr. (On platforms where the above
assumption *is* true a PyInt is returned as before so there is no
effective change.)

- use size_t instead of int for some variables

24 years agoTrent Mick: familiar simple Win64 patches
Guido van Rossum [Wed, 28 Jun 2000 22:20:06 +0000 (22:20 +0000)]
Trent Mick: familiar simple Win64 patches

24 years agoGive Moshe some work to do.
Fred Drake [Wed, 28 Jun 2000 22:13:06 +0000 (22:13 +0000)]
Give Moshe some work to do.

24 years agoAdd a "See also:" link to the curses.ascii module.
Fred Drake [Wed, 28 Jun 2000 22:11:40 +0000 (22:11 +0000)]
Add a "See also:" link to the curses.ascii module.

24 years agoMade the title of the Examples subsection plural!
Fred Drake [Wed, 28 Jun 2000 22:09:20 +0000 (22:09 +0000)]
Made the title of the Examples subsection plural!

24 years agoAdded note that the atexit module was added for Python 1.6.
Fred Drake [Wed, 28 Jun 2000 22:07:55 +0000 (22:07 +0000)]
Added note that the atexit module was added for Python 1.6.

24 years agoTrent Mick's Win64 changes: size_t vs. int or long; also some overflow
Guido van Rossum [Wed, 28 Jun 2000 22:07:35 +0000 (22:07 +0000)]
Trent Mick's Win64 changes: size_t vs. int or long; also some overflow
tests.

24 years agoAdded entry for the curses.ascii module.
Fred Drake [Wed, 28 Jun 2000 22:05:44 +0000 (22:05 +0000)]
Added entry for the curses.ascii module.

24 years agoAdded entries for the curses.ascii module.
Fred Drake [Wed, 28 Jun 2000 22:03:29 +0000 (22:03 +0000)]
Added entries for the curses.ascii module.

24 years agoTrent Mick: familiar simple Win64 patches
Guido van Rossum [Wed, 28 Jun 2000 22:00:02 +0000 (22:00 +0000)]
Trent Mick: familiar simple Win64 patches

24 years agoadded ucnhash (optional on USE_UCNHASH) and the mysteriously disappeared math.
Jack Jansen [Wed, 28 Jun 2000 21:59:35 +0000 (21:59 +0000)]
added ucnhash (optional on USE_UCNHASH) and the mysteriously disappeared math.

24 years agoucnhash and various other modules added.
Jack Jansen [Wed, 28 Jun 2000 21:58:03 +0000 (21:58 +0000)]
ucnhash and various other modules added.

24 years agoAdded USE_UCNHASH (experimental, I hope it can go), USE_TOOLBOX and USE_QT.
Jack Jansen [Wed, 28 Jun 2000 21:57:24 +0000 (21:57 +0000)]
Added USE_UCNHASH (experimental, I hope it can go), USE_TOOLBOX and USE_QT.

24 years agoTrent Mick: change a few casts for Win64 compatibility.
Guido van Rossum [Wed, 28 Jun 2000 21:57:18 +0000 (21:57 +0000)]
Trent Mick: change a few casts for Win64 compatibility.

24 years agoAdded USE_UCNHASH (experimental, I hope it can go)
Jack Jansen [Wed, 28 Jun 2000 21:57:05 +0000 (21:57 +0000)]
Added USE_UCNHASH (experimental, I hope it can go)

24 years agoSkip Montanaro <skip@mojam.com>:
Fred Drake [Wed, 28 Jun 2000 21:51:43 +0000 (21:51 +0000)]
Skip Montanaro <skip@mojam.com>:
Added an example of using an HTTP POST request.

24 years agoTrent Mick: use size_t instead of int where appropriate (time_strftime()).
Guido van Rossum [Wed, 28 Jun 2000 21:33:59 +0000 (21:33 +0000)]
Trent Mick: use size_t instead of int where appropriate (time_strftime()).

24 years agoTrent Mick: use size_t instead of int where appropriate (set_key()).
Guido van Rossum [Wed, 28 Jun 2000 21:31:10 +0000 (21:31 +0000)]
Trent Mick: use size_t instead of int where appropriate (set_key()).

24 years agoTrent Mick: use size_t instead of int where appropriate (call_readline()).
Guido van Rossum [Wed, 28 Jun 2000 21:30:31 +0000 (21:30 +0000)]
Trent Mick: use size_t instead of int where appropriate (call_readline()).

24 years agoTrent Mick: use size_t instead of int where appropriate (mpz_format()).
Guido van Rossum [Wed, 28 Jun 2000 21:29:47 +0000 (21:29 +0000)]
Trent Mick: use size_t instead of int where appropriate (mpz_format()).

24 years agoTrent Mick: use size_t instead of int where appropriate (various spots).
Guido van Rossum [Wed, 28 Jun 2000 21:29:03 +0000 (21:29 +0000)]
Trent Mick: use size_t instead of int where appropriate (various spots).

24 years agoTrent Mick: use size_t instead of int where appropriate (in
Guido van Rossum [Wed, 28 Jun 2000 21:27:21 +0000 (21:27 +0000)]
Trent Mick: use size_t instead of int where appropriate (in
fromfile(), to hold fread() result.)

24 years agoTrent Mick: use size_t instead of int where appropriate (in strxfrm(),
Guido van Rossum [Wed, 28 Jun 2000 21:23:33 +0000 (21:23 +0000)]
Trent Mick: use size_t instead of int where appropriate (in strxfrm(),
to hold strlen() outcome).

24 years agoTrent Mick:
Guido van Rossum [Wed, 28 Jun 2000 21:18:13 +0000 (21:18 +0000)]
Trent Mick:

This patches fixes a possible overflow of the optional timeout
parameter for the select() function (selectmodule.c). This timeout is
passed in as a double and then truncated to an int. If the double is
sufficiently large you can get unexpected results as it
overflows. This patch raises an overflow if the given select timeout
overflows.

[GvR: To my embarrassment, the original code was assuming an int could
always hold a million.  Note that the overflow check doesn't test for
a very large *negative* timeout passed in -- but who in the world
would do such a thing?]

24 years agoTrent Mick:
Guido van Rossum [Wed, 28 Jun 2000 21:12:25 +0000 (21:12 +0000)]
Trent Mick:

Various small fixes to the builtin module to ensure no buffer
overflows.

- chunk #1:
Proper casting to ensure no truncation, and hence no surprises, in the
comparison.

- chunk #2:
The id() function guarantees a unique return value for different
objects.  It does this by returning the pointer to the object. By
returning a PyInt, on Win64 (sizeof(long) < sizeof(void*)) the pointer
is truncated and the guarantee may be proven false. The appropriate
return function is PyLong_FromVoidPtr, this returns a PyLong if that
is necessary to return the pointer without truncation.

[GvR: note that this means that id() can now return a long on Win32
platforms.  This *might* break some code...]

- chunk #3:
Ensure no overflow in raw_input(). Granted the user would have to pass
in >2GB of data but it *is* a possible buffer overflow condition.

24 years agoSupport constant as a font name for the first column of a table using the
Fred Drake [Wed, 28 Jun 2000 21:06:08 +0000 (21:06 +0000)]
Support constant as a font name for the first column of a table using the
tableii & friends markup family.

24 years agoJack Jansen: Moved includes to the top, removed think C support
Guido van Rossum [Wed, 28 Jun 2000 20:57:07 +0000 (20:57 +0000)]
Jack Jansen: Moved includes to the top, removed think C support

24 years agoJack Jansen: Mac Carbon: don't include sys/types if we don't have it
Guido van Rossum [Wed, 28 Jun 2000 20:56:30 +0000 (20:56 +0000)]
Jack Jansen: Mac Carbon: don't include sys/types if we don't have it

24 years agoJack Jansen: Removed support for long-dead Think C compiler
Guido van Rossum [Wed, 28 Jun 2000 20:55:34 +0000 (20:55 +0000)]
Jack Jansen: Removed support for long-dead Think C compiler

24 years agoJack Jansen: Removed Macintosh tab-guessing code
Guido van Rossum [Wed, 28 Jun 2000 20:54:53 +0000 (20:54 +0000)]
Jack Jansen: Removed Macintosh tab-guessing code

24 years agoJack Jansen: Support for conditional inclusion of methods and functions
Guido van Rossum [Wed, 28 Jun 2000 20:53:33 +0000 (20:53 +0000)]
Jack Jansen: Support for conditional inclusion of methods and functions

24 years agoRevise the description of when functions retrieved from class instances
Fred Drake [Wed, 28 Jun 2000 20:15:47 +0000 (20:15 +0000)]
Revise the description of when functions retrieved from class instances
are and are not turned into bound methods; some confusion was noted by
Andrew Dalke.

In particular, it has to be noted that functions located on the class
instance are not turned into any sort of method, only those which are
found via the underlying class.

24 years agoMichael Hudson <mwh21@cam.ac.uk>:
Fred Drake [Wed, 28 Jun 2000 18:47:56 +0000 (18:47 +0000)]
Michael Hudson <mwh21@cam.ac.uk>:
As I really do not have anything better to do at the moment, I have written
a patch to Python/marshal.c that prevents Python dumping core when trying
to marshal stack bustingly deep (or recursive) data structure.

It just throws an exception; even slightly clever handling of recursive
data is what pickle is for...

[Fred Drake:]  Moved magic constant 5000 to a #define.

This closes SourceForge patch #100645.

24 years agoTrent Mick <trentm@activestate.com>:
Fred Drake [Wed, 28 Jun 2000 17:50:51 +0000 (17:50 +0000)]
Trent Mick <trentm@activestate.com>:
Testing: test_array.py was also extended to check that one can set the
full range of values for each of the integral signed and unsigned
array types.

This closes SourceForge patch #100506.

24 years agoTrent Mick <trentm@activestate.com>:
Fred Drake [Wed, 28 Jun 2000 17:49:30 +0000 (17:49 +0000)]
Trent Mick <trentm@activestate.com>:

The cause: Relatively recent (last month) patches to getargs.c added
overflow checking to the PyArg_Parse*() integral formatters thereby
restricting 'b' to unsigned char value and 'h','i', and 'l' to signed
integral values (i.e. if the incoming value is outside of the
specified bounds you get an OverflowError, previous it silently
overflowed).

The problem: This broke the array module (as Fredrik pointed out)
because *its* formatters relied on the loose allowance of signed and
unsigned ranges being able to pass through PyArg_Parse*()'s
formatters.

The fix: This patch fixes the array module to work with the more
strict bounds checking now in PyArg_Parse*().

How: If the type signature of a formatter in the arraymodule exactly
matches one in PyArg_Parse*(), then use that directly. If there is no
equivalent type signature in PyArg_Parse*() (e.g. there is no unsigned
int formatter in PyArg_Parse*()), then use the next one up and do some
extra bounds checking in the array module.

This partially closes SourceForge patch #100506.

24 years agoThomas Wouters <thomas@xs4all.net>:
Fred Drake [Wed, 28 Jun 2000 17:27:48 +0000 (17:27 +0000)]
Thomas Wouters <thomas@xs4all.net>:
Documentation updates related to the addition of openpty() and forkpty().

24 years agoMarc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg [Wed, 28 Jun 2000 16:53:16 +0000 (16:53 +0000)]
Marc-Andre Lemburg <mal@lemburg.com>:
Perfect hash table generator. Outputs a Python extension module
which provides access to the hash table (which is stored in static
C data) using custom code.

This module can currently only generates code for the ucnhash
module, but can easily be adapted to produce perfect hash tables
for other tasks where fast lookup in large tables is needed.

By Bill Tutt.

24 years agoMarc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg [Wed, 28 Jun 2000 16:49:29 +0000 (16:49 +0000)]
Marc-Andre Lemburg <mal@lemburg.com>:
Generator for the new ucnhash module (ucnhash.h|c). Uses perfect_hash.py
to create the ucnhash module.

24 years agoMarc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg [Wed, 28 Jun 2000 16:48:05 +0000 (16:48 +0000)]
Marc-Andre Lemburg <mal@lemburg.com>:
Utility extension module needed by perfect_hash.py

By Bill Tutt.

24 years agoMarc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg [Wed, 28 Jun 2000 16:43:35 +0000 (16:43 +0000)]
Marc-Andre Lemburg <mal@lemburg.com>:
Patch to the standard unicode-escape codec which dynamically
loads the Unicode name to ordinal mapping from the module
ucnhash.

By Bill Tutt.

24 years agoMarc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg [Wed, 28 Jun 2000 16:42:39 +0000 (16:42 +0000)]
Marc-Andre Lemburg <mal@lemburg.com>:
Added new ucnhash module by Bill Tutt.

24 years agoMarc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg [Wed, 28 Jun 2000 16:42:14 +0000 (16:42 +0000)]
Marc-Andre Lemburg <mal@lemburg.com>:
Added new ucnhash module.

24 years agoMarc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg [Wed, 28 Jun 2000 16:41:46 +0000 (16:41 +0000)]
Marc-Andre Lemburg <mal@lemburg.com>:
Updated test output.

24 years agoMarc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg [Wed, 28 Jun 2000 16:41:23 +0000 (16:41 +0000)]
Marc-Andre Lemburg <mal@lemburg.com>:
Added tests for the new Unicode character name support in the
standard unicode-escape codec.

24 years agoThomas Wouters <thomas@xs4all.net>:
Fred Drake [Wed, 28 Jun 2000 16:40:38 +0000 (16:40 +0000)]
Thomas Wouters <thomas@xs4all.net>:

This patch adds the openpty() and forkpty() library calls to posixmodule.c,
when they are available on the target
system. (glibc-2.1-based Linux systems, FreeBSD and BSDI at least, probably
the other BSD-based systems as well.)

Lib/pty.py is also rewritten to use openpty when available, but falls
back to the old SGI method or the "manual" BSD open-a-pty
code. Openpty() is necessary to use the Unix98 ptys under Linux 2.2,
or when using non-standard tty names under (at least) BSDI, which is
why I needed it, myself ;-) forkpty() is included for symmetry.

24 years agoMarc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg [Wed, 28 Jun 2000 16:40:10 +0000 (16:40 +0000)]
Marc-Andre Lemburg <mal@lemburg.com>:
MSVC project file for the new module ucnhash. This may have to
be added to pcbuild.dsw with an dependancy on python16.

By Bill Tutt.

24 years agoMarc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg [Wed, 28 Jun 2000 16:38:56 +0000 (16:38 +0000)]
Marc-Andre Lemburg <mal@lemburg.com>:
New ucnhash module by Bill Tutt. This module contains the hash
table needed to map Unicode character names to Unicode ordinals
and is loaded on-the-fly by the standard unicode-escape codec.

24 years agoMarc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg [Wed, 28 Jun 2000 16:37:24 +0000 (16:37 +0000)]
Marc-Andre Lemburg <mal@lemburg.com>:
Exports the C API of the new ucnhash module.

By Bill Tutt.

24 years agoEnhanced memory-reference information in the description of Py_BuildValue(),
Fred Drake [Wed, 28 Jun 2000 16:15:08 +0000 (16:15 +0000)]
Enhanced memory-reference information in the description of Py_BuildValue(),
based on response from Frank Stajano <fstajano@uk.research.att.com>.

24 years agoAdded documentation for PyOS_AfterFork().
Fred Drake [Wed, 28 Jun 2000 15:53:13 +0000 (15:53 +0000)]
Added documentation for PyOS_AfterFork().

24 years agoAdded memory-reference information to the description of Py_BuildValue(),
Fred Drake [Wed, 28 Jun 2000 15:32:29 +0000 (15:32 +0000)]
Added memory-reference information to the description of Py_BuildValue(),
based on comments from Frank Stajano <fstajano@uk.research.att.com>.

24 years agoAdded the atexit module and documentation from Skip Montanaro
Fred Drake [Wed, 28 Jun 2000 15:07:31 +0000 (15:07 +0000)]
Added the atexit module and documentation from Skip Montanaro
<skip@mojam.com>.  Revisions to the markup to make it pass LaTeX, added
an index entry and a reference from the sys.exitfunc documentation.

This closes SourceForge patch #100620.

24 years agotypos fixed by Rob Hooft
Jeremy Hylton [Wed, 28 Jun 2000 14:48:01 +0000 (14:48 +0000)]
typos fixed by Rob Hooft

24 years agoMarc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg [Wed, 28 Jun 2000 08:11:47 +0000 (08:11 +0000)]
Marc-Andre Lemburg <mal@lemburg.com>:
Better error message for "1 in unicodestring". Submitted
by Andrew Kuchling.

24 years agoChanged the #error to a #warning when checking gcc versions, and
Fred Drake [Wed, 28 Jun 2000 03:54:48 +0000 (03:54 +0000)]
Changed the #error to a #warning when checking gcc versions, and
noted the minimum recommended version in the message.

24 years agoAdded section on cycle GC
Andrew M. Kuchling [Wed, 28 Jun 2000 02:16:00 +0000 (02:16 +0000)]
Added section on cycle GC
Various minor fixes

24 years agoLyle Johnson: pass in temp directory as 'build_temp' argument when calling
Greg Ward [Wed, 28 Jun 2000 01:29:37 +0000 (01:29 +0000)]
Lyle Johnson: pass in temp directory as 'build_temp' argument when calling
'link_shared_object()'.

24 years agoLyle Johnson: added 'build_temp' parameter to 'link_shared_{lib,object}()'
Greg Ward [Wed, 28 Jun 2000 01:29:09 +0000 (01:29 +0000)]
Lyle Johnson: added 'build_temp' parameter to 'link_shared_{lib,object}()'
methods (but not 'link_executable()', hmmm).  Currently only used by
BCPPCompiler; it's a dummy parameter for UnixCCompiler and MSVCCompiler.

Also added 'bcpp' to compiler table used by 'new_compiler()'.

24 years agoTypo fix.
Greg Ward [Wed, 28 Jun 2000 01:25:27 +0000 (01:25 +0000)]
Typo fix.

24 years agoLyle Johnson's interface to Borland C++, with a few editorial comments by me.
Greg Ward [Wed, 28 Jun 2000 01:20:35 +0000 (01:20 +0000)]
Lyle Johnson's interface to Borland C++, with a few editorial comments by me.
Two major points:
  * lots of overlap with MSVCCompiler; the common code really should be
    factored out into a base class, say WindowsCCompiler
  * it doesn't work: weird problem spawning the linker (see comment for
    details)

24 years agoFixed to use 'reinitialize_command()' to fetch "install" and "install_lib"
Greg Ward [Wed, 28 Jun 2000 00:56:20 +0000 (00:56 +0000)]
Fixed to use 'reinitialize_command()' to fetch "install" and "install_lib"
  command objects.
Various formatting tweaks, typo fixes in comments.

24 years agoFixed to use 'reinitialize_command()' to fetch the "install" command object.
Greg Ward [Wed, 28 Jun 2000 00:36:40 +0000 (00:36 +0000)]
Fixed to use 'reinitialize_command()' to fetch the "install" command object.

24 years agoFixes for compiling on Tru64.
Andrew M. Kuchling [Tue, 27 Jun 2000 21:49:47 +0000 (21:49 +0000)]
Fixes for compiling on Tru64.
Define a STRICT_SYSV_CURSES macro on SGI, Sun, and Tru64, to mark systems
that don't support some features.

24 years agoFix two typos (, instead of ;)
Andrew M. Kuchling [Tue, 27 Jun 2000 15:01:10 +0000 (15:01 +0000)]
Fix two typos (, instead of ;)

24 years agoFix comment typo noticed by Rob Hooft
Andrew M. Kuchling [Tue, 27 Jun 2000 14:15:29 +0000 (14:15 +0000)]
Fix comment typo noticed by Rob Hooft

24 years agoChanged obsolete e-mail alias
Andrew M. Kuchling [Tue, 27 Jun 2000 03:16:04 +0000 (03:16 +0000)]
Changed obsolete e-mail alias

24 years agoAdded support for mouse functions: mousemask(), mouseinterval(),
Andrew M. Kuchling [Tue, 27 Jun 2000 03:10:38 +0000 (03:10 +0000)]
Added support for mouse functions: mousemask(), mouseinterval(),
getmouse(), ungetmouse(), and window.enclose().  wmouse_trafo() seems
of marginal importance at the moment.

24 years agoOops, only do that AIX hack on AIX.
Greg Ward [Tue, 27 Jun 2000 01:59:43 +0000 (01:59 +0000)]
Oops, only do that AIX hack on AIX.

24 years agoFixed LDSHARED for AIX, based on a patch by Rene Liebscher.
Greg Ward [Tue, 27 Jun 2000 01:59:06 +0000 (01:59 +0000)]
Fixed LDSHARED for AIX, based on a patch by Rene Liebscher.
Ditched my old code that fixed relative paths in the Makefile -- didn't work,
  doomed to failure, etc.

24 years agoA-ha! Read Thomas' patch a little more carefully and figured it out:
Greg Ward [Tue, 27 Jun 2000 01:43:24 +0000 (01:43 +0000)]
A-ha!  Read Thomas' patch a little more carefully and figured it out:
the 'implib_dir' attribute is back (only on NT, of course).

24 years agoThomas Heller: added --swig-cpp option and fixed silly typos in SWIG support.
Greg Ward [Tue, 27 Jun 2000 01:37:10 +0000 (01:37 +0000)]
Thomas Heller: added --swig-cpp option and fixed silly typos in SWIG support.
Also supposedly made some change to where .lib files wind up under MSVC++,
  but I don't understand how to code is doing what Thomas says it's
  doing.

24 years agoThomas Heller's "bdist_wininst" command (unreviewed, untested).
Greg Ward [Tue, 27 Jun 2000 01:24:38 +0000 (01:24 +0000)]
Thomas Heller's "bdist_wininst" command (unreviewed, untested).

24 years agoInfrastructure support for the "bdist_wininst" command.
Greg Ward [Tue, 27 Jun 2000 01:24:07 +0000 (01:24 +0000)]
Infrastructure support for the "bdist_wininst" command.

24 years agoAdded 'include_dirs' parameters all over the place.
Greg Ward [Tue, 27 Jun 2000 01:21:22 +0000 (01:21 +0000)]
Added 'include_dirs' parameters all over the place.
Added 'check_lib()', which provides a subset of the functionality of
  'check_func()' with a simpler interface and implementation.

24 years agoSync to ESR's current version
Andrew M. Kuchling [Tue, 27 Jun 2000 00:53:12 +0000 (00:53 +0000)]
Sync to ESR's current version

24 years agoDrop back to old version of wrapper(); ESR reports that it broke things,
Andrew M. Kuchling [Tue, 27 Jun 2000 00:50:40 +0000 (00:50 +0000)]
Drop back to old version of wrapper(); ESR reports that it broke things,
and I lack the time to track down the cause.

24 years agoChange pyexpat test suite to exercise the .returns_unicode attribute,
Andrew M. Kuchling [Tue, 27 Jun 2000 00:37:25 +0000 (00:37 +0000)]
Change pyexpat test suite to exercise the .returns_unicode attribute,
parsing the sample data once with 8-bit strings and once with Unicode.

24 years agoAdded support for passing Unicode strings to Expat handlers by default.
Andrew M. Kuchling [Tue, 27 Jun 2000 00:33:30 +0000 (00:33 +0000)]
Added support for passing Unicode strings to Expat handlers by default.
This version still includes #ifdef hackery to compile with 1.5.2.