]> granicus.if.org Git - python/log
python
24 years agoMoshe Zadka <moshez@math.huji.ac.il>:
Fred Drake [Mon, 3 Jul 2000 08:24:49 +0000 (08:24 +0000)]
Moshe Zadka <moshez@math.huji.ac.il>:
Substantial updates to reflect Moshe's Gordon's enhancements to the
module.

Additional changes from Fred to reflect his changes to the module as well.

24 years agocmpfiles(): Added shallow and use_statcache parameters, with same meanings
Fred Drake [Mon, 3 Jul 2000 08:18:47 +0000 (08:18 +0000)]
cmpfiles():  Added shallow and use_statcache parameters, with same meanings
             and defaults as for filecmp.cmp().  Updated docstring
             accordingly, and formatted it more like others in the standard
             library.

24 years agoMartin von Löwis <martin@loewis.home.cs.tu-berlin.de>:
Fred Drake [Mon, 3 Jul 2000 07:23:13 +0000 (07:23 +0000)]
Martin von Löwis <martin@loewis.home.cs.tu-berlin.de>:
This patch delegates more string functions to string object methods,
uses the varargs delegation syntax, and stops using stringold.

Closes SourceForge patch #100712.

24 years agoTim-blessed documentation for math.frexp().
Fred Drake [Mon, 3 Jul 2000 06:38:17 +0000 (06:38 +0000)]
Tim-blessed documentation for math.frexp().

24 years agoChecked in a wrong version.
Tim Peters [Sun, 2 Jul 2000 23:21:49 +0000 (23:21 +0000)]
Checked in a wrong version.

24 years agoThe example_nt directory was old enough to vote. Frank Stajano
Tim Peters [Sun, 2 Jul 2000 23:18:43 +0000 (23:18 +0000)]
The example_nt directory was old enough to vote.  Frank Stajano
pointed out some of the problems he had following the instructions,
and I stumbled into the others:  MSVC has changed in several
respects, Python has changed the directories into which it builds
its own Windows outputs, and we grew the unusual scheme of
appending "_d" to the names of debug-mode output files.

This should all work with VC6 + CVS Python now.  Some other Windows
geek please confirm!  And the less you know, the better <0.5 wink>.

Explanations and examples for versions of MSVC before 6, and
versions of Python before 2.0b1, have been removed, because
they're too different and so confuse life.  This last step I OK'ed
with Guido first (indeed, 'twas his idea!).

24 years ago- changed sre.Scanner to use lastindex instead of index.
Fredrik Lundh [Sun, 2 Jul 2000 22:59:57 +0000 (22:59 +0000)]
- changed sre.Scanner to use lastindex instead of index.

24 years ago- experimental: added two new attributes to the match object:
Fredrik Lundh [Sun, 2 Jul 2000 22:25:39 +0000 (22:25 +0000)]
- experimental: added two new attributes to the match object:
  "lastgroup" is the name of the last matched capturing group,
  "lastindex" is the index of the same group.  if no group was
  matched, both attributes are set to None.

  the (?P#) feature will be removed in the next relase.

24 years agoRepair docs for math.frexp (they were wrong).
Tim Peters [Sun, 2 Jul 2000 20:17:08 +0000 (20:17 +0000)]
Repair docs for math.frexp (they were wrong).
Reported on c.l.py by Kirill Simonov.

24 years ago- actually enabled charset anchors in the engine (still not
Fredrik Lundh [Sun, 2 Jul 2000 17:33:27 +0000 (17:33 +0000)]
- actually enabled charset anchors in the engine (still not
  used by the code generator)

- changed max repeat value in engine (to match earlier array fix)

- added experimental "which part matched?" mechanism to sre; see
  http://hem.passagen.se/eff/2000_07_01_bot-archive.htm#416954
  or python-dev for details.

24 years agoTypo (mine): Garsholm --> Garshol
Fred Drake [Sun, 2 Jul 2000 13:52:21 +0000 (13:52 +0000)]
Typo (mine):  Garsholm --> Garshol
Noted by Rob Hooft <rob@hooft.net>.

24 years ago-- use charset bitmaps where appropriate. this gives a 5-10%
Fredrik Lundh [Sun, 2 Jul 2000 12:00:07 +0000 (12:00 +0000)]
-- use charset bitmaps where appropriate.  this gives a 5-10%
   speedup for some tests, including the python tokenizer.

-- added support for an optional charset anchor to the engine
   (currently unused by the code generator).

-- removed workaround for array module bug.

24 years ago- fixed "{ in any other context" bug
Fredrik Lundh [Sat, 1 Jul 2000 23:49:14 +0000 (23:49 +0000)]
- fixed "{ in any other context" bug

- minor comment touchups in the C module

24 years agotest(): Removed; regression test is in test.test_winreg2, not testreg.
Fred Drake [Sat, 1 Jul 2000 20:57:03 +0000 (20:57 +0000)]
test():  Removed; regression test is in test.test_winreg2, not testreg.

24 years agoTypo repair.
Tim Peters [Sat, 1 Jul 2000 20:38:27 +0000 (20:38 +0000)]
Typo repair.

24 years agoMisc fixes and improvements.
Paul Prescod [Sat, 1 Jul 2000 19:21:47 +0000 (19:21 +0000)]
Misc fixes and improvements.

24 years agoRemoved unncessary dependency.
Paul Prescod [Sat, 1 Jul 2000 19:19:32 +0000 (19:19 +0000)]
Removed unncessary dependency.

24 years agoFixed test output
Paul Prescod [Sat, 1 Jul 2000 19:17:43 +0000 (19:17 +0000)]
Fixed test output

24 years agotoday's SRE update:
Fredrik Lundh [Sat, 1 Jul 2000 17:50:59 +0000 (17:50 +0000)]
today's SRE update:

-- changed 1.6 to 2.0 in the file headers

-- fixed ISALNUM macro for the unicode locale.  this
   solution isn't perfect, but the best I can do with
   Python's current unicode database.

24 years agoothers --> other's (possessive)
Fred Drake [Sat, 1 Jul 2000 17:47:38 +0000 (17:47 +0000)]
others --> other's (possessive)
Usage error noted by Grant Griffin <grant.griffin@iowegian.com>.

24 years agoSend a "ARTICLE" --> Send an "ARTICLE"
Fred Drake [Sat, 1 Jul 2000 17:43:19 +0000 (17:43 +0000)]
Send a "ARTICLE" --> Send an "ARTICLE"
Usage error noted by Grant Griffin <grant.griffin@iowegian.com>.

24 years agoAdded more changes from /F
Andrew M. Kuchling [Sat, 1 Jul 2000 15:04:18 +0000 (15:04 +0000)]
Added more changes from /F

24 years agoAdded minidom tests.
Paul Prescod [Sat, 1 Jul 2000 14:54:16 +0000 (14:54 +0000)]
Added minidom tests.

24 years agoa minimal test app to show how to build a standalone app with W
Just van Rossum [Sat, 1 Jul 2000 14:31:24 +0000 (14:31 +0000)]
a minimal test app to show how to build a standalone app with W

24 years agochanged repr and str to always convert unicode strings
Fredrik Lundh [Sat, 1 Jul 2000 14:31:09 +0000 (14:31 +0000)]
changed repr and str to always convert unicode strings
to 8-bit strings, using the default encoding.

24 years agoadded clearkey = '\033'
Just van Rossum [Sat, 1 Jul 2000 14:30:30 +0000 (14:30 +0000)]
added clearkey = '\033'

24 years agofixed bug in comment matching
Just van Rossum [Sat, 1 Jul 2000 14:30:08 +0000 (14:30 +0000)]
fixed bug in comment matching

24 years agoTightened xml.sax.__init__.py
Paul Prescod [Sat, 1 Jul 2000 13:44:04 +0000 (13:44 +0000)]
Tightened xml.sax.__init__.py

24 years agoChanges from Moshe:
Andrew M. Kuchling [Sat, 1 Jul 2000 12:33:43 +0000 (12:33 +0000)]
Changes from Moshe:
- distutils: Windows installers are already working

- string methods: .join() seems to be the concensus, so it should probably
  be docommented

- filecmp.py supersedes cmp, cmpcache and dircmp

- winreg is completely new: _winreg is an adaptation of what used to be in
  win32api, and winreg is a Python implementation which adds OO syntax.
  Perhaps you know that, but the text is misleading.

24 years agogetatime() returned the mtime instead of the atime.
Guido van Rossum [Sat, 1 Jul 2000 10:52:49 +0000 (10:52 +0000)]
getatime() returned the mtime instead of the atime.
Similar to an old bug in ntpath.py.

24 years agoFix bug #314, reported by Craig Allen <cba@mediaone.net>:
Fred Drake [Sat, 1 Jul 2000 07:03:30 +0000 (07:03 +0000)]
Fix bug #314, reported by Craig Allen <cba@mediaone.net>:
splittype():  Always lower-case the URL scheme; these are supposed to be
               normalized according to RFC 1738 anyway.

24 years agoFix bug #345 reported by David Bolen <db3l@fitlinxx.com>:
Fred Drake [Sat, 1 Jul 2000 06:36:51 +0000 (06:36 +0000)]
Fix bug #345 reported by David Bolen <db3l@fitlinxx.com>:
getatime() returned the mtime instead of the atime.
Similar to an old bug in posixpath.py.

24 years agoMartin von Loewis <loewis@informatik.hu-berlin.de>:
Fred Drake [Sat, 1 Jul 2000 06:26:44 +0000 (06:26 +0000)]
Martin von Loewis <loewis@informatik.hu-berlin.de>:
Correct typo that caused a well-formedness failure.

24 years agoReference cycle fixes
Paul Prescod [Sat, 1 Jul 2000 04:58:47 +0000 (04:58 +0000)]
Reference cycle fixes

24 years agoinit_exceptions(): Decref `doc' so it doesn't leak.
Barry Warsaw [Sat, 1 Jul 2000 04:45:52 +0000 (04:45 +0000)]
init_exceptions(): Decref `doc' so it doesn't leak.

24 years agothe usual
Guido van Rossum [Sat, 1 Jul 2000 04:23:47 +0000 (04:23 +0000)]
the usual

24 years agoA bunch of project files were checked in as text files.
Guido van Rossum [Sat, 1 Jul 2000 04:03:32 +0000 (04:03 +0000)]
A bunch of project files were checked in as text files.
They should all be binary (cvs admin -kv has now been applied).

24 years agoAdd ucnhash (new subproject).
Guido van Rossum [Sat, 1 Jul 2000 03:46:38 +0000 (03:46 +0000)]
Add ucnhash (new subproject).

24 years agoThe Python include paths were not specified.
Mark Hammond [Sat, 1 Jul 2000 03:43:33 +0000 (03:43 +0000)]
The Python include paths were not specified.

24 years agoRestore strict checking of socket address values; addresses passed to
Fred Drake [Sat, 1 Jul 2000 03:40:12 +0000 (03:40 +0000)]
Restore strict checking of socket address values; addresses passed to
the bind(), connect(), and connect_ex() methods must be a single
parameter.

Originally part of 1.98, reverted in 1.100.

24 years agooutput for openpty test
Guido van Rossum [Sat, 1 Jul 2000 03:34:14 +0000 (03:34 +0000)]
output for openpty test

24 years agoDefine a magical symbol and magic include path so it will compile without
Guido van Rossum [Sat, 1 Jul 2000 03:27:22 +0000 (03:27 +0000)]
Define a magical symbol and magic include path so it will compile without
changes to the bsddb source.

24 years agoAdd ucnhash to the workspace, as a dependency of python20.
Mark Hammond [Sat, 1 Jul 2000 03:15:37 +0000 (03:15 +0000)]
Add ucnhash to the workspace, as a dependency of python20.

24 years agoucnhash now correctly builds for Windows.
Mark Hammond [Sat, 1 Jul 2000 03:14:51 +0000 (03:14 +0000)]
ucnhash now correctly builds for Windows.

24 years agoUpdate all projects so Debug builds use "/Zi" instead of "/ZI", which means everythin...
Mark Hammond [Sat, 1 Jul 2000 03:12:59 +0000 (03:12 +0000)]
Update all projects so Debug builds use "/Zi" instead of "/ZI", which means everything should still build under MSVC5

NOTE:  All these projects had messed-up line endings (but MSVC didnt mind).  Executing a diff with "--ignore-all-space" will show the specific changes, but I made a complete checkin with correct line endiings as it is the correct thing to do!

24 years agoRepaired two URLs.
Tim Peters [Sat, 1 Jul 2000 02:51:23 +0000 (02:51 +0000)]
Repaired two URLs.

24 years agoDo not build the "longhtml" version for pre-release versions.
Fred Drake [Sat, 1 Jul 2000 02:37:37 +0000 (02:37 +0000)]
Do not build the "longhtml" version for pre-release versions.

24 years agoThe new copyright / license.
Fred Drake [Sat, 1 Jul 2000 01:41:55 +0000 (01:41 +0000)]
The new copyright / license.

24 years agoThomas Wouters: Test script for openpty()
Guido van Rossum [Sat, 1 Jul 2000 01:13:31 +0000 (01:13 +0000)]
Thomas Wouters: Test script for openpty()

24 years agoJack Jansen, Mac patch:
Guido van Rossum [Sat, 1 Jul 2000 01:09:43 +0000 (01:09 +0000)]
Jack Jansen, Mac patch:

Include limits.h if we have it.

24 years agoJack Jansen, Mac patch:
Guido van Rossum [Sat, 1 Jul 2000 01:08:11 +0000 (01:08 +0000)]
Jack Jansen, Mac patch:

If we have stat.h include it if we don't have sys/stat.h

24 years agoJack Jansen, Mac patch:
Guido van Rossum [Sat, 1 Jul 2000 01:06:56 +0000 (01:06 +0000)]
Jack Jansen, Mac patch:

Include stat.h if needed; different Mac filename compare

24 years agoNeil Schemenauer: small fixes for GC
Guido van Rossum [Sat, 1 Jul 2000 01:00:38 +0000 (01:00 +0000)]
Neil Schemenauer: small fixes for GC

24 years agoclean up warnings in Win32 build of mmapmodule.c
Guido van Rossum [Sat, 1 Jul 2000 00:51:51 +0000 (00:51 +0000)]
clean up warnings in Win32 build of mmapmodule.c

24 years agoIn b_setitem(), instead of the platform dependent CHAR_MIN and
Guido van Rossum [Sat, 1 Jul 2000 00:38:19 +0000 (00:38 +0000)]
In b_setitem(), instead of the platform dependent CHAR_MIN and
CHAR_MAX, use hardcoded -128 and 127.  This may seem strange, unless
you realize that we're talking about signed bytes here!  Bytes are
always 8 bits and 2's complement.  CHAR_MIN and CHAR_MAX are
properties of the char data type, which is guaranteed to hold at least
8 bits anyway.

Otherwise you'd get failing tests on platforms where unsigned char is
the default (e.g. AIX).

Thanks, Vladimir Marangozov, for finding this nit!

24 years agoUpdate a bunch of URLs. No longer suggests to join PSA or Consortium.
Guido van Rossum [Sat, 1 Jul 2000 00:34:39 +0000 (00:34 +0000)]
Update a bunch of URLs.  No longer suggests to join PSA or Consortium.

24 years agoRefer to "Authors", plural
Andrew M. Kuchling [Sat, 1 Jul 2000 00:23:02 +0000 (00:23 +0000)]
Refer to "Authors", plural

24 years agoChange copyright notice.
Guido van Rossum [Sat, 1 Jul 2000 00:16:13 +0000 (00:16 +0000)]
Change copyright notice.

24 years agoUpdate the version number in an example
Andrew M. Kuchling [Sat, 1 Jul 2000 00:14:43 +0000 (00:14 +0000)]
Update the version number in an example

24 years agoUpdated the URL for Python 2.0
Andrew M. Kuchling [Sat, 1 Jul 2000 00:13:30 +0000 (00:13 +0000)]
Updated the URL for Python 2.0

24 years agoUpdate for 2.0b1. Also add more text, to be more explicit about
Tim Peters [Sat, 1 Jul 2000 00:03:43 +0000 (00:03 +0000)]
Update for 2.0b1.  Also add more text, to be more explicit about
what the dozen+ subprojects are for, which are and aren't
expected to build out of the box, and what else is needed to get
them all to build.  Also explained that Alpha configurations
don't refer to pre-beta, but to the Alpha processor!  That's
baffled me for years <0.7 wink>.

24 years agoChange copyright notice - 2nd try.
Guido van Rossum [Fri, 30 Jun 2000 23:58:06 +0000 (23:58 +0000)]
Change copyright notice - 2nd try.

24 years agoChange copyright notice.
Guido van Rossum [Fri, 30 Jun 2000 23:50:40 +0000 (23:50 +0000)]
Change copyright notice.

24 years agoThomas Wouters <thomas@xs4all.net>:
Fred Drake [Fri, 30 Jun 2000 23:22:35 +0000 (23:22 +0000)]
Thomas Wouters <thomas@xs4all.net>:
Test case for the pty module.

24 years agoFix another error on AIX by using a proper cast.
Guido van Rossum [Fri, 30 Jun 2000 23:04:18 +0000 (23:04 +0000)]
Fix another error on AIX by using a proper cast.

24 years agoFix an error on AIX by using a proper cast.
Guido van Rossum [Fri, 30 Jun 2000 22:46:04 +0000 (22:46 +0000)]
Fix an error on AIX by using a proper cast.

24 years agoCrude way to fix a problem on AIX: #undef STAT before defining it.
Guido van Rossum [Fri, 30 Jun 2000 22:45:12 +0000 (22:45 +0000)]
Crude way to fix a problem on AIX: #undef STAT before defining it.

24 years ago- fixed code generation error in multiline mode
Fredrik Lundh [Fri, 30 Jun 2000 22:37:31 +0000 (22:37 +0000)]
- fixed code generation error in multiline mode

- fixed parser flag propagation (of all stupid bugs...)

24 years agoOnly include <basetsd.h> for VC 6.0 and higher.
Guido van Rossum [Fri, 30 Jun 2000 22:17:53 +0000 (22:17 +0000)]
Only include <basetsd.h> for VC 6.0 and higher.

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.