]> granicus.if.org Git - python/log
python
24 years agoreplaced <some suitable mail address> with something slightly
Fredrik Lundh [Fri, 30 Jun 2000 22:01:36 +0000 (22:01 +0000)]
replaced <some suitable mail address> with something slightly
more suitable.

24 years ago-- changed $ to match before a trailing newline, even
Fredrik Lundh [Fri, 30 Jun 2000 21:40:20 +0000 (21:40 +0000)]
-- changed $ to match before a trailing newline, even
   if the multiline flag isn't given.

24 years agoAs Neil Schemenauer points out, WITH_CYCLE_GC should be uncommented if
Guido van Rossum [Fri, 30 Jun 2000 20:31:50 +0000 (20:31 +0000)]
As Neil Schemenauer points out, WITH_CYCLE_GC should be uncommented if
we want to have GC enabled in the beta.

24 years agoOoops! I didn't finish all the renaming needed here, so this was
Fred Drake [Fri, 30 Jun 2000 20:31:39 +0000 (20:31 +0000)]
Ooops!  I didn't finish all the renaming needed here, so this was
attempting a recursive import and causing a fatal error.

24 years agoAdd back a missing CRLF line ending.
Guido van Rossum [Fri, 30 Jun 2000 20:30:03 +0000 (20:30 +0000)]
Add back a missing CRLF line ending.

24 years agos/REGENTS/COPYRIGHT HOLDERS/ followed by paragraph reflow.
Guido van Rossum [Fri, 30 Jun 2000 20:22:36 +0000 (20:22 +0000)]
s/REGENTS/COPYRIGHT HOLDERS/ followed by paragraph reflow.

24 years agoOutput for test_winreg2.
Fred Drake [Fri, 30 Jun 2000 19:38:16 +0000 (19:38 +0000)]
Output for test_winreg2.

Someone who knows what they are doing needs to replace this with something
that makes sense -- I'm not running Windows right now.

24 years agoSimplify the registry-module-finding code: _winreg or win32api/win32con.
Greg Ward [Fri, 30 Jun 2000 19:37:59 +0000 (19:37 +0000)]
Simplify the registry-module-finding code: _winreg or win32api/win32con.
This'll work fine with 2.0 or 1.5.2, but is less than ideal for
1.6a1/a2.  But the code to accomodate 1.6a1/a2 was released with
Distutils 0.9, so it can go away now.

24 years agoPaul Prescod <paul@prescod.net>:
Fred Drake [Fri, 30 Jun 2000 19:36:23 +0000 (19:36 +0000)]
Paul Prescod <paul@prescod.net>:
Regression test for the new winreg.py module.

[Could a Windows person someone please review this?]

24 years agoLine-wrap and properly indent a couple of docstrings.
Fred Drake [Fri, 30 Jun 2000 19:33:35 +0000 (19:33 +0000)]
Line-wrap and properly indent a couple of docstrings.

24 years agoIgnore the generated api.tex.
Fred Drake [Fri, 30 Jun 2000 19:25:41 +0000 (19:25 +0000)]
Ignore the generated api.tex.

24 years agoThe new copyright / license.
Fred Drake [Fri, 30 Jun 2000 18:41:01 +0000 (18:41 +0000)]
The new copyright / license.

24 years ago- reverted to "\x is binary byte"
Fredrik Lundh [Fri, 30 Jun 2000 18:39:20 +0000 (18:39 +0000)]
- reverted to "\x is binary byte"

- removed evil tabs from sre_parse and sre_compile

24 years agoSmall grammatical correction from Frank Stajano. Added comment with
Fred Drake [Fri, 30 Jun 2000 17:58:34 +0000 (17:58 +0000)]
Small grammatical correction from Frank Stajano.  Added comment with
suggestion from Frank for an example and further explanation.

24 years agoTry to make sure \code always uses roman (non-italic) text.
Fred Drake [Fri, 30 Jun 2000 17:57:05 +0000 (17:57 +0000)]
Try to make sure \code always uses roman (non-italic) text.
Change a 1.6 version number used in a an example in a comment to 2.0.

24 years ago[*** Not tested as I don't have Windows running right now! ***]
Fred Drake [Fri, 30 Jun 2000 17:48:51 +0000 (17:48 +0000)]
[*** Not tested as I don't have Windows running right now! ***]

Trent Mick <trentm@activestate.com>:

Fix PC/msvcrtmodule.c and PC/winreg.c for Win64. Basically:

- sizeof(HKEY) > sizeof(long) on Win64, so use PyLong_FromVoidPtr()
instead of PyInt_FromLong() to return HKEY values on Win64

- Check for string overflow of an arbitrary registry value (I know
that ensuring that a registry value does not overflow 2**31 characters
seems ridiculous but it is *possible*).

Closes SourceForge patch #100517.

24 years agoadd note about what happened to Python 1.6
Jeremy Hylton [Fri, 30 Jun 2000 17:30:18 +0000 (17:30 +0000)]
add note about what happened to Python 1.6
also, fix type (not caught by Rob Hooft, but could have been :-)

24 years agoDocument --with-thread as deprecated. This gets rid of the annoying
Barry Warsaw [Fri, 30 Jun 2000 16:39:35 +0000 (16:39 +0000)]
Document --with-thread as deprecated.  This gets rid of the annoying
newline in configure --help.

24 years ago* added a randomize flag and corresponding -r command line argument that
Skip Montanaro [Fri, 30 Jun 2000 16:39:27 +0000 (16:39 +0000)]
* added a randomize flag and corresponding -r command line argument that
  allows the caller to execute the various tests in pseudo-random order -
  default is still to execute tests in the order returned by findtests().

* moved initialization of the various flag variables to the main() function
  definition, making it possible to execute regrtest.main() interactively
  and still override default behavior.

24 years agoSwitch to sre for regular expression matching (the new mini-re module
Guido van Rossum [Fri, 30 Jun 2000 16:25:20 +0000 (16:25 +0000)]
Switch to sre for regular expression matching (the new mini-re module
is actually by Fredrik Lundh).  This will break the re tests --
Fredrik will fix this before the final release.

24 years agoEnable the garbage collection module by default. --without-cycle-gc
Barry Warsaw [Fri, 30 Jun 2000 16:21:01 +0000 (16:21 +0000)]
Enable the garbage collection module by default.  --without-cycle-gc
disables it.  The gc test is moved to just after the thread test, as
is the wctype-functions test.

Modules/Setup.config is generated instead of Modules/Setup.thread.

Applied SF patch #100684 (loewis) to fix help alignment bug.

24 years agoTrent Mick <trentm@activestate.com>:
Fred Drake [Fri, 30 Jun 2000 16:20:13 +0000 (16:20 +0000)]
Trent Mick <trentm@activestate.com>:

The common technique for printing out a pointer has been to cast to a long
and use the "%lx" printf modifier. This is incorrect on Win64 where casting
to a long truncates the pointer. The "%p" formatter should be used instead.

The problem as stated by Tim:
> Unfortunately, the C committee refused to define what %p conversion "looks
> like" -- they explicitly allowed it to be implementation-defined. Older
> versions of Microsoft C even stuck a colon in the middle of the address (in
> the days of segment+offset addressing)!

The result is that the hex value of a pointer will maybe/maybe not have a 0x
prepended to it.

Notes on the patch:

There are two main classes of changes:
- in the various repr() functions that print out pointers
- debugging printf's in the various thread_*.h files (these are why the
patch is large)

Closes SourceForge patch #100505.

24 years agoTrent Mick <trentm@activestate.com>:
Fred Drake [Fri, 30 Jun 2000 16:18:57 +0000 (16:18 +0000)]
Trent Mick <trentm@activestate.com>:

This patch fixes possible overflow in the use of
PyOS_GetLastModificationTime in getmtime.c and Python/import.c.

Currently PyOS_GetLastModificationTime returns a C long. This can
overflow on Win64 where sizeof(time_t) > sizeof(long). Besides it
should logically return a time_t anyway (this patch changes this).

As well, import.c uses PyOS_GetLastModificationTime for .pyc
timestamping.  There has been recent discussion about the .pyc header
format on python-dev.  This patch adds oveflow checking to import.c so
that an exception will be raised if the modification time
overflows. There are a few other minor 64-bit readiness changes made
to the module as well:

- size_t instead of int or long for function-local buffer and string
length variables

- one buffer overflow check was added (raises an exception on possible
overflow, this overflow chance exists on 32-bit platforms as well), no
other possible buffer overflows existed (from my analysis anyway)

Closes SourceForge patch #100509.

24 years agothe usual
Guido van Rossum [Fri, 30 Jun 2000 16:13:37 +0000 (16:13 +0000)]
the usual

24 years agoSetup.thread.in was misnamed so it has been replaced by
Barry Warsaw [Fri, 30 Jun 2000 16:12:15 +0000 (16:12 +0000)]
Setup.thread.in was misnamed so it has been replaced by
Setup.config.in.  The latter contains all configure-time selectable
modules; currently thread and gc.

24 years agoAdd Setup.config
Barry Warsaw [Fri, 30 Jun 2000 16:09:01 +0000 (16:09 +0000)]
Add Setup.config

24 years agoUpdate version numbering from 1.6 to 2.0.
Fred Drake [Fri, 30 Jun 2000 16:06:19 +0000 (16:06 +0000)]
Update version numbering from 1.6 to 2.0.

24 years agoRemoved the comment about the thread module.
Barry Warsaw [Fri, 30 Jun 2000 16:05:22 +0000 (16:05 +0000)]
Removed the comment about the thread module.

24 years agoSetup.thread => Setup.config
Barry Warsaw [Fri, 30 Jun 2000 16:04:18 +0000 (16:04 +0000)]
Setup.thread => Setup.config

24 years agoAdded #undef of WITH_CYCLE_GC for autoconf's delight.
Barry Warsaw [Fri, 30 Jun 2000 16:02:58 +0000 (16:02 +0000)]
Added #undef of WITH_CYCLE_GC for autoconf's delight.

24 years agoUpdate authors email address and corporate affiliation.
Fred Drake [Fri, 30 Jun 2000 15:54:18 +0000 (15:54 +0000)]
Update authors email address and corporate affiliation.

24 years agoUncomment some additions from Vladimir pertinent to 2.0 but not 1.5.2.
Fred Drake [Fri, 30 Jun 2000 15:52:39 +0000 (15:52 +0000)]
Uncomment some additions from Vladimir pertinent to 2.0 but not 1.5.2.

24 years agoPython's .lib is now named Python20.lib
Mark Hammond [Fri, 30 Jun 2000 15:47:02 +0000 (15:47 +0000)]
Python's .lib is now named Python20.lib

24 years agoMartin von Löwis <loewis@informatik.hu-berlin.de>:
Fred Drake [Fri, 30 Jun 2000 15:46:08 +0000 (15:46 +0000)]
Martin von Löwis <loewis@informatik.hu-berlin.de>:
Do not forget to install the xml packages!

24 years agoUpdate the release number & date, Guido's employer.
Fred Drake [Fri, 30 Jun 2000 15:35:16 +0000 (15:35 +0000)]
Update the release number & date, Guido's employer.

24 years agoDocument randrange().
Fred Drake [Fri, 30 Jun 2000 15:32:31 +0000 (15:32 +0000)]
Document randrange().

24 years agoFix an icon width; a "32" became a "3" somehow, and that did not look
Fred Drake [Fri, 30 Jun 2000 15:30:33 +0000 (15:30 +0000)]
Fix an icon width; a "32" became a "3" somehow, and that did not look
as nice. ;)

24 years agoremove all prints (since the prints where of memory locations)
Jeremy Hylton [Fri, 30 Jun 2000 15:13:15 +0000 (15:13 +0000)]
remove all prints (since the prints where of memory locations)

24 years agoTrent Mick <trentm@activestate.com>:
Fred Drake [Fri, 30 Jun 2000 15:01:00 +0000 (15:01 +0000)]
Trent Mick <trentm@activestate.com>:

The common technique for printing out a pointer has been to cast to a long
and use the "%lx" printf modifier. This is incorrect on Win64 where casting
to a long truncates the pointer. The "%p" formatter should be used instead.

The problem as stated by Tim:
> Unfortunately, the C committee refused to define what %p conversion "looks
> like" -- they explicitly allowed it to be implementation-defined. Older
> versions of Microsoft C even stuck a colon in the middle of the address (in
> the days of segment+offset addressing)!

The result is that the hex value of a pointer will maybe/maybe not have a 0x
prepended to it.

Notes on the patch:

There are two main classes of changes:
- in the various repr() functions that print out pointers
- debugging printf's in the various thread_*.h files (these are why the
patch is large)

Closes SourceForge patch #100505.

24 years agoMarc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg [Fri, 30 Jun 2000 14:58:20 +0000 (14:58 +0000)]
Marc-Andre Lemburg <mal@lemburg.com>:
A previous patch by Jack Jansen was accidently reverted.

24 years agoOops.
Guido van Rossum [Fri, 30 Jun 2000 14:55:26 +0000 (14:55 +0000)]
Oops.

- The Tcl minor version should be 3 -- we're now using 8.3.1.
- Remove the version number from yet another Tcl source file.

Note that Tcl should be installed in C:\src\tcl for this to work.

24 years agoPoke and hope for Tcl version: now settable through _TCLMINOR_
Guido van Rossum [Fri, 30 Jun 2000 14:50:52 +0000 (14:50 +0000)]
Poke and hope for Tcl version: now settable through _TCLMINOR_
variable...

24 years agoadd gcmodule
Jeremy Hylton [Fri, 30 Jun 2000 14:38:41 +0000 (14:38 +0000)]
add gcmodule

24 years agoChange the include etc paths to Tcl 8.3.1.
Guido van Rossum [Fri, 30 Jun 2000 14:33:47 +0000 (14:33 +0000)]
Change the include etc paths to Tcl 8.3.1.

24 years agoMove Wise install dir consistently to C:\Wise. Don't use %_WISE_% in
Guido van Rossum [Fri, 30 Jun 2000 14:30:28 +0000 (14:30 +0000)]
Move Wise install dir consistently to C:\Wise.  Don't use %_WISE_% in
include, it doesn't seem to work.

24 years agoPoke and hope for Tim...
Guido van Rossum [Fri, 30 Jun 2000 14:20:19 +0000 (14:20 +0000)]
Poke and hope for Tim...

(Change title to beta 1, change a few paths for typical Win98 setup.)

24 years agoMore 2.0 stuff -- fix workspace, remove 1.6 files
Guido van Rossum [Fri, 30 Jun 2000 14:04:10 +0000 (14:04 +0000)]
More 2.0 stuff -- fix workspace, remove 1.6 files

24 years agothe mad patcher strikes again:
Fredrik Lundh [Fri, 30 Jun 2000 13:55:15 +0000 (13:55 +0000)]
the mad patcher strikes again:

-- added pickling support (only works if sre is imported)

-- fixed wordsize problems in engine
   (instead of casting literals down to the character size,
   cast characters up to the literal size (same as the code
   word size).  this prevents false hits when you're matching
   a unicode pattern against an 8-bit string. (unfortunately,
   this broke another test, but I think the test should be
   changed in this case; more on that on python-dev)

-- added sre.purge function
   (unofficial, clears the cache)

24 years agoTrivial commit to test Windows CVS capabilities.
Guido van Rossum [Fri, 30 Jun 2000 13:00:32 +0000 (13:00 +0000)]
Trivial commit to test Windows CVS capabilities.

24 years agoCredit /F in a few places
Andrew M. Kuchling [Fri, 30 Jun 2000 12:46:41 +0000 (12:46 +0000)]
Credit /F in a few places
Mention the GC module
Add MH's explanation of the Windows crash
Add atexit.py

24 years ago- fixed lookahead assertions (#10, #11, #12)
Fredrik Lundh [Fri, 30 Jun 2000 10:41:31 +0000 (10:41 +0000)]
- fixed lookahead assertions (#10, #11, #12)

- untabified sre_constants.py

24 years agoMarc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg [Fri, 30 Jun 2000 10:30:35 +0000 (10:30 +0000)]
Marc-Andre Lemburg <mal@lemburg.com>:
Fixed a quote bug. Thanks to Fredrik Lundh.

24 years agoMarc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg [Fri, 30 Jun 2000 10:29:57 +0000 (10:29 +0000)]
Marc-Andre Lemburg <mal@lemburg.com>:
New buffer overflow checks for formatting strings.

By Trent Mick.

24 years agoMarc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg [Fri, 30 Jun 2000 10:28:32 +0000 (10:28 +0000)]
Marc-Andre Lemburg <mal@lemburg.com>:
Added test output.

24 years agoMarc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg [Fri, 30 Jun 2000 10:26:29 +0000 (10:26 +0000)]
Marc-Andre Lemburg <mal@lemburg.com>:
New test for huge formatting strings (these could cause core
dumps in previous versions).

By Trent Mick.

24 years agoMarc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg [Fri, 30 Jun 2000 09:56:00 +0000 (09:56 +0000)]
Marc-Andre Lemburg <mal@lemburg.com>:
Include <> -> "". Removed some left over code at the end of the file.
Patch by Bill Tutt.

24 years agoMarc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg [Fri, 30 Jun 2000 09:53:22 +0000 (09:53 +0000)]
Marc-Andre Lemburg <mal@lemburg.com>:
Include <> -> "". Patch by Bill Tutt.

24 years agoNew test for the ucnhash module.
Marc-André Lemburg [Fri, 30 Jun 2000 09:45:20 +0000 (09:45 +0000)]
New test for the ucnhash module.

24 years agoMarc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg [Fri, 30 Jun 2000 09:14:13 +0000 (09:14 +0000)]
Marc-Andre Lemburg <mal@lemburg.com>:
Updated test output (the ucn tests are now in test_ucn).

24 years agoMarc-Andre Lemburg <mal@lemburg.com>:
Marc-André Lemburg [Fri, 30 Jun 2000 09:13:35 +0000 (09:13 +0000)]
Marc-Andre Lemburg <mal@lemburg.com>:
Moved tests of new Unicode Char Name support to a separate test.

24 years ago- added support for (?P=name)
Fredrik Lundh [Fri, 30 Jun 2000 09:13:06 +0000 (09:13 +0000)]
- added support for (?P=name)
  (closes #3 and #7 from the status report)

24 years agoMaking a tiny change to figure out what I'm going to screw up
Tim Peters [Fri, 30 Jun 2000 09:04:35 +0000 (09:04 +0000)]
Making a tiny change to figure out what I'm going to screw up
by trying to use CVS under Windows at all ...

24 years ago- pedantic: make sure "python -t" doesn't complain...
Fredrik Lundh [Fri, 30 Jun 2000 07:50:59 +0000 (07:50 +0000)]
- pedantic: make sure "python -t" doesn't complain...

24 years ago- fixed default value handling in group/groupdict
Fredrik Lundh [Fri, 30 Jun 2000 07:08:20 +0000 (07:08 +0000)]
- fixed default value handling in group/groupdict

- added test suite

24 years agoDescribe a bit about writing test cases for Python...
Skip Montanaro [Fri, 30 Jun 2000 06:08:35 +0000 (06:08 +0000)]
Describe a bit about writing test cases for Python...

24 years agofinal patches from Neil Schemenauer for garbage collection
Jeremy Hylton [Fri, 30 Jun 2000 05:02:53 +0000 (05:02 +0000)]
final patches from Neil Schemenauer for garbage collection

24 years agoreplace constant 1 with symbolic constant METH_VARARGS
Jeremy Hylton [Fri, 30 Jun 2000 04:59:59 +0000 (04:59 +0000)]
replace constant 1 with symbolic constant METH_VARARGS
another typo caught by Rob Hooft

24 years agoanother typo caught by Rob Hooft
Jeremy Hylton [Fri, 30 Jun 2000 04:59:17 +0000 (04:59 +0000)]
another typo caught by Rob Hooft

24 years agopenultimate phase of Neil Schemenauer's GC patches
Jeremy Hylton [Fri, 30 Jun 2000 04:57:55 +0000 (04:57 +0000)]
penultimate phase of Neil Schemenauer's GC patches
update configure files (turn --with-cycle-gc on for beta release?)

24 years agoChange description of altzone to not refer to the "0th meridian".
Fred Drake [Fri, 30 Jun 2000 04:24:52 +0000 (04:24 +0000)]
Change description of altzone to not refer to the "0th meridian".

24 years agoSay "manual page", not "man page", when referring to the Unix manual.
Fred Drake [Fri, 30 Jun 2000 04:21:41 +0000 (04:21 +0000)]
Say "manual page", not "man page", when referring to the Unix manual.

24 years agoAdd a comment about needing to change a #include if using a version of
Fred Drake [Fri, 30 Jun 2000 04:17:11 +0000 (04:17 +0000)]
Add a comment about needing to change a #include if using a version of
Berkeley DB 2.0 or newer; most Linux distros will include a more recent
version than 1.85.

24 years agoMake sure to note that this module was added for Python 2.0!
Fred Drake [Fri, 30 Jun 2000 03:50:06 +0000 (03:50 +0000)]
Make sure to note that this module was added for Python 2.0!

24 years agoReflect the name change to _winreg; we still need documentation for the
Fred Drake [Fri, 30 Jun 2000 03:45:40 +0000 (03:45 +0000)]
Reflect the name change to _winreg; we still need documentation for the
new winreg module.

24 years agoUpdate Python version numbers from 1.6 to 2.0 where appropriate.
Fred Drake [Fri, 30 Jun 2000 03:36:41 +0000 (03:36 +0000)]
Update Python version numbers from 1.6 to 2.0 where appropriate.

Make some references between the distutils documents hyperlinks using
the \citetitle markup.

24 years agoBump version to 0.9.
Greg Ward [Fri, 30 Jun 2000 02:54:36 +0000 (02:54 +0000)]
Bump version to 0.9.

24 years agoBump version to 2.0.
Guido van Rossum [Fri, 30 Jun 2000 02:48:53 +0000 (02:48 +0000)]
Bump version to 2.0.

Note that configure hadn't been checked in a few times so it has more
changes, catching up with the last few changes to congifure.in as
well.

24 years agoTrent Mick <trentm@activestate.com>:
Fred Drake [Fri, 30 Jun 2000 02:46:07 +0000 (02:46 +0000)]
Trent Mick <trentm@activestate.com>:
This patch fixes possible overflows in the socket module for 64-bit
platforms (mainly Win64). The changes are:

- abstract the socket type to SOCKET_T (this is SOCKET on Windows, int
on Un*x), this is necessary because sizeof(SOCKET) > sizeof(int) on
Win64

- use INVALID_SOCKET on Win32/64 for an error return value for
accept()

- ensure no overflow of the socket variable for: (1) a PyObject return
value (use PyLong_FromLongLong if necessary); and (2) printf
formatting in repr().

Closes SourceForge patch #100516.

24 years agoSomehow this had HAVE_SYS_SOCKET_H twice. Once is enough. Rerunning
Guido van Rossum [Fri, 30 Jun 2000 02:44:41 +0000 (02:44 +0000)]
Somehow this had HAVE_SYS_SOCKET_H twice.  Once is enough.  Rerunning
autoheader revealed this.

24 years agoPatch by Nadav Horesh to make acosh and asinh better.
Guido van Rossum [Fri, 30 Jun 2000 02:29:22 +0000 (02:29 +0000)]
Patch by Nadav Horesh to make acosh and asinh better.

Tim posted a long comment to python-dev (subject: "Controversial patch
(cmath)"; date: 6/29/00).  The conclusion is that this whole module
stinks and this patch isn't perfect, but it's better than the acosh
and asinh we had, so let's check it in.

24 years agoFinished the GC section.
Andrew M. Kuchling [Fri, 30 Jun 2000 01:44:05 +0000 (01:44 +0000)]
Finished the GC section.
Removed all but one XXX.
Replaced 1.6 with 2.0.
Various minor corrections and additions.

24 years agoDocument recently-added mouse-related functions
Andrew M. Kuchling [Fri, 30 Jun 2000 01:05:39 +0000 (01:05 +0000)]
Document recently-added mouse-related functions

24 years ago- fixed split behaviour on empty matches
Fredrik Lundh [Fri, 30 Jun 2000 00:27:46 +0000 (00:27 +0000)]
- fixed split behaviour on empty matches

- fixed compiler problems when using locale/unicode flags

- fixed group/octal code parsing in sub/subn templates

24 years agoAllow 2.0 on the list of target versions. NB. this isn't enough: the GUI part,
Greg Ward [Thu, 29 Jun 2000 23:50:19 +0000 (23:50 +0000)]
Allow 2.0 on the list of target versions.  NB. this isn't enough: the GUI part,
misc/install.c, still needs to be updated, and it looks like a non-trivial
change.

24 years agostill trying to figure out how to fix the remaining
Fredrik Lundh [Thu, 29 Jun 2000 23:33:12 +0000 (23:33 +0000)]
still trying to figure out how to fix the remaining
group reset problem.  in the meantime, I added some
optimizations:

- added "inline" directive to LOCAL

  (this assumes that AC_C_INLINE does what it's
  supposed to do).  to compile SRE on a non-unix
  platform that doesn't support inline, you have
  to add a "#define inline" somewhere...

- added code to generate a SRE_OP_INFO primitive

- added code to do fast prefix search

  (enabled by the USE_FAST_SEARCH define; default
  is on, in this release)

24 years agoDon't try to guess the name of a .def file -- if one is supplied, use it,
Greg Ward [Thu, 29 Jun 2000 23:09:20 +0000 (23:09 +0000)]
Don't try to guess the name of a .def file -- if one is supplied, use it,
otherwise just generate an '/export:' option.

24 years agoOn second thought, first try for _winreg, and then winreg. Only if both
Greg Ward [Thu, 29 Jun 2000 23:04:59 +0000 (23:04 +0000)]
On second thought, first try for _winreg, and then winreg.  Only if both
fail do we try for win32api/win32con.  If *those* both fail, then we don't
have registry access.  Phew!

24 years agoRemoved --l2h-config option; it introduced unnecessary complexity and
Fred Drake [Thu, 29 Jun 2000 23:01:40 +0000 (23:01 +0000)]
Removed --l2h-config option; it introduced unnecessary complexity and
is not needed anywhere.

24 years agoChanged to use _winreg module instead of winreg.
Greg Ward [Thu, 29 Jun 2000 22:59:10 +0000 (22:59 +0000)]
Changed to use _winreg module instead of winreg.

24 years agoCleaned up and reformatted by Rene Liebscher.
Greg Ward [Thu, 29 Jun 2000 22:57:55 +0000 (22:57 +0000)]
Cleaned up and reformatted by Rene Liebscher.
More reformatting by me.
Also added some editorial comments.

24 years agoBump version to 2.0.
Guido van Rossum [Thu, 29 Jun 2000 22:32:08 +0000 (22:32 +0000)]
Bump version to 2.0.

24 years agoBump version to 2.0b1. Change copyright to BeOpen, CNRI, SMC.
Guido van Rossum [Thu, 29 Jun 2000 22:30:37 +0000 (22:30 +0000)]
Bump version to 2.0b1.  Change copyright to BeOpen, CNRI, SMC.

24 years agoBump version to 2.0b1.
Guido van Rossum [Thu, 29 Jun 2000 22:29:24 +0000 (22:29 +0000)]
Bump version to 2.0b1.

24 years agoTentative 2.0 and BeOpen upgrade.
Guido van Rossum [Thu, 29 Jun 2000 22:28:44 +0000 (22:28 +0000)]
Tentative 2.0 and BeOpen upgrade.

24 years agoTrent Mick <trentm@activestate.com>:
Fred Drake [Thu, 29 Jun 2000 21:31:02 +0000 (21:31 +0000)]
Trent Mick <trentm@activestate.com>:
This patch fixes a possible overflow in the Sleep system call on
Win32/64 in the time_sleep() function in the time module. For very
large values of the give time to sleep the number of milliseconds can
overflow and give unexpected sleep intervals. THis patch raises an
OverflowError if the value overflows.

Closes SourceForge patch #100514.

24 years agoTrent Mick <trentm@activestate.com>:
Fred Drake [Thu, 29 Jun 2000 21:12:41 +0000 (21:12 +0000)]
Trent Mick <trentm@activestate.com>:
This patch fixes the posix module for large file support mainly on
Win64, although some general cleanup is done as well.

The changes are:

- abstract stat->STAT, fstat->FSTAT, and struct stat->STRUCT_STAT
This is because stat() etc. are not the correct functions to use on
Win64 (nor maybe on other platforms?, if not then it is now trivial to
select the appropriate one). On Win64 the appropriate system functions
are _stati64(), etc.

- add _pystat_fromstructstat(), it builds the return tuple for the
fstat system call. This functionality was being duplicated. As well
the construction of the tuple was modified to ensure no overflow of
the time_t elements (sizeof(time_t) > sizeof(long) on Win64).

- add overflow protection for the return values of posix_spawnv and
posix_spawnve

- use the proper 64-bit capable lseek() on Win64

- use intptr_t instead of long where appropriate from Win32/64 blocks
(sizeof(void*) > sizeof(long) on Win64)

This closes SourceForge patch #100513.

24 years agoTrent Mick <trentm@activestate.com>:
Fred Drake [Thu, 29 Jun 2000 20:56:28 +0000 (20:56 +0000)]
Trent Mick <trentm@activestate.com>:
Mark Hammond provided (a long time ago) a better Win32 specific
time_clock implementation in timemodule.c. The library for this
implementation does not exist on Win64 (yet, at least). This patch
makes Win64 fall back on the system's clock() function for
time_clock().

This closes SourceForge patch #100512.

24 years agoThis patch extends PC/config.h and configure.in as appropriate for
Fred Drake [Thu, 29 Jun 2000 20:44:47 +0000 (20:44 +0000)]
This patch extends PC/config.h and configure.in as appropriate for
64-bit readiness (the config values are needed for patches that I will
be submitting later today. The changes are as follows:

- add SIZEOF_OFF_T #define's to PC/config.h (it was already in configure.in)

- add SIZEOF_TIME_T #define to PC/config.h and configure
Needed for some buffer overflow checking because sizeof(time_t) is
different on Win64.

- add SIZEOF_FPOS_T #define
Needed for the Win64 large file support implementation.

- add SIZEOF_HKEY in PC/config.h only
Needed for proper Win32 vs. Win64 handling in PC/winreg.c

- #define HAVE_LARGEFILE_SUPPORT for Win64

- typedef long intptr_t; for all Windows except Win64 (which defines it
itself)
This is a new ANSI (I think) type that is useful (and used by me) for
proper handling in msvcrtmodule.c and posixmodule.c

- indent the nested #ifdef's and #defines in PC/config.h
This is *so* much more readable. There cannot be a compiler
compatibilty issue here can there? Perl uses indented #defines and it
compiles with everything.

24 years agoUpdate comments relating to the removal of the -X option and of string
Fred Drake [Thu, 29 Jun 2000 20:15:14 +0000 (20:15 +0000)]
Update comments relating to the removal of the -X option and of string
exceptions in the interpreter and standard library.

24 years agoTypo.
Fred Drake [Thu, 29 Jun 2000 20:02:38 +0000 (20:02 +0000)]
Typo.