]> granicus.if.org Git - python/log
python
28 years agoMake delimiter and separator static for K&R C.
Guido van Rossum [Tue, 20 May 1997 22:38:21 +0000 (22:38 +0000)]
Make delimiter and separator static for K&R C.

28 years agoDon't use function prototypes in function definition headers.
Guido van Rossum [Tue, 20 May 1997 22:23:34 +0000 (22:23 +0000)]
Don't use function prototypes in function definition headers.

28 years agoIndent the #error directives so a classic K&R cpp doesn't see them.
Guido van Rossum [Tue, 20 May 1997 22:18:48 +0000 (22:18 +0000)]
Indent the #error directives so a classic K&R cpp doesn't see them.

28 years agoRenamed a local variable from 'PyCFunction' (which is also a typedef
Guido van Rossum [Tue, 20 May 1997 22:09:08 +0000 (22:09 +0000)]
Renamed a local variable from 'PyCFunction' (which is also a typedef
in methodobject.h) to 'func'.  /bin/cc on SunOS 4.x didn't grok this.

28 years agoAdded Py_PROTO macros for SunOS 4.x /bin/cc.
Guido van Rossum [Tue, 20 May 1997 22:07:46 +0000 (22:07 +0000)]
Added Py_PROTO macros for SunOS 4.x /bin/cc.

28 years agoMore robust way of choosing a non-existant uid (faster, too).
Guido van Rossum [Tue, 20 May 1997 19:32:22 +0000 (19:32 +0000)]
More robust way of choosing a non-existant uid (faster, too).
(Correct version -- the previous checkin was a keyboard slip.)

28 years agoMore robust way of choosing a non-existant uid (faster, too).
Guido van Rossum [Tue, 20 May 1997 19:31:25 +0000 (19:31 +0000)]
More robust way of choosing a non-existant uid (faster, too).

28 years agoMoved PyObject_{Get,Set}Attr to object.c.
Guido van Rossum [Tue, 20 May 1997 18:35:19 +0000 (18:35 +0000)]
Moved PyObject_{Get,Set}Attr to object.c.
Fixed two 'return NULL' that should be 'return -1'.

28 years agoMoved PyObject_{Get,Set}Attr here (from dictobject) and add PyObject_HasAttr.
Guido van Rossum [Tue, 20 May 1997 18:34:44 +0000 (18:34 +0000)]
Moved PyObject_{Get,Set}Attr here (from dictobject) and add PyObject_HasAttr.

28 years agoGot rid of c_error in favor of errno (and EDOM/ERANGE).
Guido van Rossum [Tue, 20 May 1997 18:21:34 +0000 (18:21 +0000)]
Got rid of c_error in favor of errno (and EDOM/ERANGE).
Assume that errno usage is thread-safe -- most vendors do this by
making in a macro that refers to a per-thread storage area.

28 years agoAdded some minimal comments and tweaked lay-out a bit.
Guido van Rossum [Tue, 20 May 1997 18:03:22 +0000 (18:03 +0000)]
Added some minimal comments and tweaked lay-out a bit.

28 years agoPlug leak of stack frame object in exception handling code.
Guido van Rossum [Tue, 20 May 1997 17:06:11 +0000 (17:06 +0000)]
Plug leak of stack frame object in exception handling code.
Also delay DECREF calls until after the structures have been updated
(for reentrancy awareness).

28 years agoHandling of pathnames pointing to files on toplevel folder of disk was
Guido van Rossum [Tue, 20 May 1997 16:00:07 +0000 (16:00 +0000)]
Handling of pathnames pointing to files on toplevel folder of disk was
incorrect (Jack)

28 years agofixed ratecv to continue working if product of rates is bigger than 32 bits
Guido van Rossum [Tue, 20 May 1997 15:59:35 +0000 (15:59 +0000)]
fixed ratecv to continue working if product of rates is bigger than 32 bits
(Sjoerd)

28 years agoRemoved MetroWerks workaround, replaced by defines in mymath.h (Jack)
Guido van Rossum [Tue, 20 May 1997 15:59:04 +0000 (15:59 +0000)]
Removed MetroWerks workaround, replaced by defines in mymath.h (Jack)

28 years agoworkaround for Mac MSL header definitions of TRUE and FALSE (Jack)
Guido van Rossum [Tue, 20 May 1997 15:58:36 +0000 (15:58 +0000)]
workaround for Mac MSL header definitions of TRUE and FALSE (Jack)

28 years agoWorkaround for bug in Metrowerks MSL headers on 68K Macs (Jack)
Guido van Rossum [Tue, 20 May 1997 15:58:15 +0000 (15:58 +0000)]
Workaround for bug in Metrowerks MSL headers on 68K Macs (Jack)

28 years agoLogic for enabling mac-specific signal handling fixed (Jack)
Guido van Rossum [Tue, 20 May 1997 15:57:49 +0000 (15:57 +0000)]
Logic for enabling mac-specific signal handling fixed (Jack)

28 years agoUse #ifdef in stead of #if (Jack)
Guido van Rossum [Tue, 20 May 1997 15:57:25 +0000 (15:57 +0000)]
Use #ifdef in stead of #if (Jack)

28 years agoUpdated Python version no to 1.5.
Guido van Rossum [Mon, 19 May 1997 20:01:57 +0000 (20:01 +0000)]
Updated Python version no to 1.5.
Noted that we have used VC 4.2 and that 5.x should be able to convert it.

28 years agoAdded AMK's SocketServer docs.
Guido van Rossum [Mon, 19 May 1997 19:55:16 +0000 (19:55 +0000)]
Added AMK's SocketServer docs.

28 years agoAdd platform to welcome message.
Guido van Rossum [Mon, 19 May 1997 18:33:01 +0000 (18:33 +0000)]
Add platform to welcome message.

28 years agoUnlink before rename (for NT).
Guido van Rossum [Mon, 19 May 1997 15:20:49 +0000 (15:20 +0000)]
Unlink before rename (for NT).

28 years agoJim Ahlstrom's contributions for DOS, OS/2, WIN3.1.
Guido van Rossum [Mon, 19 May 1997 14:16:21 +0000 (14:16 +0000)]
Jim Ahlstrom's contributions for DOS, OS/2, WIN3.1.

28 years agoRenamed strndup to my_strndup to avoid conflict witth GNU libc.
Guido van Rossum [Fri, 16 May 1997 16:36:52 +0000 (16:36 +0000)]
Renamed strndup to my_strndup to avoid conflict witth GNU libc.

28 years agoAdded CRLF for Notepad.
Guido van Rossum [Fri, 16 May 1997 16:24:09 +0000 (16:24 +0000)]
Added CRLF for Notepad.

28 years agoAddress the following problem on DOS and Win 3.1, reported by Jim
Guido van Rossum [Fri, 16 May 1997 16:21:38 +0000 (16:21 +0000)]
Address the following problem on DOS and Win 3.1, reported by Jim
Ahlstrom:

Arraymodule.c has static functions H_getitem and h_getitem, and a
few others which differ only in case.  These are a problem on
Windows 3.1, since a case-sensitive link causes Winsock to fail
(hey, it's not my fault).  Please convert H_etc to HH_etc etc.

28 years agoAdded CRLF for Notepad.
Guido van Rossum [Fri, 16 May 1997 16:17:20 +0000 (16:17 +0000)]
Added CRLF for Notepad.

28 years agoGot rid of all the last_name_* bogosities. I don't think the
Guido van Rossum [Fri, 16 May 1997 14:23:33 +0000 (14:23 +0000)]
Got rid of all the last_name_* bogosities.  I don't think the
complexity saved much any more.  A simple benchmark (grail) showed
that there were 3 times as many misses as hits, and the same number of
times again the code was bypassed altogether due to the existence of
setattro/getattro.

28 years agoChanges to make these tests work on the Mac.
Guido van Rossum [Fri, 16 May 1997 13:51:48 +0000 (13:51 +0000)]
Changes to make these tests work on the Mac.

28 years agoIncrease the child's sleep time to 5 for slow machines.
Guido van Rossum [Fri, 16 May 1997 13:40:41 +0000 (13:40 +0000)]
Increase the child's sleep time to 5 for slow machines.

28 years agoCorrect comment; -c is off by default.
Guido van Rossum [Thu, 15 May 1997 21:51:16 +0000 (21:51 +0000)]
Correct comment; -c is off by default.

28 years agoMade a start with api.tex, the Python-C API Reference Manual.
Guido van Rossum [Thu, 15 May 1997 21:43:21 +0000 (21:43 +0000)]
Made a start with api.tex, the Python-C API Reference Manual.
Removed extref.tex (which provided the starting point).
Also removed qua.tex, which is out of date and no longer needed.

28 years agoOops, another forgotten renaming: varobject -> PyVarObject.
Guido van Rossum [Thu, 15 May 1997 21:31:03 +0000 (21:31 +0000)]
Oops, another forgotten renaming: varobject -> PyVarObject.

28 years agoRemove the last three uses of PyArg_GetInt() from the source.
Guido van Rossum [Thu, 15 May 1997 19:09:26 +0000 (19:09 +0000)]
Remove the last three uses of PyArg_GetInt() from the source.

28 years agoCatch nis.error and raise TestFailed instead. This catches the
Barry Warsaw [Thu, 15 May 1997 18:27:49 +0000 (18:27 +0000)]
Catch nis.error and raise TestFailed instead.  This catches the
problem where Python is configured with the nismodule but NIS isn't
installed, or the map names don't correspond to those hardcoded in
nismodule.c (which is bogus in and of itself).

28 years agoOpen the output files with 'wb', not 'w'.
Guido van Rossum [Thu, 15 May 1997 18:25:29 +0000 (18:25 +0000)]
Open the output files with 'wb', not 'w'.

28 years agoAdded BabylMailbox class by Fred Lundh (untested).
Guido van Rossum [Thu, 15 May 1997 14:33:09 +0000 (14:33 +0000)]
Added BabylMailbox class by Fred Lundh (untested).

28 years agoThis commit was manufactured by cvs2svn to create tag 'r15a2'. v1.5a2
cvs2svn [Thu, 15 May 1997 12:24:53 +0000 (12:24 +0000)]
This commit was manufactured by cvs2svn to create tag 'r15a2'.

28 years agoAdd pthred-std define for Linux.
Guido van Rossum [Thu, 15 May 1997 12:24:53 +0000 (12:24 +0000)]
Add pthred-std define for Linux.

28 years agoRegenreated for MSL
Jack Jansen [Thu, 15 May 1997 11:18:32 +0000 (11:18 +0000)]
Regenreated for MSL

28 years agoMSL errno.h has moved some errors around, and doesn't document
Jack Jansen [Thu, 15 May 1997 11:18:13 +0000 (11:18 +0000)]
MSL errno.h has moved some errors around, and doesn't document
them in comments, so we do that ourselves.

28 years agoBump level to 1.5a2.
Guido van Rossum [Wed, 14 May 1997 21:41:46 +0000 (21:41 +0000)]
Bump level to 1.5a2.

28 years agoUpdate description of "make test" to new test harness.
Guido van Rossum [Wed, 14 May 1997 21:39:05 +0000 (21:39 +0000)]
Update description of "make test" to new test harness.
Change DEC OSF/1 to DEC Unix.
Add note about AIX bug in 4.2.1.

28 years agoFix typo in error reporting.
Guido van Rossum [Wed, 14 May 1997 21:38:03 +0000 (21:38 +0000)]
Fix typo in error reporting.

28 years agoFix hex tests for 64-bit machines.
Guido van Rossum [Wed, 14 May 1997 21:37:23 +0000 (21:37 +0000)]
Fix hex tests for 64-bit machines.

28 years agoInstructions updated for 1.5. Added the important note to set the
Guido van Rossum [Wed, 14 May 1997 21:35:02 +0000 (21:35 +0000)]
Instructions updated for 1.5.  Added the important note to set the
run-library to multithreaded dll.

28 years agoAdd -Olimit 1500 to OPT if CC supports it.
Guido van Rossum [Wed, 14 May 1997 21:14:44 +0000 (21:14 +0000)]
Add -Olimit 1500 to OPT if CC supports it.

28 years agoSuppress fork part of socket test when we can't fork.
Guido van Rossum [Wed, 14 May 1997 21:12:51 +0000 (21:12 +0000)]
Suppress fork part of socket test when we can't fork.

28 years agoUpdated, mappingobject -> dictobject plus some other minor things.
Guido van Rossum [Wed, 14 May 1997 20:47:15 +0000 (20:47 +0000)]
Updated, mappingobject -> dictobject plus some other minor things.

28 years agoAdd sections for PIL (Fred Lundh).
Guido van Rossum [Wed, 14 May 1997 19:22:11 +0000 (19:22 +0000)]
Add sections for PIL (Fred Lundh).

28 years agoFix sys.platform test -- on Win, it is 'win32', not 'win'.
Guido van Rossum [Wed, 14 May 1997 19:06:36 +0000 (19:06 +0000)]
Fix sys.platform test -- on Win, it is 'win32', not 'win'.

28 years agoMore rational implementation of get_qualified_path() -- search along
Guido van Rossum [Wed, 14 May 1997 18:57:21 +0000 (18:57 +0000)]
More rational implementation of get_qualified_path() -- search along
sys.path instead of assuming __file__ works.

28 years agoFix reversed test for failure in PySequence_List() and PySequence_Tuple().
Guido van Rossum [Wed, 14 May 1997 18:43:29 +0000 (18:43 +0000)]
Fix reversed test for failure in PySequence_List() and PySequence_Tuple().
This broke cPickle.

28 years agoTypo! \\lib\\<path> should be .\\lib\\<path>
Guido van Rossum [Wed, 14 May 1997 18:32:32 +0000 (18:32 +0000)]
Typo!  \\lib\\<path> should be .\\lib\\<path>

28 years agoFix showstopping bug (^ wouldn't match after \n). Jeffrey Ollie.
Guido van Rossum [Wed, 14 May 1997 18:27:51 +0000 (18:27 +0000)]
Fix showstopping bug (^ wouldn't match after \n).  Jeffrey Ollie.

28 years agoA new set of symbols. Hopefully this will be sufficient, I have no
Guido van Rossum [Wed, 14 May 1997 17:59:37 +0000 (17:59 +0000)]
A new set of symbols.  Hopefully this will be sufficient, I have no
idea how this is used, really.

28 years agoOne last rename glitch: import_modules -> _PyImport_Modules.
Guido van Rossum [Wed, 14 May 1997 17:36:12 +0000 (17:36 +0000)]
One last rename glitch: import_modules -> _PyImport_Modules.

28 years agoNew makefile, for 1.5, with CRLF
Guido van Rossum [Wed, 14 May 1997 15:54:27 +0000 (15:54 +0000)]
New makefile, for 1.5, with CRLF

28 years agoAdd a cast to a malloc to shut up the DEC Unix compiler.
Guido van Rossum [Wed, 14 May 1997 15:30:32 +0000 (15:30 +0000)]
Add a cast to a malloc to shut up the DEC Unix compiler.

28 years agoSubsumed mappingobject.h in dictobject.h.
Guido van Rossum [Tue, 13 May 1997 21:23:32 +0000 (21:23 +0000)]
Subsumed mappingobject.h in dictobject.h.

28 years agoRenamed mappingobject.c to dictobject.c.
Guido van Rossum [Tue, 13 May 1997 21:05:38 +0000 (21:05 +0000)]
Renamed mappingobject.c to dictobject.c.

28 years agoThe usual
Guido van Rossum [Tue, 13 May 1997 21:04:26 +0000 (21:04 +0000)]
The usual

28 years agoRenamed from mappingobject.c to dictobject.c.
Guido van Rossum [Tue, 13 May 1997 21:02:11 +0000 (21:02 +0000)]
Renamed from mappingobject.c to dictobject.c.
(Sorry Jack, all your projects will have to be changed again. :-( )

28 years agoFaster floating point allocator, same idea as the int allocator.
Guido van Rossum [Tue, 13 May 1997 21:00:42 +0000 (21:00 +0000)]
Faster floating point allocator, same idea as the int allocator.
By Aaron Watters.

28 years agoA completely new Rat.py by Sjoerd.
Guido van Rossum [Tue, 13 May 1997 19:25:57 +0000 (19:25 +0000)]
A completely new Rat.py by Sjoerd.

28 years agoLonger default PYTHONPATH will find test, tkinter, and shared modules
Guido van Rossum [Tue, 13 May 1997 19:21:22 +0000 (19:21 +0000)]
Longer default PYTHONPATH will find test, tkinter, and shared modules
in the build tree, when the current directory is the build tree root.

28 years agoRemove a spurious ^M.
Guido van Rossum [Tue, 13 May 1997 19:20:18 +0000 (19:20 +0000)]
Remove a spurious ^M.

28 years agoKeep gcc -Wall happy.
Guido van Rossum [Tue, 13 May 1997 19:19:41 +0000 (19:19 +0000)]
Keep gcc -Wall happy.

28 years agoUntested changes by Skip Montanaro to have an optional limit on the
Guido van Rossum [Tue, 13 May 1997 19:03:23 +0000 (19:03 +0000)]
Untested changes by Skip Montanaro to have an optional limit on the
size of uploads to POST (new version of these patches).

28 years agoUse compile-time test for 64-bit hardware instead of run-time test.
Guido van Rossum [Tue, 13 May 1997 18:00:44 +0000 (18:00 +0000)]
Use compile-time test for 64-bit hardware instead of run-time test.
This silences some compilers.

28 years agoAdded $(srcdir)/ prefix to python.exp for AIX.
Guido van Rossum [Tue, 13 May 1997 17:59:29 +0000 (17:59 +0000)]
Added $(srcdir)/ prefix to python.exp for AIX.
No idea if this actually works...

28 years agoTESTPATH is no longer needed
Guido van Rossum [Tue, 13 May 1997 17:58:16 +0000 (17:58 +0000)]
TESTPATH is no longer needed

28 years agoRemoved symbols that are no longer defined.
Guido van Rossum [Tue, 13 May 1997 17:56:38 +0000 (17:56 +0000)]
Removed symbols that are no longer defined.
Still have to find a way to add symbols that *are* defined...

28 years agoKeep picky compilers happy.
Guido van Rossum [Tue, 13 May 1997 17:53:34 +0000 (17:53 +0000)]
Keep picky compilers happy.

28 years agoSupport for various versions of the pthread draft.
Guido van Rossum [Tue, 13 May 1997 17:51:13 +0000 (17:51 +0000)]
Support for various versions of the pthread draft.

28 years ago(int) cast for strlen() to keep picky compilers happy.
Guido van Rossum [Tue, 13 May 1997 17:50:01 +0000 (17:50 +0000)]
(int) cast for strlen() to keep picky compilers happy.

28 years agoRegenerated on newer Solaris version
Guido van Rossum [Tue, 13 May 1997 17:45:56 +0000 (17:45 +0000)]
Regenerated on newer Solaris version

28 years agoRemoved out-of-date TODO file
Guido van Rossum [Tue, 13 May 1997 17:03:52 +0000 (17:03 +0000)]
Removed out-of-date TODO file

28 years agoUse ProgressBar to show progress in stead of print
Jack Jansen [Tue, 13 May 1997 15:42:26 +0000 (15:42 +0000)]
Use ProgressBar to show progress in stead of print

28 years agoDon't free the MacOS_Splash() dialog twice...
Jack Jansen [Tue, 13 May 1997 15:41:48 +0000 (15:41 +0000)]
Don't free the MacOS_Splash() dialog twice...

28 years agoAdd a few more BringToFont calls
Jack Jansen [Tue, 13 May 1997 15:41:07 +0000 (15:41 +0000)]
Add a few more BringToFont calls

28 years agoExport a few more New/Convert routines, on Just's request
Jack Jansen [Tue, 13 May 1997 11:28:03 +0000 (11:28 +0000)]
Export a few more New/Convert routines, on Just's request

28 years agoRegenrated from CW11 IDE
Jack Jansen [Tue, 13 May 1997 11:27:19 +0000 (11:27 +0000)]
Regenrated from CW11 IDE

28 years agoFinally found a wat to set a file nonblocking that works on Irix,
Guido van Rossum [Mon, 12 May 1997 22:15:52 +0000 (22:15 +0000)]
Finally found a wat to set a file nonblocking that works on Irix,
Solaris and Linux: use os.O_NONBLOCK.

28 years agoAnother change suggested by Donn Cave -- forget "step 5", which
Guido van Rossum [Mon, 12 May 1997 20:53:23 +0000 (20:53 +0000)]
Another change suggested by Donn Cave -- forget "step 5", which
searches /usr/local, /usr and /.

28 years agoFix problem reported by Donn Cave: if VPATH is an absolute path, it
Guido van Rossum [Mon, 12 May 1997 20:49:39 +0000 (20:49 +0000)]
Fix problem reported by Donn Cave: if VPATH is an absolute path, it
would always be a hit.   Prevent this by only using VPATH if we know
we are in the build directory.

28 years agoFix big ineficciency in regobj.search/match (introduced by Barry in an
Guido van Rossum [Mon, 12 May 1997 16:04:09 +0000 (16:04 +0000)]
Fix big ineficciency in regobj.search/match (introduced by Barry in an
otherwise laudible attempt to rationalize the argument parsing): it
would save a copy of the original string instead of a reference to it.
Go back to saving a reference, but keep the "s#" format (using a hack
that involves two argument parsing steps, first using "O", then using
"s#").

28 years agoFixes to progress bar by SDM, modified by Jack:
Jack Jansen [Mon, 12 May 1997 15:44:14 +0000 (15:44 +0000)]
Fixes to progress bar by SDM, modified by Jack:
- Window has a titlebar, and title() changes it
- The label is changed with label()
- The window is now movable-modal
- Cancel is now called Stop, and works.

28 years agoAdd optional 'sizehint' argument to readlines(). After approximately
Guido van Rossum [Sat, 10 May 1997 22:33:55 +0000 (22:33 +0000)]
Add optional 'sizehint' argument to readlines().  After approximately
this many bytes have been read, readlines stops.  Because of
buffering, the amount of bytes read is usually at least 8K more than
the hint.

Also changed read() and readline() to use PyArg_ParseTuple().

(Note that the *previous* checkin also fixed error handling and
narrowed the range of thread unblocking for all methods using
fread().)

28 years agoRewrite readlines() to speed it up -- about a factor of 2 on my
Guido van Rossum [Sat, 10 May 1997 22:07:25 +0000 (22:07 +0000)]
Rewrite readlines() to speed it up -- about a factor of 2 on my
Indigo2, reading a 9Meg file from the local disk.

28 years agoSpeed up read() (i.e. read till EOF) considerably by doing a stat() to
Guido van Rossum [Fri, 9 May 1997 22:27:31 +0000 (22:27 +0000)]
Speed up read() (i.e. read till EOF) considerably by doing a stat() to
see if we can guess the #bytes until the end of the file.  If we
can't, increment the buffer size increments up to 0.5Meg to avoid
realloc'ing too much.

28 years agoThis commit was manufactured by cvs2svn to create tag 'r15a1'. v1.5a1
cvs2svn [Fri, 9 May 1997 03:21:44 +0000 (03:21 +0000)]
This commit was manufactured by cvs2svn to create tag 'r15a1'.

28 years agoModernized for 1.5
Guido van Rossum [Fri, 9 May 1997 03:21:44 +0000 (03:21 +0000)]
Modernized for 1.5

28 years agoNew heros.
Guido van Rossum [Fri, 9 May 1997 03:21:12 +0000 (03:21 +0000)]
New heros.

28 years agoScroll to top of info window when done.
Guido van Rossum [Fri, 9 May 1997 03:19:29 +0000 (03:19 +0000)]
Scroll to top of info window when done.

28 years agoOops -- missed FloatingPointError.
Guido van Rossum [Fri, 9 May 1997 03:05:16 +0000 (03:05 +0000)]
Oops -- missed FloatingPointError.

28 years agoOops -- missed FloatingPointError in renaming.
Guido van Rossum [Fri, 9 May 1997 03:03:23 +0000 (03:03 +0000)]
Oops -- missed FloatingPointError in renaming.

28 years agoThe usual.
Guido van Rossum [Fri, 9 May 1997 02:42:48 +0000 (02:42 +0000)]
The usual.

28 years agoAdded --with-fpectl. Change checks for -lm, -lc.
Guido van Rossum [Fri, 9 May 1997 02:42:00 +0000 (02:42 +0000)]
Added --with-fpectl.  Change checks for -lm, -lc.