]> granicus.if.org Git - python/log
python
28 years agoRemove sys_* defines that are internal only and about to disappear
Guido van Rossum [Mon, 5 May 1997 20:46:18 +0000 (20:46 +0000)]
Remove sys_* defines that are internal only and about to disappear

28 years agoRemove 2 out of 3 __FreeBSD__ tests.
Guido van Rossum [Mon, 5 May 1997 15:03:26 +0000 (15:03 +0000)]
Remove 2 out of 3 __FreeBSD__ tests.
These are no longer needed as of FreeBSD 2.0.5, according to
Thomas Gellekum <tg@ihf.rwth-aachen.de>.

28 years agoMisc.__init__(): Removed method, replaced with class attribute (which
Fred Drake [Sat, 3 May 1997 04:16:23 +0000 (04:16 +0000)]
Misc.__init__():  Removed method, replaced with class attribute (which
was all that the method set anyway).  Removed calls to the
constructor.  This reduces the number of Python function calls
per widget construction by one, for every widget construction.

28 years agoFinally deleted this obsolete crud.
Guido van Rossum [Fri, 2 May 1997 04:01:08 +0000 (04:01 +0000)]
Finally deleted this obsolete crud.

28 years agoSeveral oopsies -- Py_ALLOBJECTS_H -> Py_PYTHON_H, temporarily removed
Guido van Rossum [Fri, 2 May 1997 04:00:11 +0000 (04:00 +0000)]
Several oopsies -- Py_ALLOBJECTS_H -> Py_PYTHON_H, temporarily removed
pystate.h (to be restored later when that code is debugged), removed
accessobject.h.

28 years agoMoved allobjects.h to Python.h (without rename2.h).
Guido van Rossum [Fri, 2 May 1997 03:55:52 +0000 (03:55 +0000)]
Moved allobjects.h to Python.h (without rename2.h).
allobjects.h disappears -- old-style extensions must include Python.h
and rename2.h.

28 years agoQuickly renamed the last directory.
Guido van Rossum [Fri, 2 May 1997 03:12:38 +0000 (03:12 +0000)]
Quickly renamed the last directory.

28 years agoAdd detach call so threads are GC'ed.
Guido van Rossum [Wed, 30 Apr 1997 19:59:22 +0000 (19:59 +0000)]
Add detach call so threads are GC'ed.

28 years agoAdd PYTHONHOME to the usage message.
Guido van Rossum [Wed, 30 Apr 1997 19:48:59 +0000 (19:48 +0000)]
Add PYTHONHOME to the usage message.

28 years agoOne copy is enough; we already had resource.c.
Guido van Rossum [Wed, 30 Apr 1997 19:43:15 +0000 (19:43 +0000)]
One copy is enough; we already had resource.c.

28 years agoSome updates (AMK at work, added resource.c).
Guido van Rossum [Wed, 30 Apr 1997 19:41:48 +0000 (19:41 +0000)]
Some updates (AMK at work, added resource.c).

28 years agoAdd zlib
Guido van Rossum [Wed, 30 Apr 1997 19:40:10 +0000 (19:40 +0000)]
Add zlib

28 years agoUpdated web ref and version#. Folded some long lines.
Guido van Rossum [Wed, 30 Apr 1997 19:39:21 +0000 (19:39 +0000)]
Updated web ref and version#.  Folded some long lines.

28 years agoAvoid some potential (though unlikely) sprintf buffer overflows.
Guido van Rossum [Wed, 30 Apr 1997 19:07:54 +0000 (19:07 +0000)]
Avoid some potential (though unlikely) sprintf buffer overflows.

28 years agoAvoid sprintf buffer overflow if more than 9999 arguments.
Guido van Rossum [Wed, 30 Apr 1997 19:00:27 +0000 (19:00 +0000)]
Avoid sprintf buffer overflow if more than 9999 arguments.

28 years agozlib by AMK
Guido van Rossum [Wed, 30 Apr 1997 18:12:27 +0000 (18:12 +0000)]
zlib by AMK

28 years agoAdding Jeremy Hylton's gzip module.
Guido van Rossum [Wed, 30 Apr 1997 16:04:57 +0000 (16:04 +0000)]
Adding Jeremy Hylton's gzip module.
This requires Andrew Kuchling's zlib extension module.
It still needs some doc strings.

28 years agoThe usual.
Guido van Rossum [Tue, 29 Apr 1997 22:15:33 +0000 (22:15 +0000)]
The usual.

28 years agoGet rid of the "-n32" options for SGI IRIX 6.x. Instead, substitute
Guido van Rossum [Tue, 29 Apr 1997 22:14:56 +0000 (22:14 +0000)]
Get rid of the "-n32" options for SGI IRIX 6.x.  Instead, substitute
the value at configure time of the SGI_ABI environment variable.  See
abi(5).

28 years agoThe usual.
Guido van Rossum [Tue, 29 Apr 1997 21:49:50 +0000 (21:49 +0000)]
The usual.

28 years agoAdded test for pthread.h.
Guido van Rossum [Tue, 29 Apr 1997 21:48:51 +0000 (21:48 +0000)]
Added test for pthread.h.

28 years agoUgly hack for SGI IRIX 6.2. Apparently _POSIX_THREADS is defined even
Guido van Rossum [Tue, 29 Apr 1997 21:48:34 +0000 (21:48 +0000)]
Ugly hack for SGI IRIX 6.2.  Apparently _POSIX_THREADS is defined even
when the pthread package is not installed.  configure knows better, so
#undef _POSIX_THREADS when pthread.h does not exist.

28 years agoKeep gcc -Wall happy.
Guido van Rossum [Tue, 29 Apr 1997 21:34:16 +0000 (21:34 +0000)]
Keep gcc -Wall happy.

28 years agoAnother directory quickly renamed.
Guido van Rossum [Tue, 29 Apr 1997 21:03:06 +0000 (21:03 +0000)]
Another directory quickly renamed.

28 years agoOne more inittab.
Guido van Rossum [Tue, 29 Apr 1997 20:46:45 +0000 (20:46 +0000)]
One more inittab.

28 years agoOops, forgot one: inittab.
Guido van Rossum [Tue, 29 Apr 1997 20:42:30 +0000 (20:42 +0000)]
Oops, forgot one: inittab.

28 years agoRenamed inittab.
Guido van Rossum [Tue, 29 Apr 1997 20:31:59 +0000 (20:31 +0000)]
Renamed inittab.

28 years agoOops, forgot one: inittab.
Guido van Rossum [Tue, 29 Apr 1997 20:24:10 +0000 (20:24 +0000)]
Oops, forgot one: inittab.

28 years agoAdded inittab.
Guido van Rossum [Tue, 29 Apr 1997 20:22:47 +0000 (20:22 +0000)]
Added inittab.

28 years agoQuickly renamed the remaining files -- this directory is done.
Guido van Rossum [Tue, 29 Apr 1997 20:08:16 +0000 (20:08 +0000)]
Quickly renamed the remaining files -- this directory is done.

28 years agoQuickly renamed.
Guido van Rossum [Tue, 29 Apr 1997 18:33:38 +0000 (18:33 +0000)]
Quickly renamed.

28 years agoRemove err_input from rename list -- it is a static inside errors.c.
Guido van Rossum [Tue, 29 Apr 1997 18:25:32 +0000 (18:25 +0000)]
Remove err_input from rename list -- it is a static inside errors.c.

28 years agoQuickly renamed. Also removed the long comment explaining why this is
Guido van Rossum [Tue, 29 Apr 1997 18:22:47 +0000 (18:22 +0000)]
Quickly renamed.  Also removed the long comment explaining why this is
better than the old error API.

28 years agoRemove renaming instructions for ANY -- this is not renamed in
Guido van Rossum [Tue, 29 Apr 1997 18:19:10 +0000 (18:19 +0000)]
Remove renaming instructions for ANY -- this is not renamed in
mymalloc.h.  (Since it's a macro, I don't care much.  It is used
internally only; others can use void *.)

28 years agoQuickly renamed.
Guido van Rossum [Tue, 29 Apr 1997 18:18:01 +0000 (18:18 +0000)]
Quickly renamed.

28 years agoTrack updates in rename2.h.
Guido van Rossum [Tue, 29 Apr 1997 16:27:09 +0000 (16:27 +0000)]
Track updates in rename2.h.

28 years agoAdded new name for inittab!
Guido van Rossum [Tue, 29 Apr 1997 16:23:44 +0000 (16:23 +0000)]
Added new name for inittab!

28 years agoRemove macros that are only used for cgensupport.[ch].
Guido van Rossum [Tue, 29 Apr 1997 16:21:39 +0000 (16:21 +0000)]
Remove macros that are only used for cgensupport.[ch].
Fixed typo in PyArg_VaParse (not PyArgs_*).

28 years agoMoved cgensupport.h to Modules (awaiting oblivion).
Guido van Rossum [Tue, 29 Apr 1997 16:08:53 +0000 (16:08 +0000)]
Moved cgensupport.h to Modules (awaiting oblivion).

28 years agoAdded -I$(srcdir) to line for glmodule so we can move cgensupport.h here.
Guido van Rossum [Tue, 29 Apr 1997 16:07:45 +0000 (16:07 +0000)]
Added -I$(srcdir) to line for glmodule so we can move cgensupport.h here.

28 years agoMoved to ../Modules.
Guido van Rossum [Tue, 29 Apr 1997 15:50:32 +0000 (15:50 +0000)]
Moved to ../Modules.

28 years agoChange the exception objects to have the string value "os.error"
Guido van Rossum [Tue, 29 Apr 1997 15:49:54 +0000 (15:49 +0000)]
Change the exception objects to have the string value "os.error"
instead "posix.error" or "nt.error".

28 years agoAdapt Mac specific code to new universal headers (I think -- this is
Guido van Rossum [Tue, 29 Apr 1997 15:49:04 +0000 (15:49 +0000)]
Adapt Mac specific code to new universal headers (I think -- this is
Jack's code).

28 years agoHm. What was previously checked in was the edited *output* of the old
Guido van Rossum [Tue, 29 Apr 1997 15:46:43 +0000 (15:46 +0000)]
Hm.  What was previously checked in was the edited *output* of the old
cgen.py.  Now that cgen.py and cstubs have been quickly renamed, check
in the actual output.  This has some "old-style" names left in
(getilongarg etc.) but these are now take care of by macros in
cgensupport.h (which is now specific to glmodule.c).

28 years agoMoved here from ../Python and quickly renamed.
Guido van Rossum [Tue, 29 Apr 1997 15:43:55 +0000 (15:43 +0000)]
Moved here from ../Python and quickly renamed.

28 years agoRemoved cgensupport.[co] (to ../Modules).
Guido van Rossum [Tue, 29 Apr 1997 15:42:53 +0000 (15:42 +0000)]
Removed cgensupport.[co] (to ../Modules).

28 years agoAdded cgensupport.o.
Guido van Rossum [Tue, 29 Apr 1997 15:41:53 +0000 (15:41 +0000)]
Added cgensupport.o.

28 years agoAdded cgensupport.c to Setup line for gl module.
Guido van Rossum [Tue, 29 Apr 1997 15:41:26 +0000 (15:41 +0000)]
Added cgensupport.c to Setup line for gl module.
Addeed Andrew Kuchling's zlib module.

28 years agoAdded Jeremy's resource module.
Guido van Rossum [Tue, 29 Apr 1997 15:39:45 +0000 (15:39 +0000)]
Added Jeremy's resource module.

28 years agoQuickly renamed.
Guido van Rossum [Tue, 29 Apr 1997 15:39:28 +0000 (15:39 +0000)]
Quickly renamed.

28 years agoAdded Andrew Kuchling's zlib module.
Guido van Rossum [Tue, 29 Apr 1997 15:38:09 +0000 (15:38 +0000)]
Added Andrew Kuchling's zlib module.

28 years agoMoved rename2's macros relevant to this module here and added comment
Guido van Rossum [Tue, 29 Apr 1997 15:35:28 +0000 (15:35 +0000)]
Moved rename2's macros relevant to this module here and added comment
about the file's obsolescence.

28 years agoQuickly renamed.
Guido van Rossum [Tue, 29 Apr 1997 14:49:28 +0000 (14:49 +0000)]
Quickly renamed.

28 years agoTransformed comments to doc strings.
Guido van Rossum [Tue, 29 Apr 1997 14:45:19 +0000 (14:45 +0000)]
Transformed comments to doc strings.
Added symlinks option to copytree.

28 years agoReindented at 4 spaces.
Guido van Rossum [Tue, 29 Apr 1997 14:06:46 +0000 (14:06 +0000)]
Reindented at 4 spaces.

28 years agoAdd feature to copy(), copy2(): dst may be a directory.
Guido van Rossum [Tue, 29 Apr 1997 14:06:05 +0000 (14:06 +0000)]
Add feature to copy(), copy2(): dst may be a directory.
Remove unneeded check for '.' / '..' from copytree().
Add some comments.

28 years agoImprovements to copyfile(): open the files in binary mode, and close
Guido van Rossum [Tue, 29 Apr 1997 13:08:15 +0000 (13:08 +0000)]
Improvements to copyfile(): open the files in binary mode, and close
them in a finally clause.

28 years agoNote that passing a filename to uu.{en,de}code() is deprecated.
Guido van Rossum [Sun, 27 Apr 1997 21:29:51 +0000 (21:29 +0000)]
Note that passing a filename to uu.{en,de}code() is deprecated.

28 years agoAdded fnmatch, base64 and quopri, received from Andrew Kuchling.
Guido van Rossum [Sun, 27 Apr 1997 21:25:52 +0000 (21:25 +0000)]
Added fnmatch, base64 and quopri, received from Andrew Kuchling.

28 years agoRestore two features of the original 1.4 pickle:
Guido van Rossum [Fri, 25 Apr 1997 19:52:29 +0000 (19:52 +0000)]
Restore two features of the original 1.4 pickle:

- which_module() search __main__ last;

- load_inst() no longer checks that the classname really refers to a class.

28 years agoAlas, I have to restore 'marshal', since it is needed by the new
Guido van Rossum [Fri, 25 Apr 1997 19:10:15 +0000 (19:10 +0000)]
Alas, I have to restore 'marshal', since it is needed by the new
cPickle-compatible pickle, and pickle must be importable in restricted
mode.  I guess I'll have to make marshal safe.

28 years agoNow that the string-sig has settled on r"obin" strings, restrict the
Guido van Rossum [Fri, 25 Apr 1997 17:32:00 +0000 (17:32 +0000)]
Now that the string-sig has settled on r"obin" strings, restrict the
<letter><string> notation to 'r' and 'R'.

28 years agoExpand one level of symbolic link in sys.argv[0] before inserting its
Guido van Rossum [Fri, 25 Apr 1997 15:38:31 +0000 (15:38 +0000)]
Expand one level of symbolic link in sys.argv[0] before inserting its
dirname in sys.path.  This means that you can create a symbolic link
foo in /usr/local/bin pointing to /usr/yourname/src/foo/foo.py, and
then invoking foo will insert /usr/yourname/src/foo in sys.path, not
/usr/local/bin.  This makes it easier to have multifile programs
(before, the program would have to do an os.readlink(sys.argv[0])
itself and insert the resulting directory in sys.path -- Grail does
this).

Note that the expansion is only used for sys.path; sys.argv[0] is
still the original, unadorned filename (/usr/local/bin/foo in the
example).

28 years agoUnroll the for loop used for building python, so the first three
Guido van Rossum [Wed, 23 Apr 1997 15:14:24 +0000 (15:14 +0000)]
Unroll the for loop used for building python, so the first three
subdirectories can be made in parallel (unfortunately, Modules has to
depend on all three).

28 years agoChange inspired by Tommy Burnette to add an interface to get stderr, too.
Guido van Rossum [Mon, 21 Apr 1997 14:15:55 +0000 (14:15 +0000)]
Change inspired by Tommy Burnette to add an interface to get stderr, too.

28 years agoFix a couple of glitches identified by Greg Stein.
Fred Drake [Fri, 18 Apr 1997 13:54:13 +0000 (13:54 +0000)]
Fix a couple of glitches identified by Greg Stein.

28 years ago_safe_repr(): Make the context parameter required; ok since it's only for
Fred Drake [Wed, 16 Apr 1997 18:55:58 +0000 (18:55 +0000)]
_safe_repr():  Make the context parameter required; ok since it's only for
internal use.  Make sure the maxlevels and level parameters get
passed to recursive invocations.

28 years agoMuchly changed and improved pprint.py:
Fred Drake [Wed, 16 Apr 1997 16:59:30 +0000 (16:59 +0000)]
Muchly changed and improved pprint.py:

- handles recursive data structures
- formatting based on a PrettyPrinter object
- allows a maximum nesting depth to be specified
- provides safe repr()-like function which does not pretty-print

28 years agospliturl() should not throw away everything past first newline
Guido van Rossum [Wed, 16 Apr 1997 15:17:06 +0000 (15:17 +0000)]
spliturl() should not throw away everything past first newline

28 years agoRemoved pprint.py.
Fred Drake [Wed, 16 Apr 1997 04:47:57 +0000 (04:47 +0000)]
Removed pprint.py.

Removed pprint.py from the README; it's now in the standard lib.

28 years agoReindented with 4 spaces.
Guido van Rossum [Wed, 16 Apr 1997 02:47:12 +0000 (02:47 +0000)]
Reindented with 4 spaces.

28 years agoRewrite parsesequence() to emulate MH without invoking pick.
Guido van Rossum [Wed, 16 Apr 1997 02:45:08 +0000 (02:45 +0000)]
Rewrite parsesequence() to emulate MH without invoking pick.
Test it extensively by using pick.

28 years agoChecking in a copy of Fred Drake's data structure pretty-printer
Guido van Rossum [Wed, 16 Apr 1997 00:49:59 +0000 (00:49 +0000)]
Checking in a copy of Fred Drake's data structure pretty-printer
(with some slight formatting changes).

Feature requests:

- Make it a class (everything should be a class);

- support recursive data structures (like pp.py on the ftp contrib site).

28 years agoOK, ready to make 'assert' a keyword (instead of '__assert__').
Guido van Rossum [Wed, 16 Apr 1997 00:34:46 +0000 (00:34 +0000)]
OK, ready to make 'assert' a keyword (instead of '__assert__').

28 years agoUse uuencoded test images.
Guido van Rossum [Wed, 16 Apr 1997 00:30:45 +0000 (00:30 +0000)]
Use uuencoded test images.

28 years agoSoft failure for Win32 and Mac platforms. Less output unless verbose.
Guido van Rossum [Wed, 16 Apr 1997 00:29:59 +0000 (00:29 +0000)]
Soft failure for Win32 and Mac platforms.  Less output unless verbose.

28 years agoSoft failure for Win32 platform.
Guido van Rossum [Wed, 16 Apr 1997 00:29:15 +0000 (00:29 +0000)]
Soft failure for Win32 platform.

28 years agoNo need to define assert, it's built in.
Guido van Rossum [Wed, 16 Apr 1997 00:27:45 +0000 (00:27 +0000)]
No need to define assert, it's built in.

28 years agoAlways use spaces for indentation.
Fred Drake [Tue, 15 Apr 1997 14:15:23 +0000 (14:15 +0000)]
Always use spaces for indentation.

Added pformat() function:  formats object to a string representation with
no trailing newline; returns the string.

28 years agoPatch by Craig McPheeters to clean up the back-references to widgets
Guido van Rossum [Mon, 14 Apr 1997 13:30:24 +0000 (13:30 +0000)]
Patch by Craig McPheeters to clean up the back-references to widgets
contained in commands created by those same widgets.

28 years agoRemove Digital Creations copyright (Jim sez it's okay).
Guido van Rossum [Fri, 11 Apr 1997 22:31:56 +0000 (22:31 +0000)]
Remove Digital Creations copyright (Jim sez it's okay).

28 years agoCatch and report ValueError raised by strftime.
Guido van Rossum [Fri, 11 Apr 1997 22:26:42 +0000 (22:26 +0000)]
Catch and report ValueError raised by strftime.

28 years agoOK, I lied. On Windows, _IOLBF seems to be the same as full
Guido van Rossum [Fri, 11 Apr 1997 22:19:12 +0000 (22:19 +0000)]
OK, I lied.  On Windows, _IOLBF seems to be the same as full
buffering, so to get the normal behavior back, I set it to
unbuffered.

28 years agoChange in when and how stdin and stdout are set to line-buffering.
Guido van Rossum [Fri, 11 Apr 1997 21:57:53 +0000 (21:57 +0000)]
Change in when and how stdin and stdout are set to line-buffering.
This used to be done whenever stdin was interactive.  Now we only do
it when the -i flag is given.  Also (and this is the real reason for
this fix) we explicitly allocate a buffer -- this seems to be
necessary on Windows.

28 years agoKeep Microsoft VC happy.
Guido van Rossum [Fri, 11 Apr 1997 20:44:04 +0000 (20:44 +0000)]
Keep Microsoft VC happy.

28 years agoKeep gcc -Wall and Microsoft VC happy.
Guido van Rossum [Fri, 11 Apr 1997 20:37:35 +0000 (20:37 +0000)]
Keep gcc -Wall and Microsoft VC happy.

28 years agoRemoved two unused static function: string_addsep() and
Barry Warsaw [Fri, 11 Apr 1997 20:27:03 +0000 (20:27 +0000)]
Removed two unused static function: string_addsep() and
string_append().  These must be artifacts of GvR's rewrite.

Fixed some typos in the leading comment (and re-filled the
paragraphs).

Hope you don't mind, Guido.

28 years agoMy own patch: support writable 'softspace' attribute.
Guido van Rossum [Fri, 11 Apr 1997 19:56:06 +0000 (19:56 +0000)]
My own patch: support writable 'softspace' attribute.

28 years ago(Jack:) On the Mac, don't automatically enable dynamic loading.
Guido van Rossum [Fri, 11 Apr 1997 19:22:06 +0000 (19:22 +0000)]
(Jack:) On the Mac, don't automatically enable dynamic loading.

28 years ago(Jack:) Don't define TRUE and FALSE if already defined.
Guido van Rossum [Fri, 11 Apr 1997 19:19:46 +0000 (19:19 +0000)]
(Jack:) Don't define TRUE and FALSE if already defined.

28 years ago(Jack:) On the Mac, use standard strerror() if using MSL C-library.
Guido van Rossum [Fri, 11 Apr 1997 19:18:23 +0000 (19:18 +0000)]
(Jack:) On the Mac, use standard strerror() if using MSL C-library.

28 years ago(Jack:) On the Mac, give syntax error on \r.
Guido van Rossum [Fri, 11 Apr 1997 19:16:25 +0000 (19:16 +0000)]
(Jack:) On the Mac, give syntax error on \r.

28 years ago(Jack:) Align mapping entries to 4-words if USE_CACHE_ALIGNED is defined.
Guido van Rossum [Fri, 11 Apr 1997 19:14:07 +0000 (19:14 +0000)]
(Jack:) Align mapping entries to 4-words if USE_CACHE_ALIGNED is defined.

28 years ago(Jack:) fopen arg typo (?) "rw" changed to "rb".
Guido van Rossum [Fri, 11 Apr 1997 19:12:20 +0000 (19:12 +0000)]
(Jack:) fopen arg typo (?) "rw" changed to "rb".

28 years ago(Jack:) Mac only: get GUSI errno.h values too.
Guido van Rossum [Fri, 11 Apr 1997 19:11:25 +0000 (19:11 +0000)]
(Jack:) Mac only: get GUSI errno.h values too.

28 years ago(Jack+Guido:) interpret ../ in basejoin() according to RFC1808.
Guido van Rossum [Fri, 11 Apr 1997 19:09:51 +0000 (19:09 +0000)]
(Jack+Guido:) interpret ../ in basejoin() according to RFC1808.

28 years agoOpen files in binary mode.
Guido van Rossum [Fri, 11 Apr 1997 19:01:48 +0000 (19:01 +0000)]
Open files in binary mode.

28 years ago(Jack:) Better MacOS support.
Guido van Rossum [Fri, 11 Apr 1997 19:00:53 +0000 (19:00 +0000)]
(Jack:) Better MacOS support.

28 years ago(Jack:) Recognize PNG files.
Guido van Rossum [Fri, 11 Apr 1997 18:59:38 +0000 (18:59 +0000)]
(Jack:) Recognize PNG files.

28 years agoRemove the Emacs shell-script line. It's not a shell script.
Guido van Rossum [Fri, 11 Apr 1997 18:42:45 +0000 (18:42 +0000)]
Remove the Emacs shell-script line.  It's not a shell script.