]> granicus.if.org Git - python/log
python
24 years agopatches from Mark Hammond
Jeremy Hylton [Tue, 2 May 2000 22:29:46 +0000 (22:29 +0000)]
patches from Mark Hammond

compile.py:
On Windows, use 'nul' instead of '/dev/null'.

test.py:
Use double-quotes for the command-line, as Windows doesnt recognise
singles.

24 years agoDisable the ZEROTRAP code -- this turns a 0 byte into a 2 byte and I
Guido van Rossum [Tue, 2 May 2000 21:18:13 +0000 (21:18 +0000)]
Disable the ZEROTRAP code -- this turns a 0 byte into a 2 byte and I
don't think that's what we want.  There was some brief discussion
of this somewhere but I don't recall where.

24 years agoAdded an unused Unicode string for testing.
Barry Warsaw [Tue, 2 May 2000 19:28:30 +0000 (19:28 +0000)]
Added an unused Unicode string for testing.

24 years agoPyErr_GivenExceptionMatches(): Check for err==NULL and exc==NULL and
Barry Warsaw [Tue, 2 May 2000 19:27:51 +0000 (19:27 +0000)]
PyErr_GivenExceptionMatches(): Check for err==NULL and exc==NULL and
return 0 (exceptions don't match).  This means that if an ImportError
is raised because exceptions.py can't be imported, the interpreter
will exit "cleanly" with an error message instead of just core
dumping.

PyErr_SetFromErrnoWithFilename(), PyErr_SetFromWindowsErrWithFilename():
Don't test on Py_UseClassExceptionsFlag.

24 years ago_PyBuiltin_Init_2(): Remove the misleading comment.
Barry Warsaw [Tue, 2 May 2000 19:24:39 +0000 (19:24 +0000)]
_PyBuiltin_Init_2(): Remove the misleading comment.

24 years agoiniterrors(): Remove this function. String-based standard exceptions
Barry Warsaw [Tue, 2 May 2000 19:24:06 +0000 (19:24 +0000)]
initerrors(): Remove this function.  String-based standard exceptions
are no longer supported (i.e. -X option is removed).

_PyBuiltin_Init_1(): Don't call initerrors().  This does mean that it
is possible to raise an ImportError before that exception has been
initialized, say because exceptions.py can't be found, or contains
bogosity.  See changes to errors.c for how this is handled.

_PyBuiltin_Init_2(): Don't test Py_UseClassExceptionsFlag, just go
ahead and initialize the class-based standard exceptions.  If this
fails, we throw a Py_FatalError.

24 years agousage_mid: Remove the description of the -X flag; it's gone now.
Barry Warsaw [Tue, 2 May 2000 19:20:26 +0000 (19:20 +0000)]
usage_mid: Remove the description of the -X flag; it's gone now.

Py_Main(): Remove the 'X' case.

24 years agoPy_UseClassExceptionsFlag is deprecated. We keep the C variable for C
Barry Warsaw [Tue, 2 May 2000 19:18:59 +0000 (19:18 +0000)]
Py_UseClassExceptionsFlag is deprecated.  We keep the C variable for C
API consistency, but nothing sets it or checks it now.

24 years agoAt last, this backward compatibility file bites the dust.
Guido van Rossum [Tue, 2 May 2000 19:09:40 +0000 (19:09 +0000)]
At last, this backward compatibility file bites the dust.
If you still haven't updated your extension since the Grand Renaming,
you don't deserve Python 1.6. :-)

24 years agoIgnore a bunch of generated files.
Barry Warsaw [Tue, 2 May 2000 18:34:30 +0000 (18:34 +0000)]
Ignore a bunch of generated files.

24 years agoAdded descriptions of \versionadded and \versionchanged.
Fred Drake [Tue, 2 May 2000 17:43:44 +0000 (17:43 +0000)]
Added descriptions of \versionadded and \versionchanged.

24 years agodo_cmd_versionchanged():
Fred Drake [Tue, 2 May 2000 17:37:42 +0000 (17:37 +0000)]
do_cmd_versionchanged():
        Added support for optional parameter explaining the change
        that was made in the specified version.

24 years agoUse \versionchanged to indicate when the second parameter to utime()
Fred Drake [Tue, 2 May 2000 17:29:35 +0000 (17:29 +0000)]
Use \versionchanged to indicate when the second parameter to utime()
was allowed to be None.

24 years ago\versionchanged: Added optional parameter for explanation of change.
Fred Drake [Tue, 2 May 2000 17:28:36 +0000 (17:28 +0000)]
\versionchanged:  Added optional parameter for explanation of change.

24 years agoI know this is only a temporary stop-gap measure, but the match() and
Guido van Rossum [Tue, 2 May 2000 15:52:33 +0000 (15:52 +0000)]
I know this is only a temporary stop-gap measure, but the match() and
search() functions didn't even work because _fixflags() isn't
idempotent.  I'm adding another stop-gap measure so that you can at
least use sre.search() and sre.match() with a zero flags arg.

24 years agoCaolan McNamara:
Guido van Rossum [Tue, 2 May 2000 14:32:11 +0000 (14:32 +0000)]
Caolan McNamara:

telnetlib is unable to connect to a few telnet daemons because of
improper IAC handling, heres an attached oneliner to reject WILL
messages which will allow many more telnet daemons to work with it,
namely FreeBSD.

24 years agoSjoerd Mullender:
Guido van Rossum [Tue, 2 May 2000 13:49:13 +0000 (13:49 +0000)]
Sjoerd Mullender:

Bad % formatting.

24 years agoThe debug settings for zlib contained a bogus reference to msvcrt in
Guido van Rossum [Tue, 2 May 2000 12:44:22 +0000 (12:44 +0000)]
The debug settings for zlib contained a bogus reference to msvcrt in
the /nodefaultlib: option.

24 years agoMarc-Andre Lemburg:
Guido van Rossum [Mon, 1 May 2000 21:27:20 +0000 (21:27 +0000)]
Marc-Andre Lemburg:

Fixed \OOO interpretation for Unicode objects. \777 now
correctly produces the Unicode character with ordinal 511.

24 years agoMarc-Andre Lemburg:
Guido van Rossum [Mon, 1 May 2000 20:19:08 +0000 (20:19 +0000)]
Marc-Andre Lemburg:

Changed all references to the MAGIC constant to use a global
pyc_magic instead. This global is initially set to MAGIC, but can be
changed by the _PyImport_Init() function to provide for
special features implemented in the compiler which are settable
using command line switches and affect the way PYC files are
generated.

Currently this change is only done for the -U flag.

24 years agoEric Raymond:
Guido van Rossum [Mon, 1 May 2000 20:14:47 +0000 (20:14 +0000)]
Eric Raymond:

(1) Added and documented the capability for shlex to handle
lexical-level inclusion and a stack of input sources.  Also, the input
stream member is now documented, and the constructor takes an optional
source-filename.  The class provides facilities to generate error
messages that track file and line number.

(2) Add a convenience function to generate C-compiler style error
leaders.

24 years agoEric Raymond:
Guido van Rossum [Mon, 1 May 2000 20:14:12 +0000 (20:14 +0000)]
Eric Raymond:

Add a convenience function to generate C-compiler style error leaders.

24 years agoEric Raymond:
Guido van Rossum [Mon, 1 May 2000 20:08:46 +0000 (20:08 +0000)]
Eric Raymond:

Added and documented the capability for shlex to handle lexical-level
inclusion and a stack of input sources.  Also, the input stream member
is now documented, and the constructor takes an optional source-filename.
The class provides facilities to generate error messages that track
file and line number.

[GvR: I changed the __main__ code so that it actually stops at EOF, as
Eric surely intended -- however it returned '' instead of the None he
was testing for.]

24 years agoMarc-Andre Lemburg:
Guido van Rossum [Mon, 1 May 2000 17:55:15 +0000 (17:55 +0000)]
Marc-Andre Lemburg:

Added Py_UnicodeFlag for use by the -U command line option.

24 years agoMarc-Andre Lemburg:
Guido van Rossum [Mon, 1 May 2000 17:54:56 +0000 (17:54 +0000)]
Marc-Andre Lemburg:

Support for the new -U command line option option:
with the option enabled the Python compiler
interprets all "..." strings as u"..." (same with r"..." and
ur"...").

24 years agoMarc-Andre Lemburg:
Guido van Rossum [Mon, 1 May 2000 17:54:33 +0000 (17:54 +0000)]
Marc-Andre Lemburg:

Added -U command line option.

With the option enabled the Python compiler interprets all "..."
strings as u"..." (same with r"..." and ur"...").

24 years agoRobin Becker: The following patch seems to fix a module case bug in
Guido van Rossum [Mon, 1 May 2000 17:36:58 +0000 (17:36 +0000)]
Robin Becker: The following patch seems to fix a module case bug in
1.6a2 caused by wrong return values in routine allcaps83.  [GvR: I
also changed the case for end-s>8 to return 0.]

24 years agoDocument the new additional signature for utime(). In addition to the
Barry Warsaw [Mon, 1 May 2000 16:18:22 +0000 (16:18 +0000)]
Document the new additional signature for utime().  In addition to the
previous functionality utime(path, (atime, mtime)), now allowed is
utime(path, None) which sets the file's times to the current time.

24 years agoMarc-Andre Lemburg:
Guido van Rossum [Mon, 1 May 2000 16:17:32 +0000 (16:17 +0000)]
Marc-Andre Lemburg:

The two methods .readline() and .readlines() in StreamReaderWriter
didn't define the self argument. Found by Tom Emerson.

24 years agoposix_utime(): Allow the second argument to be None, which invokes the
Barry Warsaw [Mon, 1 May 2000 16:17:24 +0000 (16:17 +0000)]
posix_utime(): Allow the second argument to be None, which invokes the
utime(path, NULL) call, setting the atime and mtime of the file to the
current time.  The previous signature utime(path, (atime, mtime)) is
of course still allowed.

24 years agoGet rid of memory leak caused by assingning sys.exc_info() to a local.
Guido van Rossum [Fri, 28 Apr 2000 20:39:58 +0000 (20:39 +0000)]
Get rid of memory leak caused by assingning sys.exc_info() to a local.
Store sys.exc_info()[:2] instead.

24 years agoAs Marc-Andre Lemburg points out, the magic number needs to change
Guido van Rossum [Fri, 28 Apr 2000 19:03:54 +0000 (19:03 +0000)]
As Marc-Andre Lemburg points out, the magic number needs to change
because we've added Unicode marshalling to the repertoire.

24 years ago\file and \filenq should not be used in section titles; they are not
Fred Drake [Fri, 28 Apr 2000 18:17:23 +0000 (18:17 +0000)]
\file and \filenq should not be used in section titles; they are not
sufficiently robust to survive the creation of bookmarks in the PDF
format.

24 years agoDon't worry about the output dirs for the distutils manuals.
Fred Drake [Fri, 28 Apr 2000 17:45:27 +0000 (17:45 +0000)]
Don't worry about the output dirs for the distutils manuals.

24 years agoAdded distutils manuals.
Fred Drake [Fri, 28 Apr 2000 17:43:12 +0000 (17:43 +0000)]
Added distutils manuals.

Made the attributes more XHTML-friendly.

24 years agoStripped leading 'sec:' from all section labels -- generates bad filenames,
Greg Ward [Fri, 28 Apr 2000 17:12:24 +0000 (17:12 +0000)]
Stripped leading 'sec:' from all section labels -- generates bad filenames,
bad link URLs in HTML, etc.

24 years agoWhen building HTML releases, refer to */*.css and */*.html instead of
Greg Ward [Fri, 28 Apr 2000 17:09:17 +0000 (17:09 +0000)]
When building HTML releases, refer to */*.css and */*.html instead of
???/*.css and ???/*.html -- need to pick up the Distutils manuals!

24 years agoAdded the Distutils manuals.
Greg Ward [Fri, 28 Apr 2000 17:05:41 +0000 (17:05 +0000)]
Added the Distutils manuals.

24 years agoAdded the Distutils manuals: inst and dist.
Greg Ward [Fri, 28 Apr 2000 17:03:26 +0000 (17:03 +0000)]
Added the Distutils manuals: inst and dist.

24 years agoAdded 'inst' and 'dist' -- the two Distutils manuals.
Greg Ward [Fri, 28 Apr 2000 16:53:36 +0000 (16:53 +0000)]
Added 'inst' and 'dist' -- the two Distutils manuals.

24 years agoCharles G Waldman:
Guido van Rossum [Fri, 28 Apr 2000 16:42:25 +0000 (16:42 +0000)]
Charles G Waldman:

Follow a suggestion in an /*XXX*/ comment [in com_add()] to speed up
compilation by using supplemental dictionaries to keep track of names
and constants, eliminating quadratic behavior.  With this patch in
place, the time to import a 5000-line file with lots of constants [at
the global level] is reduced from 20 seconds to under 3 on my system.

24 years agoDocumentation patch describing the 'u' and 'u#' format specifiers,
Fred Drake [Fri, 28 Apr 2000 14:43:33 +0000 (14:43 +0000)]
Documentation patch describing the 'u' and 'u#' format specifiers,
from Brian Hooper <brian_takashi@hotmail.com>.

24 years agoBrian Hooper <brian_takashi@hotmail.com>:
Fred Drake [Fri, 28 Apr 2000 14:42:37 +0000 (14:42 +0000)]
Brian Hooper <brian_takashi@hotmail.com>:
Here's a patch which changes modsupport to add 'u' and 'u#',
to support building Unicode objects from a null-terminated
Py_UNICODE *, and a Py_UNICODE * with length, respectively.

[Conversion from 'U' to 'u' by Fred, based on python-dev comments.]

Note that the use of None for NULL values of the Py_UNICODE* value is
still in; I'm not sure of the conclusion on that issue.

24 years agoSjoerd Mullender: cmp.py is obsolete...
Guido van Rossum [Fri, 28 Apr 2000 13:31:52 +0000 (13:31 +0000)]
Sjoerd Mullender: cmp.py is obsolete...

24 years agoMark Hammond: For Windows debug builds, we now only offer to dump
Guido van Rossum [Thu, 27 Apr 2000 23:44:15 +0000 (23:44 +0000)]
Mark Hammond: For Windows debug builds, we now only offer to dump
remaining object references if the environment variable PYTHONDUMPREFS
exists.  The default behaviour caused problems for background or
otherwise invisible processes that use the debug build of Python.

24 years agoDeviant1 didn't work as advertised
Jeremy Hylton [Thu, 27 Apr 2000 21:42:48 +0000 (21:42 +0000)]
Deviant1 didn't work as advertised

24 years agoadd list_contains and tuplecontains: efficient implementations of tp_contains
Jeremy Hylton [Thu, 27 Apr 2000 21:41:03 +0000 (21:41 +0000)]
add list_contains and tuplecontains: efficient implementations of tp_contains

24 years agoadd some more contains tests on the builtin types
Jeremy Hylton [Thu, 27 Apr 2000 21:40:08 +0000 (21:40 +0000)]
add some more contains tests on the builtin types

24 years agoSupport for the special macros used by the distutils documentation.
Fred Drake [Thu, 27 Apr 2000 21:27:49 +0000 (21:27 +0000)]
Support for the special macros used by the distutils documentation.

24 years agoMarc-Andre Lemburg:
Guido van Rossum [Thu, 27 Apr 2000 20:14:31 +0000 (20:14 +0000)]
Marc-Andre Lemburg:

Fixes a memory leak found by Fredrik Lundh.

24 years agoMarc-Andre Lemburg:
Guido van Rossum [Thu, 27 Apr 2000 20:14:13 +0000 (20:14 +0000)]
Marc-Andre Lemburg:

Doc strings can now be given as Unicode strings.

24 years agoMarc-Andre Lemburg:
Guido van Rossum [Thu, 27 Apr 2000 20:13:50 +0000 (20:13 +0000)]
Marc-Andre Lemburg:

Fixed a reference leak in the allocator.

Renamed utf8_string to _PyUnicode_AsUTF8String() and made
it external for use by other parts of the interpreter.

24 years agoMarc-Andre Lemburg:
Guido van Rossum [Thu, 27 Apr 2000 20:13:18 +0000 (20:13 +0000)]
Marc-Andre Lemburg:

Fixed a memory leak found by Fredrik Lundh.  Instead of
PyUnicode_AsUTF8String() we now use _PyUnicode_AsUTF8String() which
returns the string object without incremented refcount (and assures
that the so obtained object remains alive until the Unicode object is
garbage collected).

24 years agoAdded a note to the section on 'exec' about the need for a trailing newline
Greg Ward [Thu, 27 Apr 2000 18:32:02 +0000 (18:32 +0000)]
Added a note to the section on 'exec' about the need for a trailing newline
in certain circumstances.  (Apparently, this is a CPython problem.)

24 years agoAdded the "--root" option as a sort of meta-install-base; if supplied,
Greg Ward [Thu, 27 Apr 2000 01:56:38 +0000 (01:56 +0000)]
Added the "--root" option as a sort of meta-install-base; if supplied,
  it is forcibly prepended onto all installation directories, even if
  they are already absolute.
Added 'dump_dirs()' to clean up the debug output a bit.

24 years agoAdded 'change_root()' to forcibly slap a new root directory onto a pathname,
Greg Ward [Thu, 27 Apr 2000 01:53:46 +0000 (01:53 +0000)]
Added 'change_root()' to forcibly slap a new root directory onto a pathname,
even if it's already absolute.  Currently only implemented for Unix; I'm
not entirely sure of the right thing to do for DOS/Windows, and have no
clue what to do for Mac OS.

24 years agoAlmost ready for 1.6a2.
Jack Jansen [Wed, 26 Apr 2000 22:00:49 +0000 (22:00 +0000)]
Almost ready for 1.6a2.

24 years agoJack Jansen:
Guido van Rossum [Wed, 26 Apr 2000 20:40:13 +0000 (20:40 +0000)]
Jack Jansen:

This patch is a workaround for Macintosh, where the GUSI I/O library
(time, stat, etc) use the MacOS epoch of 1-Jan-1904 and the MSL C
library (ctime, localtime, etc) uses the (apparently ANSI standard)
epoch of 1-Jan-1900. Python programs see the MacOS epoch and we
convert values when needed.

24 years agopotentially useless optimization
Jeremy Hylton [Wed, 26 Apr 2000 20:39:20 +0000 (20:39 +0000)]
potentially useless optimization

The previous checkin (2.84) added a PyErr_Format call that made the
cost of raising an AttributeError much more expensive.  In general
this doesn't matter, except that checks for __init__ and
__del__ methods, where exceptions are caught and cleared in C, also
got much more expensive.

The fix is to split instance_getattr1 into two calls:

instance_getattr2 checks the instance and the class for the attribute
and returns it or returns NULL on error.  It does not raise an
exception.

instance_getattr1 does rexec checks, then calls instance_getattr2.  It
raises an exception if instance_getattr2 returns NULL.

PyInstance_New and instance_dealloc now call instance_getattr2
directly.

24 years agoMichael Hudson:
Guido van Rossum [Wed, 26 Apr 2000 20:34:28 +0000 (20:34 +0000)]
Michael Hudson:

This patch changes posixmodule.c:execv to

a) check for zero length args (does this to execve, too), raising
   ValueError.

b) raises more rational exceptions for various flavours of duff arguments.
   I *hate*
      TypeError: "illegal argument type for built-in operation"
   It has to be one of the most frustrating error messages ever.

24 years agoMichael Hudson fixes a case where execv() is called (for a test) with
Guido van Rossum [Wed, 26 Apr 2000 20:32:08 +0000 (20:32 +0000)]
Michael Hudson fixes a case where execv() is called (for a test) with
an empty argument list -- another patch he's checking in will make
this illegal (the first argument should always be the program name).

24 years agoAdded a "See also:" section that exhibits the \seerfc markup.
Fred Drake [Wed, 26 Apr 2000 18:20:04 +0000 (18:20 +0000)]
Added a "See also:" section that exhibits the \seerfc markup.

24 years agoDefine \seerfc within the seealso environment.
Fred Drake [Wed, 26 Apr 2000 18:13:58 +0000 (18:13 +0000)]
Define \seerfc within the seealso environment.

24 years agoref_module_index_helper(): Use "my" instead of "local".
Fred Drake [Wed, 26 Apr 2000 18:05:24 +0000 (18:05 +0000)]
ref_module_index_helper():  Use "my" instead of "local".

get_rfc_url():  New function; returns the URL for a numbered IETF RFC.

do_cmd_rfc():  Use get_rfc_url() instead of hard-coding in the HTML
               formatting.

do_cmd_seerfc():  New function.

do_env_definitions():  Small change to avoid "local".

24 years agoHacked things up a bit so that configuration variables are expanded
Greg Ward [Wed, 26 Apr 2000 02:38:01 +0000 (02:38 +0000)]
Hacked things up a bit so that configuration variables are expanded
in command-line options, and in two phases at that: first, we expand
'install_base' and 'install_platbase', and then the other 'install_*'
options.  This lets us do tricky stuff like
    install --prefix='/tmp$sys_prefix'
...oooh, neat.

Simplified 'select_scheme()' -- it's no longer responsible for expanding
config vars, tildes, etc.

Define installation-specific config vars in 'self.config_vars', rather than
in a local dictionary of one method.  Also factored '_expand_attrs()' out
of 'expand_dirs()' and added 'expand_basedirs()'.

Added a bunch of debugging output so I (and others) can judge the
success of this crazy scheme through direct feedback.

24 years agoHarry Henry Gebel: import exception classes.
Greg Ward [Wed, 26 Apr 2000 02:29:51 +0000 (02:29 +0000)]
Harry Henry Gebel: import exception classes.

24 years agoHarry Henry Gebel: add 'long_description' to DistributionMetadata.
Greg Ward [Wed, 26 Apr 2000 02:26:55 +0000 (02:26 +0000)]
Harry Henry Gebel: add 'long_description' to DistributionMetadata.

24 years agoSupply short form for --manifest-only (-o) and --force-manifest (-f)
Greg Ward [Wed, 26 Apr 2000 01:14:33 +0000 (01:14 +0000)]
Supply short form for --manifest-only (-o) and --force-manifest (-f)
options.

24 years agoHarry Henry Gebel:
Greg Ward [Wed, 26 Apr 2000 01:12:40 +0000 (01:12 +0000)]
Harry Henry Gebel:
Fix 'sdist.write_manifest()' to respect the value of dry_run.

24 years agoFix typo in last patch -- the symbol's name is MSG_DONWAIT, not
Guido van Rossum [Tue, 25 Apr 2000 21:53:58 +0000 (21:53 +0000)]
Fix typo in last patch -- the symbol's name is MSG_DONWAIT, not
MSG_DONTWAIT.  Reported by Fredrik Lundh.

24 years agoPatch by Charles G Waldman:
Guido van Rossum [Tue, 25 Apr 2000 21:34:53 +0000 (21:34 +0000)]
Patch by Charles G Waldman:

1)  Adds MSG_DONTWAIT if defined (I needed this)
2)  Spells "coreectly" correctly ;-)

24 years agoPatch inspired by Just van Rossum: on the Mac, in savefilename(), make
Guido van Rossum [Tue, 25 Apr 2000 21:13:24 +0000 (21:13 +0000)]
Patch inspired by Just van Rossum: on the Mac, in savefilename(), make
the path to save a relative path by prefixing it with os.sep (':').
Also fix an indent inconsistency in the same function.

24 years agoRemoved some extraneous and confusing parenthesized expressions.
Fred Drake [Tue, 25 Apr 2000 21:09:10 +0000 (21:09 +0000)]
Removed some extraneous and confusing parenthesized expressions.
Noted by Skip Montanaro <skip@mojam.com>.

24 years agoCharles G Waldman: Doing a PyObject_New then PyMem_DEL causes havoc if
Guido van Rossum [Tue, 25 Apr 2000 15:59:32 +0000 (15:59 +0000)]
Charles G Waldman: Doing a PyObject_New then PyMem_DEL causes havoc if
you are trying to use Py_TRACE_REFS.

24 years agoMichael Hudson:
Guido van Rossum [Tue, 25 Apr 2000 10:53:22 +0000 (10:53 +0000)]
Michael Hudson:

I think that after this patch, all objects in the os module (with names
that don't start with "_") that can have docstrings, do, on Linux at
least.

Also fix a nit in one of my spawn* docstrings.

24 years agovalidate_arglist(): Re-written to reflect extended call syntax.
Fred Drake [Tue, 25 Apr 2000 04:14:46 +0000 (04:14 +0000)]
validate_arglist():  Re-written to reflect extended call syntax.

validate_numnodes():  Added comment to explain the sometimes idiomatic
        usage pattern.

24 years agoMark Hammond: Added dependency of winsound project on python16
Guido van Rossum [Tue, 25 Apr 2000 03:24:06 +0000 (03:24 +0000)]
Mark Hammond: Added dependency of winsound project on python16
project.  [However I didn't add the other changes in his patch, which
were just taking away the source code control stuff -- this doesn't
hurt and would come back as soon as I make another change. --GvR]

24 years agoAdded section headers for "Extending the Distutils" section (just
Greg Ward [Tue, 25 Apr 2000 02:57:36 +0000 (02:57 +0000)]
Added section headers for "Extending the Distutils" section (just
a reminder to myself).

24 years agoBumped version to 0.8.2.
Greg Ward [Tue, 25 Apr 2000 01:55:58 +0000 (01:55 +0000)]
Bumped version to 0.8.2.

24 years agoHarry Henry Gebel:
Greg Ward [Tue, 25 Apr 2000 01:38:20 +0000 (01:38 +0000)]
Harry Henry Gebel:
Adds bztar format to generate .tar.bz2 tarballs

Uses the -f argument to overright old tarballs automatically, I am
assuming that if the old tarball was wanted it would have been moved or
else the version number would have been changed.

Uses the -9 argument to bzip2 and gzip to use maximum
compression. Compress uses the maximum compression by default.

Tests for correct value for the 'compress' argument of make_tarball. This
is one less place for someone adding new compression programs to forget to
change.

24 years agoLyle Johnson: fixed broken logic in 'native_path()'.
Greg Ward [Tue, 25 Apr 2000 01:33:11 +0000 (01:33 +0000)]
Lyle Johnson: fixed broken logic in 'native_path()'.

24 years agoChristian Tismer -- total rewrite on trashcan code.
Guido van Rossum [Mon, 24 Apr 2000 15:40:53 +0000 (15:40 +0000)]
Christian Tismer -- total rewrite on trashcan code.

Improvements:
- does no longer need any extra memory
- has no relationship to tstate
- works in debug mode
- can easily be modified for free threading (hi Greg:)

Side effects:
Trashcan does change the order of object destruction.
Prevending that would be quite an immense effort, as
my attempts have shown. This version works always
the same, with debug mode or not. The slightly
changed destruction order should therefore be no problem.

Algorithm:
While the old idea of delaying the destruction of some
obejcts at a certain recursion level was kept, we now
no longer aloocate an object to hold these objects.
The delayed objects are instead chained together
via their ob_type field. The type is encoded via
ob_refcnt. When it comes to the destruction of the
chain of waiting objects, the topmost object is popped
off the chain and revived with type and refcount 1,
then it gets a normal Py_DECREF.

I am confident that this solution is near optimum
for minimizing side effects and code bloat.

24 years agoAdd definition of socklen_t so that socketmodule.c will compile on Windows.
Guido van Rossum [Mon, 24 Apr 2000 15:37:34 +0000 (15:37 +0000)]
Add definition of socklen_t so that socketmodule.c will compile on Windows.

24 years agoJack Jansen: The GUSI 2.0 I/O library used on the Mac uses the
Guido van Rossum [Mon, 24 Apr 2000 15:16:03 +0000 (15:16 +0000)]
Jack Jansen: The GUSI 2.0 I/O library used on the Mac uses the
socklen_t (unsigned int) for most size parameters.  Apparently this is
part of the UNIX 98 standard.

[GvR: the changes to configure.in etc. that I just checked in make
sure that socklen_t is defined everywhere, so I deleted the little
part of Jack's mod to define socklen_t if not in GUSI2.  I suppose I
will have to add it to the Windows config.h in a minute.]

24 years agoJack Jansen: The GUSI 2.0 I/O library (which is used on the Mac)
Guido van Rossum [Mon, 24 Apr 2000 15:12:54 +0000 (15:12 +0000)]
Jack Jansen: The GUSI 2.0 I/O library (which is used on the Mac)
doesn't use the special header file for select anymore.

24 years agoAdded tests for socklen_t
Guido van Rossum [Mon, 24 Apr 2000 15:12:04 +0000 (15:12 +0000)]
Added tests for socklen_t

24 years agoJack Jansen: The new version of the GUSI i/o library on the Macintosh
Guido van Rossum [Mon, 24 Apr 2000 15:08:18 +0000 (15:08 +0000)]
Jack Jansen: The new version of the GUSI i/o library on the Macintosh
has a few slightly different calls from the old one.

24 years agoJack Jansen: Posix threads are now supported on the Macintosh too.
Guido van Rossum [Mon, 24 Apr 2000 15:06:51 +0000 (15:06 +0000)]
Jack Jansen: Posix threads are now supported on the Macintosh too.

24 years agoAdded site-packages. (Sorry, forgot who submitted this patch.)
Guido van Rossum [Mon, 24 Apr 2000 14:57:21 +0000 (14:57 +0000)]
Added site-packages.  (Sorry, forgot who submitted this patch.)

24 years agoJack Jansen: A few new types needed by new API calls.
Guido van Rossum [Mon, 24 Apr 2000 14:56:00 +0000 (14:56 +0000)]
Jack Jansen: A few new types needed by new API calls.

24 years agoOops -- Mark forgot to add "0x" to the /base: argument.
Guido van Rossum [Mon, 24 Apr 2000 14:17:17 +0000 (14:17 +0000)]
Oops -- Mark forgot to add "0x" to the /base: argument.

24 years agoFix to previous patch: send the request data when it's provided
Andrew M. Kuchling [Mon, 24 Apr 2000 14:17:06 +0000 (14:17 +0000)]
Fix to previous patch: send the request data when it's provided

24 years agoAdded a provision to stop all threads before exiting from the test:
Guido van Rossum [Mon, 24 Apr 2000 14:07:03 +0000 (14:07 +0000)]
Added a provision to stop all threads before exiting from the test:
the change to regrtest.py to unload all newly imported modules did
something bad to the threads -- and I realized that they would never
stop!

24 years agoRemove Windows line endings.
Guido van Rossum [Mon, 24 Apr 2000 14:02:15 +0000 (14:02 +0000)]
Remove Windows line endings.

24 years agoFix spelling error and remove Windows line endings.
Guido van Rossum [Mon, 24 Apr 2000 14:01:51 +0000 (14:01 +0000)]
Fix spelling error and remove Windows line endings.

24 years agoChanges by Mark Hammond to ignore more by-products of the build.
Guido van Rossum [Mon, 24 Apr 2000 13:32:05 +0000 (13:32 +0000)]
Changes by Mark Hammond to ignore more by-products of the build.

24 years agoSecurity patch for Unix by Chris McDonough.
Guido van Rossum [Mon, 24 Apr 2000 13:28:02 +0000 (13:28 +0000)]
Security patch for Unix by Chris McDonough.

This uses the same precautions when trying to find a temporary
directory as when the actual tempfile is created (using O_CREAT and
O_EXCL).  On non-posix platforms, nothing is changed.

24 years agoDon't build the _tkinter project from Build, only the one from Extensions:Imaging...
Jack Jansen [Sun, 23 Apr 2000 22:13:15 +0000 (22:13 +0000)]
Don't build the _tkinter project from Build, only the one from Extensions:Imaging, which now drops its resulting .slb into the PlugIns folder.

24 years agoTk 8.3.0 resources.
Jack Jansen [Sun, 23 Apr 2000 22:12:13 +0000 (22:12 +0000)]
Tk 8.3.0 resources.

24 years agoFixed to work with Tcl/Tk 8.3.0, at least, my modified copy of it.
Jack Jansen [Sun, 23 Apr 2000 22:11:36 +0000 (22:11 +0000)]
Fixed to work with Tcl/Tk 8.3.0, at least, my modified copy of it.