]> granicus.if.org Git - python/log
python
28 years agoGrandly renamed.
Barry Warsaw [Wed, 11 Dec 1996 21:33:16 +0000 (21:33 +0000)]
Grandly renamed.

Note that since I have no idea how to test this, I didn't write a test
case.  It does seem to at least compile on my system though.

28 years agoBe more careful with the shuffling of stdout.
Guido van Rossum [Wed, 11 Dec 1996 16:54:54 +0000 (16:54 +0000)]
Be more careful with the shuffling of stdout.

28 years agoRenamed.
Barry Warsaw [Wed, 11 Dec 1996 16:54:40 +0000 (16:54 +0000)]
Renamed.

28 years agoOutput of the nis and pwd module tests
Barry Warsaw [Wed, 11 Dec 1996 16:54:15 +0000 (16:54 +0000)]
Output of the nis and pwd module tests

28 years agoTest of the pwd module
Barry Warsaw [Wed, 11 Dec 1996 16:53:51 +0000 (16:53 +0000)]
Test of the pwd module

28 years agoAdded test_pwd
Barry Warsaw [Wed, 11 Dec 1996 16:52:56 +0000 (16:52 +0000)]
Added test_pwd

28 years agoRewrite without using try-except to break out of two loops.
Guido van Rossum [Wed, 11 Dec 1996 16:28:30 +0000 (16:28 +0000)]
Rewrite without using try-except to break out of two loops.

28 years agoJust test one key/value pair for one NIS map. I.e. don't test them
Barry Warsaw [Wed, 11 Dec 1996 16:07:30 +0000 (16:07 +0000)]
Just test one key/value pair for one NIS map.  I.e. don't test them
all because it can take a really long time.

28 years agotest of the nis module
Barry Warsaw [Wed, 11 Dec 1996 01:01:38 +0000 (01:01 +0000)]
test of the nis module

28 years agoadded test_nis
Barry Warsaw [Wed, 11 Dec 1996 01:01:09 +0000 (01:01 +0000)]
added test_nis

28 years agocat and puste errors
Barry Warsaw [Wed, 11 Dec 1996 01:00:46 +0000 (01:00 +0000)]
cat and puste errors

28 years agonis_maplist(): Use check of yp_get_default_domain() return value
Barry Warsaw [Wed, 11 Dec 1996 00:29:14 +0000 (00:29 +0000)]
nis_maplist(): Use check of yp_get_default_domain() return value
that's used in other parts of this module.

nis_maps(): use PyArg_NoArgs().

28 years agoRenamed, and bug fixed:
Barry Warsaw [Wed, 11 Dec 1996 00:15:58 +0000 (00:15 +0000)]
Renamed, and bug fixed:

Two interesting problems in nis_maplist().  First, it is possible that
clnt_create() will return NULL.  This was being caught, but no Python
error was being set.  I use clnt_spcreateerror() to generate the value
of the exception.

But why would clnt_create() fail?  It's because no server was being
found.  And why was this?  It was because nis_maplist() tried only to
get the NIS master for the first map in the aliases list, which is
passwd.byname, and guess what?  That's the one NIS map CNRI does *not*
export!  So the yp_master() call was failing to return a valid
server.  I now cycle through all the map aliases until I find a valid
master.  If not, a different exception is set.

I'm not sure this is the completely correct way to do all this, but
short of rewriting the entire nismodule.c (to expose the proper API to
Python), it should do the trick.

28 years agoAdded new quicksort implementation, tailored to sorting arrays of
Guido van Rossum [Tue, 10 Dec 1996 23:55:39 +0000 (23:55 +0000)]
Added new quicksort implementation, tailored to sorting arrays of
object pointers.  Should be a bit faster than the C library's qsort(),
and doesn't have the prohibition on recursion that Solaris qsort() has
in the threaded version of their C library.

Thanks to discussions with Tim Peters.

28 years agoRenamed.
Barry Warsaw [Tue, 10 Dec 1996 23:23:01 +0000 (23:23 +0000)]
Renamed.

Note that there is no test suite for this module, and I don't plan to
write one just now.

28 years agoTest output files in their new location
Barry Warsaw [Tue, 10 Dec 1996 23:20:09 +0000 (23:20 +0000)]
Test output files in their new location

28 years agoDirectory for test output files: Output => output
Barry Warsaw [Tue, 10 Dec 1996 23:19:14 +0000 (23:19 +0000)]
Directory for test output files: Output => output

28 years agoWhen run as a script, runs each test and sends results to stdout
Barry Warsaw [Tue, 10 Dec 1996 23:10:39 +0000 (23:10 +0000)]
When run as a script, runs each test and sends results to stdout
(i.e. this restores the old functionality).

Note that if a test couldn't be imported, it is just ignored (and no
warning is printed).

28 years agoNew regression testing harness.
Barry Warsaw [Tue, 10 Dec 1996 19:51:10 +0000 (19:51 +0000)]
New regression testing harness.

(testall.out): obsolete.  see individual test output files in the
Output directory.

(testall.py): now contains only the list of all tests

(autotest.py): The new testing harness.  Supports -g option to
generate output files instead of verifying; -w option to warn about
non-tested optional modules; additional command line arguments to
generate or test individual tests (useful for generating output file
of new tests).

28 years agoMoved the raise logic out of the main interpreter loop to a separate function.
Guido van Rossum [Tue, 10 Dec 1996 18:07:35 +0000 (18:07 +0000)]
Moved the raise logic out of the main interpreter loop to a separate function.

The raise logic has one additional feature: if you raise <class>,
<value> where <value> is not an instance, it will construct an
instance using <value> as argument.  If <value> is None, <class> is
instantiated without arguments.  If <value> is a tuple, it is used as
the argument list.

This feature is intended to make it easier to upgrade code from using
string exceptions to using class exceptions; without this feature,
you'd have to change every raise statement from ``raise X'' to ``raise
X()'' and from ``raise X, y'' to ``raise X(y)''.  The latter is still
the recommended form (because it has no ambiguities about the number
of arguments), but this change makes the transition less painful.

28 years agoThe usual
Guido van Rossum [Tue, 10 Dec 1996 17:19:28 +0000 (17:19 +0000)]
The usual

28 years agoAdded -lld to AIX LINKFORSHARED. Monty Stein.
Guido van Rossum [Tue, 10 Dec 1996 17:18:38 +0000 (17:18 +0000)]
Added -lld to AIX LINKFORSHARED.  Monty Stein.

28 years agoAdded a provide so the corresponding require will succeed.
Barry Warsaw [Tue, 10 Dec 1996 16:29:21 +0000 (16:29 +0000)]
Added a provide so the corresponding require will succeed.

28 years agoA test of the `new' module. The new.code() test is fairly bogus since
Barry Warsaw [Tue, 10 Dec 1996 16:28:53 +0000 (16:28 +0000)]
A test of the `new' module.  The new.code() test is fairly bogus since
I'm really not sure what the proper inputs are.  I do flex the
function call though by passing in arguments of the proper type.  I
don't try to exec the code object that gets returned!

28 years agoAdded test_new.
Barry Warsaw [Tue, 10 Dec 1996 16:27:16 +0000 (16:27 +0000)]
Added test_new.

28 years agoRenamed.
Barry Warsaw [Tue, 10 Dec 1996 16:25:56 +0000 (16:25 +0000)]
Renamed.

28 years agoThe usual; added several test modules, too.
Guido van Rossum [Tue, 10 Dec 1996 16:02:14 +0000 (16:02 +0000)]
The usual; added several test modules, too.

28 years agoAdd optional data argument to urlopen() and open_http(), to trigger POST.
Guido van Rossum [Tue, 10 Dec 1996 16:00:28 +0000 (16:00 +0000)]
Add optional data argument to urlopen() and open_http(), to trigger POST.

28 years agoIn the HTTP reply header, be more accepting in the HTTP version.
Guido van Rossum [Tue, 10 Dec 1996 15:58:22 +0000 (15:58 +0000)]
In the HTTP reply header, be more accepting in the HTTP version.

28 years agoAdded remaining declarations needed/used in glmodule.c; keeps gcc -Wall happy.
Guido van Rossum [Tue, 10 Dec 1996 15:41:19 +0000 (15:41 +0000)]
Added remaining declarations needed/used in glmodule.c; keeps gcc -Wall happy.

28 years agoBetter way to handle 64-bit ints, keeping gcc -Wall happy.
Guido van Rossum [Tue, 10 Dec 1996 15:39:04 +0000 (15:39 +0000)]
Better way to handle 64-bit ints, keeping gcc -Wall happy.
Tested with AMK's help.

28 years agoAdd unistd.h to make gcc -Wall happy.
Guido van Rossum [Tue, 10 Dec 1996 15:37:36 +0000 (15:37 +0000)]
Add unistd.h to make gcc -Wall happy.

28 years agoAdd const to error and newstring functions
Guido van Rossum [Tue, 10 Dec 1996 15:33:34 +0000 (15:33 +0000)]
Add const to error and newstring functions

28 years agoFix operator priority bug found thanks to gcc -Wall.
Guido van Rossum [Tue, 10 Dec 1996 15:23:00 +0000 (15:23 +0000)]
Fix operator priority bug found thanks to gcc -Wall.

28 years agoMake gcc -Wall happy; remove dummy variable (can't see where it's needed).
Guido van Rossum [Tue, 10 Dec 1996 15:21:30 +0000 (15:21 +0000)]
Make gcc -Wall happy; remove dummy variable (can't see where it's needed).

28 years agoAdded extern decl for gethostname() to keep gcc -Wall happy.
Guido van Rossum [Tue, 10 Dec 1996 15:17:08 +0000 (15:17 +0000)]
Added extern decl for gethostname() to keep gcc -Wall happy.

28 years agoGreat renaming.
Guido van Rossum [Tue, 10 Dec 1996 00:32:31 +0000 (00:32 +0000)]
Great renaming.

Also got rid of the dummy variable, which was last needed in IRIX 4.x.

28 years agoRemoved redundant inclusion of <errno.h> (sorry, Roj!).
Guido van Rossum [Tue, 10 Dec 1996 00:12:14 +0000 (00:12 +0000)]
Removed redundant inclusion of <errno.h> (sorry, Roj!).

28 years agorenamed in a grand fashion.
Roger E. Masse [Tue, 10 Dec 1996 00:07:00 +0000 (00:07 +0000)]
renamed in a grand fashion.

28 years agoAdded a test script for dbmmodule.c and added it to testall.py and
Roger E. Masse [Tue, 10 Dec 1996 00:06:24 +0000 (00:06 +0000)]
Added a test script for dbmmodule.c and added it to testall.py and
updated testall.out

28 years agoAdded test_new
Barry Warsaw [Tue, 10 Dec 1996 00:02:57 +0000 (00:02 +0000)]
Added test_new

28 years agoRenamed a few symbols that were found in comments.
Barry Warsaw [Mon, 9 Dec 1996 23:22:35 +0000 (23:22 +0000)]
Renamed a few symbols that were found in comments.

28 years agoRenamed, ungrandly. We don't have the GNU MP library here so we can't
Barry Warsaw [Mon, 9 Dec 1996 23:16:31 +0000 (23:16 +0000)]
Renamed, ungrandly.  We don't have the GNU MP library here so we can't
really test this module, or even compile it without a lot of work.

I'll make a note of it that this has not been tested!

28 years agorenamed grandly.
Roger E. Masse [Mon, 9 Dec 1996 23:14:26 +0000 (23:14 +0000)]
renamed grandly.

28 years agonew test script for cryptmodule.py
Roger E. Masse [Mon, 9 Dec 1996 23:13:45 +0000 (23:13 +0000)]
new test script for cryptmodule.py

28 years agoTest script/output for cryptmodule.c added to testall.py and testall.out
Roger E. Masse [Mon, 9 Dec 1996 23:13:07 +0000 (23:13 +0000)]
Test script/output for cryptmodule.c added to testall.py and testall.out

28 years ago(python-cc-style): Although open braces for substatements typically
Barry Warsaw [Mon, 9 Dec 1996 23:01:30 +0000 (23:01 +0000)]
(python-cc-style): Although open braces for substatements typically
hang on the right side, if they are on a separate line, indent them
under the keyword.

28 years agoRenamed Grandly
Roger E. Masse [Mon, 9 Dec 1996 22:59:53 +0000 (22:59 +0000)]
Renamed Grandly

28 years agoNew test module for complex math module
Roger E. Masse [Mon, 9 Dec 1996 22:59:15 +0000 (22:59 +0000)]
New test module for complex math module

28 years agoAdded test_cmath.py to test complex math module
Roger E. Masse [Mon, 9 Dec 1996 22:58:42 +0000 (22:58 +0000)]
Added test_cmath.py to test complex math module

28 years ago(testall.py): Slightly improved test harness to make it easier to add
Barry Warsaw [Mon, 9 Dec 1996 22:34:15 +0000 (22:34 +0000)]
(testall.py): Slightly improved test harness to make it easier to add
simple tests.

(testall.py, testall.out): Added MD5 testsuite

28 years agoRenamed
Barry Warsaw [Mon, 9 Dec 1996 22:32:36 +0000 (22:32 +0000)]
Renamed

28 years agoRemoved some unneeded header files and reedited with a fixed-width font
Roger E. Masse [Mon, 9 Dec 1996 22:24:19 +0000 (22:24 +0000)]
Removed some unneeded header files and reedited with a fixed-width font
from emacs as per recomendation from GvR

28 years ago(python-cc-style): Oops, we decided to use TABs for 8 spaces where
Barry Warsaw [Mon, 9 Dec 1996 22:07:22 +0000 (22:07 +0000)]
(python-cc-style): Oops, we decided to use TABs for 8 spaces where
possible.

28 years agoC coding standard for Python C files.
Barry Warsaw [Mon, 9 Dec 1996 21:57:25 +0000 (21:57 +0000)]
C coding standard for Python C files.

Currently fairly minimal, but I'll be adding to this as needed.  I
think it's pretty darn close.

To use this, just load the file and in a C buffer type:

M-x c-set-style RET python RET

[there are ways to automate much of this!]

28 years agoAdded test_strop
Barry Warsaw [Mon, 9 Dec 1996 21:49:55 +0000 (21:49 +0000)]
Added test_strop

28 years agoAdded tests of all strop module functions, and touching of module
Barry Warsaw [Mon, 9 Dec 1996 21:49:10 +0000 (21:49 +0000)]
Added tests of all strop module functions, and touching of module
variables

28 years agoAdded test_array output line.
Guido van Rossum [Mon, 9 Dec 1996 21:37:33 +0000 (21:37 +0000)]
Added test_array output line.

28 years agoRenamed Grandly (I think).
Roger E. Masse [Mon, 9 Dec 1996 20:10:36 +0000 (20:10 +0000)]
Renamed Grandly (I think).

28 years agomodule to test the arraymodule created and added to testall.py
Roger E. Masse [Mon, 9 Dec 1996 20:09:16 +0000 (20:09 +0000)]
module to test the arraymodule created and added to testall.py

28 years agoChanges to keep gcc -Wall happy.
Guido van Rossum [Mon, 9 Dec 1996 18:52:11 +0000 (18:52 +0000)]
Changes to keep gcc -Wall happy.

28 years agoAdded `void' to declaration of initgl(), to keep gcc -Wall happy.
Guido van Rossum [Mon, 9 Dec 1996 18:51:51 +0000 (18:51 +0000)]
Added `void' to declaration of initgl(), to keep gcc -Wall happy.

28 years agoAdded a bunch of extern void decls, to keep gcc -Wall happy.
Guido van Rossum [Mon, 9 Dec 1996 18:49:42 +0000 (18:49 +0000)]
Added a bunch of extern void decls, to keep gcc -Wall happy.

28 years agoInclude <sys/ioctl.h>, to keep gcc -Wall happy.
Guido van Rossum [Mon, 9 Dec 1996 18:49:14 +0000 (18:49 +0000)]
Include <sys/ioctl.h>, to keep gcc -Wall happy.

28 years agoMake dummy int public (with _Py_ prefix), to keep gcc -Wall happy.
Guido van Rossum [Mon, 9 Dec 1996 18:48:32 +0000 (18:48 +0000)]
Make dummy int public (with _Py_ prefix), to keep gcc -Wall happy.

28 years agoAdd ``extern void bzero();'' for SGI, to keep gcc -Wall happy.
Guido van Rossum [Mon, 9 Dec 1996 18:47:43 +0000 (18:47 +0000)]
Add ``extern void bzero();'' for SGI, to keep gcc -Wall happy.

28 years agoInclude unistd.h to keep gcc -Wall happy.
Guido van Rossum [Mon, 9 Dec 1996 18:46:58 +0000 (18:46 +0000)]
Include unistd.h to keep gcc -Wall happy.

28 years agoAdded ``extern int get_default_domain();'' for SGI, to keep gcc -Wall happy.
Guido van Rossum [Mon, 9 Dec 1996 18:46:28 +0000 (18:46 +0000)]
Added ``extern int get_default_domain();'' for SGI, to keep gcc -Wall happy.

28 years agoAdded #ifdef around ``extern int ftime();'' for MS WINDOWS (which has
Guido van Rossum [Mon, 9 Dec 1996 18:38:52 +0000 (18:38 +0000)]
Added #ifdef around ``extern int ftime();'' for MS WINDOWS (which has
a conflicting definition somewhere).
Resolved line wrap for error message in ins().

28 years agoGreatly renamed.
Barry Warsaw [Mon, 9 Dec 1996 18:35:56 +0000 (18:35 +0000)]
Greatly renamed.

28 years agoins(): missed a renaming in a string: dictinsert =>
Barry Warsaw [Mon, 9 Dec 1996 18:24:35 +0000 (18:24 +0000)]
ins(): missed a renaming in a string: dictinsert =>
PyDict_SetItemString.

GvR: note the long line > 80 chars.  Wrapping suggestions?

28 years agoGreatly renamed.
Barry Warsaw [Fri, 6 Dec 1996 23:32:14 +0000 (23:32 +0000)]
Greatly renamed.

28 years agoAdded test_time
Barry Warsaw [Fri, 6 Dec 1996 23:30:49 +0000 (23:30 +0000)]
Added test_time

28 years agoAdded 'test_time'
Barry Warsaw [Fri, 6 Dec 1996 23:30:33 +0000 (23:30 +0000)]
Added 'test_time'

28 years agotest of time module. not terribly fancy, but it does touch every
Barry Warsaw [Fri, 6 Dec 1996 23:30:07 +0000 (23:30 +0000)]
test of time module.  not terribly fancy, but it does touch every
function and variable in the module, verifies a few return values and
even tests a couple of known error conditions.

28 years agoAdded descriptions of parsedate(), parsedate_tz(), getdate_tz()
Guido van Rossum [Fri, 6 Dec 1996 21:23:53 +0000 (21:23 +0000)]
Added descriptions of parsedate(), parsedate_tz(), getdate_tz()
(all contributed by Andrew Kuchling).

28 years agoAdded section for operator module (compiled Skip Montanaro).
Guido van Rossum [Fri, 6 Dec 1996 21:22:41 +0000 (21:22 +0000)]
Added section for operator module (compiled Skip Montanaro).

28 years agoThe usual.
Guido van Rossum [Fri, 6 Dec 1996 21:19:16 +0000 (21:19 +0000)]
The usual.

28 years agoTest for sys/file.h.
Guido van Rossum [Fri, 6 Dec 1996 21:18:18 +0000 (21:18 +0000)]
Test for sys/file.h.
Determine sizeof int and long.
For HPUX, add linker options for shared library usage.

28 years agoAdd extern decl of ftime() to make gcc -Wall happy.
Guido van Rossum [Fri, 6 Dec 1996 20:17:44 +0000 (20:17 +0000)]
Add extern decl of ftime() to make gcc -Wall happy.

28 years agoFix core dump from pow(x,y,0).
Guido van Rossum [Fri, 6 Dec 1996 20:14:43 +0000 (20:14 +0000)]
Fix core dump from pow(x,y,0).
Make gcc -Wall happy.

28 years ago(Makefile): Added sym links for each manual, i.e., index.html -> lib.html.
Fred Drake [Fri, 6 Dec 1996 20:06:37 +0000 (20:06 +0000)]
(Makefile):  Added sym links for each manual, i.e., index.html -> lib.html.
This makes addressing the manuals a little simpler.

28 years ago(Makefile): The sed hack is needed for all 3 manuals processed by latex2html;
Fred Drake [Fri, 6 Dec 1996 18:45:30 +0000 (18:45 +0000)]
(Makefile):  The sed hack is needed for all 3 manuals processed by latex2html;
the comma must represent a bug in the modified process_command()
function, but I haven't found it yet.  This will work for now.

28 years ago(Makefile): Rip out old partparse.py / texi2html.py stuff -- use latex2html
Fred Drake [Fri, 6 Dec 1996 15:11:34 +0000 (15:11 +0000)]
(Makefile):  Rip out old partparse.py / texi2html.py stuff -- use latex2html
instead!  Updated some comments.

28 years ago(myformat.perl): Don't italicize the '[]' characters around optional
Fred Drake [Fri, 6 Dec 1996 15:09:14 +0000 (15:09 +0000)]
(myformat.perl):  Don't italicize the '[]' characters around optional
parameters.

28 years ago(.latex2html-init): Restore one setting to the default (no real need to
Fred Drake [Fri, 6 Dec 1996 14:50:58 +0000 (14:50 +0000)]
(.latex2html-init):  Restore one setting to the default (no real need to
change it), and correct a typo in a comment.

28 years agoKeep gcc -Wall happy.
Guido van Rossum [Thu, 5 Dec 1996 23:43:35 +0000 (23:43 +0000)]
Keep gcc -Wall happy.

28 years agoAdd case for 'R' and a little bit of cleanup. Andrew Kuchling.
Guido van Rossum [Thu, 5 Dec 1996 23:41:26 +0000 (23:41 +0000)]
Add case for 'R' and a little bit of cleanup.  Andrew Kuchling.

28 years agoJim F's brainchild
Guido van Rossum [Thu, 5 Dec 1996 23:30:48 +0000 (23:30 +0000)]
Jim F's brainchild

28 years agoFix bad format char in error msg (%s should be %d).
Guido van Rossum [Thu, 5 Dec 1996 23:30:16 +0000 (23:30 +0000)]
Fix bad format char in error msg (%s should be %d).

Keep gcc -Wall happy.

28 years agoKeep gcc -Wall happy.
Guido van Rossum [Thu, 5 Dec 1996 23:27:02 +0000 (23:27 +0000)]
Keep gcc -Wall happy.

28 years agoSupport __complex__ method on instances, for complex() conversion.
Guido van Rossum [Thu, 5 Dec 1996 23:18:18 +0000 (23:18 +0000)]
Support __complex__ method on instances, for complex() conversion.

Keep gcc -Wall happy.

28 years agoChange the Don Beaudry hack into the Don B + Jim F hack; now, if *any*
Guido van Rossum [Thu, 5 Dec 1996 23:17:11 +0000 (23:17 +0000)]
Change the Don Beaudry hack into the Don B + Jim F hack; now, if *any*
base class is special it gets invoked.

Make gcc -Wall happy.

28 years agoSome extra flags that an HPUX user wants me to add.
Guido van Rossum [Thu, 5 Dec 1996 23:15:35 +0000 (23:15 +0000)]
Some extra flags that an HPUX user wants me to add.

28 years agoTentative changes to make this work better on 64-bit machines.
Guido van Rossum [Thu, 5 Dec 1996 23:15:02 +0000 (23:15 +0000)]
Tentative changes to make this work better on 64-bit machines.
A plain int that doesn't fit in 32 bits will be marshalled using a new
type.  32 bits machines can't handle this and will issue a warning.

28 years ago(libparser.tex): Added note that the line number for a terminal token
Fred Drake [Thu, 5 Dec 1996 22:28:43 +0000 (22:28 +0000)]
(libparser.tex):  Added note that the line number for a terminal token
indicates the line on which the token ends rather than starts
(a side effect of interpreting the parse tree nodes directly).
Maybe I'll fix this for Python 2.0.

28 years agoMore stale info.
Guido van Rossum [Thu, 5 Dec 1996 22:26:17 +0000 (22:26 +0000)]
More stale info.

28 years agoNew URL for Swiss ftp mirror.
Guido van Rossum [Thu, 5 Dec 1996 22:01:11 +0000 (22:01 +0000)]
New URL for Swiss ftp mirror.

28 years agoMake gcc -Wall happy
Guido van Rossum [Thu, 5 Dec 1996 21:58:58 +0000 (21:58 +0000)]
Make gcc -Wall happy

28 years agoFix newlongobject so it will work for 64-bit as well as 32-bit hardware
Guido van Rossum [Thu, 5 Dec 1996 21:57:21 +0000 (21:57 +0000)]
Fix newlongobject so it will work for 64-bit as well as 32-bit hardware
(although for 32-bit hardware it's a bit slower than it was).

Make gcc -Wall happy.