]> granicus.if.org Git - python/log
python
28 years agoFixed
Barry Warsaw [Fri, 13 Dec 1996 18:05:28 +0000 (18:05 +0000)]
Fixed

28 years agoGet rid of it -- use bsddb!
Guido van Rossum [Fri, 13 Dec 1996 16:24:06 +0000 (16:24 +0000)]
Get rid of it -- use bsddb!

28 years agoOpps, fixed a couple of newly introduced wrapping problems.
Roger E. Masse [Fri, 13 Dec 1996 15:59:22 +0000 (15:59 +0000)]
Opps, fixed a couple of newly introduced wrapping problems.

28 years agoReindented via GvR recomendation ala Bwarsaw cppy-style.el
Roger E. Masse [Fri, 13 Dec 1996 15:55:22 +0000 (15:55 +0000)]
Reindented via GvR recomendation ala Bwarsaw cppy-style.el

28 years agoAdded quote_plus() and unquote_plus(), to do space/plus substitutions
Guido van Rossum [Fri, 13 Dec 1996 14:48:47 +0000 (14:48 +0000)]
Added quote_plus() and unquote_plus(), to do space/plus substitutions
for form field values.
Also corrected substitution example (the original changed the spelling
of "conolly" to "connolly" :).

28 years agoAdded quote_plus() and unquote_plus(), to do space/plus substitutions
Guido van Rossum [Fri, 13 Dec 1996 14:47:36 +0000 (14:47 +0000)]
Added quote_plus() and unquote_plus(), to do space/plus substitutions
for form field values.

28 years agoAdded the example "thin ice" from the extensions manual.
Guido van Rossum [Fri, 13 Dec 1996 02:57:25 +0000 (02:57 +0000)]
Added the example "thin ice" from the extensions manual.

28 years agoTypos reported by Tamito Kajiyama.
Guido van Rossum [Fri, 13 Dec 1996 02:38:17 +0000 (02:38 +0000)]
Typos reported by Tamito Kajiyama.

28 years agoRenamed, and scrutinized for missed potential error conditions.
Barry Warsaw [Fri, 13 Dec 1996 01:24:29 +0000 (01:24 +0000)]
Renamed, and scrutinized for missed potential error conditions.

Alas, I don't have an Indigo, so I could not even compile this.

28 years agoOutput file for module struct test
Barry Warsaw [Fri, 13 Dec 1996 00:25:52 +0000 (00:25 +0000)]
Output file for module struct test

28 years agoAdded support for 4-channel on SGI.
Guido van Rossum [Fri, 13 Dec 1996 00:19:56 +0000 (00:19 +0000)]
Added support for 4-channel on SGI.
Allow specifying the test file on the command line.

28 years agoAdded QUADRO.
Guido van Rossum [Fri, 13 Dec 1996 00:19:15 +0000 (00:19 +0000)]
Added QUADRO.

28 years agoRenamed, however there is no test case. I did test some of the module
Barry Warsaw [Fri, 13 Dec 1996 00:11:04 +0000 (00:11 +0000)]
Renamed, however there is no test case.  I did test some of the module
out manually, and it does compile, but I'm not sure how to write a
useful portable test case.  Maybe later...

28 years agoFixed conversion between seconds and milliseconds.
Guido van Rossum [Thu, 12 Dec 1996 23:42:20 +0000 (23:42 +0000)]
Fixed conversion between seconds and milliseconds.

28 years agoA test of the struct module
Barry Warsaw [Thu, 12 Dec 1996 23:34:06 +0000 (23:34 +0000)]
A test of the struct module

28 years agoRenamed.
Barry Warsaw [Thu, 12 Dec 1996 23:32:31 +0000 (23:32 +0000)]
Renamed.

28 years ago(python-cc-style): typo "c-offset-alist" => "c-offsets-alist"
Barry Warsaw [Thu, 12 Dec 1996 22:57:05 +0000 (22:57 +0000)]
(python-cc-style): typo "c-offset-alist" => "c-offsets-alist"

28 years agoRenamed, but *not* tested or compiled. I don't even have the STDWIN
Barry Warsaw [Thu, 12 Dec 1996 22:48:20 +0000 (22:48 +0000)]
Renamed, but *not* tested or compiled.  I don't even have the STDWIN
library.

28 years agoPrint final report, either all tests OK, or list of failed and missing
Barry Warsaw [Thu, 12 Dec 1996 22:34:26 +0000 (22:34 +0000)]
Print final report, either all tests OK, or list of failed and missing
tests.

28 years agoPrint a more meaningful message when a test's output file wasn't
Barry Warsaw [Thu, 12 Dec 1996 22:21:10 +0000 (22:21 +0000)]
Print a more meaningful message when a test's output file wasn't
found.

28 years agoReworked to eliminate all potential memory problems, including
Barry Warsaw [Thu, 12 Dec 1996 22:16:21 +0000 (22:16 +0000)]
Reworked to eliminate all potential memory problems, including
deletion of object from list argument during callout to fileno().

28 years agoMake sure ok_builtin_modules, ok_dynamic_modules and
Guido van Rossum [Thu, 12 Dec 1996 21:31:52 +0000 (21:31 +0000)]
Make sure ok_builtin_modules, ok_dynamic_modules and
builtin_module_names are always tuples.

28 years agoFixed test_strftime to be silent when called from autotest.
Guido van Rossum [Thu, 12 Dec 1996 19:07:19 +0000 (19:07 +0000)]
Fixed test_strftime to be silent when called from autotest.

28 years agoAdded test_strftime (Skip Montanaro).
Guido van Rossum [Thu, 12 Dec 1996 19:03:11 +0000 (19:03 +0000)]
Added test_strftime (Skip Montanaro).

28 years agoAdd mktime_tz() which turns a date_tz 10-tuple into a standard Unix timestamp.
Guido van Rossum [Thu, 12 Dec 1996 18:39:54 +0000 (18:39 +0000)]
Add mktime_tz() which turns a date_tz 10-tuple into a standard Unix timestamp.

28 years agoAdded remark about time() and sleep()'s subsecond precision.
Guido van Rossum [Thu, 12 Dec 1996 17:59:37 +0000 (17:59 +0000)]
Added remark about time() and sleep()'s subsecond precision.
Added hint about using clock() for benchmarks etc.
Removed non-portable strftime directives and field width, and added a
warning about non-standard features.

28 years agoAdded soundex (sigh)
Guido van Rossum [Thu, 12 Dec 1996 17:02:21 +0000 (17:02 +0000)]
Added soundex (sigh)

28 years agoAdded a bunch of new winfo options; we should now be up to date with
Guido van Rossum [Thu, 12 Dec 1996 16:43:05 +0000 (16:43 +0000)]
Added a bunch of new winfo options; we should now be up to date with
Tk 4.2.  The new winfo options supported are: mananger, pointerx,
pointerxy, pointery, server, viewable, visualid, visualsavailable.

Also fixed bugs in winfo_colormapfull() and winfo_containing().

28 years agoSeveral changes... Guido *please* take a look!
Barry Warsaw [Thu, 12 Dec 1996 00:04:35 +0000 (00:04 +0000)]
Several changes... Guido *please* take a look!

1. Renamed

2. Several coding styles were being used here, owing to the multiple
   contributors.  I tried to convert everything to standard "python"
   coding style for indentation, paren and brace placement, etc.

3. There were several potential error conditions that were never being
   checked, and where I saw them, I added checks of return values,
   etc.  I'm pretty sure I got them all.

4. There were some old-style (pre PyArg_ParseTuple) argument
   extraction and these were converted to use PyArg_ParseTuple.

All changes compile and run with the new test_select.py module, at
least on my Solaris/Sparc box.

28 years agoA test of the select module that is actually reproduceable!
Barry Warsaw [Wed, 11 Dec 1996 23:58:46 +0000 (23:58 +0000)]
A test of the select module that is actually reproduceable!

28 years agoSome more tuning of quicksort: use pointers instead of indexing.
Guido van Rossum [Wed, 11 Dec 1996 23:57:39 +0000 (23:57 +0000)]
Some more tuning of quicksort: use pointers instead of indexing.

28 years agoOutput of rgbimg module test
Barry Warsaw [Wed, 11 Dec 1996 21:42:38 +0000 (21:42 +0000)]
Output of rgbimg module test

28 years agoAdded test of rgbimg module
Barry Warsaw [Wed, 11 Dec 1996 21:41:42 +0000 (21:41 +0000)]
Added test of rgbimg module

28 years agominor formatting nit
Barry Warsaw [Wed, 11 Dec 1996 21:40:04 +0000 (21:40 +0000)]
minor formatting nit

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.