]> granicus.if.org Git - python/log
python
27 years agoAdded TemporaryFile and wrapper class by Jim Fulton.
Guido van Rossum [Tue, 12 Aug 1997 18:00:12 +0000 (18:00 +0000)]
Added TemporaryFile and wrapper class by Jim Fulton.
Look in more env vars (for NT: TEMP, TMP).

27 years agoAdded decls for stuff from myreadline.
Guido van Rossum [Tue, 12 Aug 1997 15:14:22 +0000 (15:14 +0000)]
Added decls for stuff from myreadline.

27 years agoMegapatch for IRIX 6 by Sjoerd.
Guido van Rossum [Tue, 12 Aug 1997 14:58:54 +0000 (14:58 +0000)]
Megapatch for IRIX 6 by Sjoerd.

27 years agoAdded prototype for various finalizers.
Guido van Rossum [Tue, 12 Aug 1997 14:57:21 +0000 (14:57 +0000)]
Added prototype for various finalizers.

27 years agoAdded prototype for PyGrammar_RemoveAccelerators().
Guido van Rossum [Tue, 12 Aug 1997 14:57:08 +0000 (14:57 +0000)]
Added prototype for PyGrammar_RemoveAccelerators().

27 years agoAdded buffer_info() method that returns address and length in bytes of
Guido van Rossum [Tue, 12 Aug 1997 14:55:56 +0000 (14:55 +0000)]
Added buffer_info() method that returns address and length in bytes of
the buffer used to hold the array -- for dangerous low-level I/O.

27 years agoFix mixup about PyErr_NoMemory() prototype.
Guido van Rossum [Tue, 12 Aug 1997 14:54:54 +0000 (14:54 +0000)]
Fix mixup about PyErr_NoMemory() prototype.

27 years agoUse string interning and caching to get speedups on the mac (Jack).
Guido van Rossum [Tue, 12 Aug 1997 14:53:39 +0000 (14:53 +0000)]
Use string interning and caching to get speedups on the mac (Jack).

27 years agoUse strerror on the mac if using MSL (Jack).
Guido van Rossum [Tue, 12 Aug 1997 14:51:52 +0000 (14:51 +0000)]
Use strerror on the mac if using MSL (Jack).

27 years agoBump MS_DLL_ID to 1.5.0.
Guido van Rossum [Tue, 12 Aug 1997 14:48:03 +0000 (14:48 +0000)]
Bump MS_DLL_ID to 1.5.0.

27 years agoAllow paths without drive specifier (Jack).
Guido van Rossum [Tue, 12 Aug 1997 14:47:24 +0000 (14:47 +0000)]
Allow paths without drive specifier (Jack).

27 years agoRewrite normcase() using string.translate...
Guido van Rossum [Tue, 12 Aug 1997 14:46:58 +0000 (14:46 +0000)]
Rewrite normcase() using string.translate...

27 years agoTreat all HTTP/1.* versions the same.
Guido van Rossum [Tue, 12 Aug 1997 14:46:13 +0000 (14:46 +0000)]
Treat all HTTP/1.* versions the same.

27 years agoTwo changes:
Guido van Rossum [Mon, 11 Aug 1997 21:52:17 +0000 (21:52 +0000)]
Two changes:

(1) No longer close self.sock; close it on close().  (Guido)

(2) Don't use regular expressions for what can be done simply with
string.split() -- regex is thread unsafe.  (Jeremy)

(3) Delete unused imports.  (Jeremy)

27 years agoRenamed Py_input_hook to PyOS_InputHook.
Guido van Rossum [Mon, 11 Aug 1997 18:57:29 +0000 (18:57 +0000)]
Renamed Py_input_hook to PyOS_InputHook.
Also cleaned out some CR's left by the VC++ editor.

27 years agoRewrite using class, to make waiting for processes possible;
Guido van Rossum [Mon, 11 Aug 1997 03:27:24 +0000 (03:27 +0000)]
Rewrite using class, to make waiting for processes possible;
by default children are waited for automatically.

27 years agoChanged indents to 4 *spaces*; added Emacs variables to avoid
Guido van Rossum [Sun, 10 Aug 1997 16:56:48 +0000 (16:56 +0000)]
Changed indents to 4 *spaces*; added Emacs variables to avoid
inserting tabs.  All this (and the previous patch) in preparation for
porting to NT.

27 years agoSupport using -p/-P to point to the source/build directory instead of
Guido van Rossum [Sun, 10 Aug 1997 16:47:17 +0000 (16:47 +0000)]
Support using -p/-P to point to the source/build directory instead of
the install directory.  Added -h option to print the full usage
message; by default, only two lines are now printed for errors.

27 years ago#Fixed two byte-compiler errors
Barry Warsaw [Sat, 9 Aug 1997 06:43:20 +0000 (06:43 +0000)]
#Fixed two byte-compiler errors

27 years ago#Checkpointing X/Emacs 20'fication of this mode.
Barry Warsaw [Sat, 9 Aug 1997 06:42:08 +0000 (06:42 +0000)]
#Checkpointing X/Emacs 20'fication of this mode.

27 years agoAdded O_BINARY and O_TEXT (for Windows).
Guido van Rossum [Fri, 8 Aug 1997 21:48:51 +0000 (21:48 +0000)]
Added O_BINARY and O_TEXT (for Windows).

27 years agoMore emphasis on os.environ's calling of putenv; and added hint about
Guido van Rossum [Fri, 8 Aug 1997 21:05:09 +0000 (21:05 +0000)]
More emphasis on os.environ's calling of putenv; and added hint about
flags for open().

27 years ago#Bumping to version 3.0
Barry Warsaw [Fri, 8 Aug 1997 16:19:03 +0000 (16:19 +0000)]
#Bumping to version 3.0

27 years agomkalias() now has an optional third parameter to create relative
Jack Jansen [Fri, 8 Aug 1997 15:00:59 +0000 (15:00 +0000)]
mkalias() now has an optional third parameter to create relative
aliases (Just)

27 years ago- Added classes to support class/property generation by gensuitemodule
Jack Jansen [Fri, 8 Aug 1997 15:00:03 +0000 (15:00 +0000)]
- Added classes to support class/property generation by gensuitemodule
- Fixed Property class: selector is a 'type', not an 'enum'

27 years agoAdded (dummy) PyOS_FiniInterrupts
Jack Jansen [Fri, 8 Aug 1997 14:57:37 +0000 (14:57 +0000)]
Added (dummy) PyOS_FiniInterrupts

27 years agoAdapted for 1.5a3: Py_SupressPrintingFlag is gone, and
Jack Jansen [Fri, 8 Aug 1997 14:56:41 +0000 (14:56 +0000)]
Adapted for 1.5a3: Py_SupressPrintingFlag is gone, and
Py_SetProgramName replaces Py_GetProgramName

27 years agoNew version number, new tk resources, new error numbers, new GUSI
Jack Jansen [Fri, 8 Aug 1997 14:55:03 +0000 (14:55 +0000)]
New version number, new tk resources, new error numbers, new GUSI

27 years agoDon't define ENOENT when compiling with MSL
Jack Jansen [Fri, 8 Aug 1997 14:53:16 +0000 (14:53 +0000)]
Don't define ENOENT when compiling with MSL

27 years agoCW11 projects replaced by CW Pro 1 projects, and all cfm68k/ppc
Jack Jansen [Fri, 8 Aug 1997 14:51:57 +0000 (14:51 +0000)]
CW11 projects replaced by CW Pro 1 projects, and all cfm68k/ppc
projects unified (as much as possible: PythonCore is still separate).

27 years agoModified for CW Pro 1 projects. Convention used: .mu files are old
Jack Jansen [Fri, 8 Aug 1997 14:51:54 +0000 (14:51 +0000)]
Modified for CW Pro 1 projects. Convention used: .mu files are old
project files, which have to be cleaned up before checking in, .prj
files are CW Pro 1 projects (which are always clean). Prj files are
still binhexed, even though they only have a data fork (and, hence,
could be checked in in binary mode).

27 years agoGenerate class, property and comparison code (finally!). The resulting
Jack Jansen [Fri, 8 Aug 1997 14:49:02 +0000 (14:49 +0000)]
Generate class, property and comparison code (finally!). The resulting
code isn't ideal yet: xxx.Window(1).Paragraph(3).font will only work
if all the classes and properties are declared in the same suite, but
at least font(Paragraph(3, Window(1))) always works.

27 years agoRemove unised variable
Guido van Rossum [Thu, 7 Aug 1997 19:22:48 +0000 (19:22 +0000)]
Remove unised variable

27 years agoRather unsatisfactory temporary hack to get it to run
Guido van Rossum [Thu, 7 Aug 1997 00:12:22 +0000 (00:12 +0000)]
Rather unsatisfactory temporary hack to get it to run
under WIN32 -- remove file handler interface, don't use Py_input_hook.

27 years agoGot the new structure working with MSVC 4.2.
Guido van Rossum [Thu, 7 Aug 1997 00:11:34 +0000 (00:11 +0000)]
Got the new structure working with MSVC 4.2.
main_nt.c is gone -- we can use Modules/python.c now.
Added Mark Hammond's module msvcrt.c (untested).
Added several new symbols.

27 years agoNew version of Vladimir Marangozov's AIX hacks -- simpler etc.
Guido van Rossum [Wed, 6 Aug 1997 23:42:07 +0000 (23:42 +0000)]
New version of Vladimir Marangozov's AIX hacks -- simpler etc.

27 years ago--with-readline is obsolete (and some editorial stuff in README)
Guido van Rossum [Tue, 5 Aug 1997 21:50:20 +0000 (21:50 +0000)]
--with-readline is obsolete (and some editorial stuff in README)

27 years agoGot rid of --with-readline, at last.
Guido van Rossum [Tue, 5 Aug 1997 21:47:42 +0000 (21:47 +0000)]
Got rid of --with-readline, at last.

27 years agoAttempt to import readline at interactive startup.
Guido van Rossum [Tue, 5 Aug 1997 21:34:14 +0000 (21:34 +0000)]
Attempt to import readline at interactive startup.

27 years agoMove GNU readline interface to ../Modules/readline.c.
Guido van Rossum [Tue, 5 Aug 1997 21:28:12 +0000 (21:28 +0000)]
Move GNU readline interface to ../Modules/readline.c.
Add Py_input_hook (used by _tkinter and perhaps Gist).

27 years agoNew mechanism for GNU readline interface, via module
Guido van Rossum [Tue, 5 Aug 1997 21:27:50 +0000 (21:27 +0000)]
New mechanism for GNU readline interface, via module

27 years agoAdd test for function comparisons
Guido van Rossum [Tue, 5 Aug 1997 16:52:50 +0000 (16:52 +0000)]
Add test for function comparisons

27 years agoFix bug in comparing function objects detected by Sjoerd:
Guido van Rossum [Tue, 5 Aug 1997 16:51:05 +0000 (16:51 +0000)]
Fix bug in comparing function objects detected by Sjoerd:

SystemError: bad argument to internal function

caused by comparing NULL pointer default args.

27 years agoGet READABLE c.s. from _tkinter instead of conditional definition.
Guido van Rossum [Tue, 5 Aug 1997 02:35:01 +0000 (02:35 +0000)]
Get READABLE c.s. from _tkinter instead of conditional definition.

in Tk.destroy(), reset _default_root to None when it is us.

27 years agoAdd a cast to the call to _Py_Dealloc in the expanded version of
Guido van Rossum [Tue, 5 Aug 1997 02:30:44 +0000 (02:30 +0000)]
Add a cast to the call to _Py_Dealloc in the expanded version of
Py_DECREF, to reduce the warnings when compiling with reference count
debugging on.  (There are still warnings for each call to
_Py_NewReference -- too bad.)

27 years agoAdd pointer to new BSDDB module.
Guido van Rossum [Tue, 5 Aug 1997 02:25:24 +0000 (02:25 +0000)]
Add pointer to new BSDDB module.

27 years agopurported linux portability patch (Oliver Andrich)
Guido van Rossum [Tue, 5 Aug 1997 02:24:57 +0000 (02:24 +0000)]
purported linux portability patch (Oliver Andrich)

27 years agoPy_Cleanup() is now Py_Finalize().
Guido van Rossum [Tue, 5 Aug 1997 02:23:48 +0000 (02:23 +0000)]
Py_Cleanup() is now Py_Finalize().

27 years agoMerge Py_Cleanup() into Py_Finalize(). Call the various small Fini()
Guido van Rossum [Tue, 5 Aug 1997 02:22:03 +0000 (02:22 +0000)]
Merge Py_Cleanup() into Py_Finalize().  Call the various small Fini()
functions.

27 years agoNew rules for deleting modules. Rather than having an elaborate
Guido van Rossum [Tue, 5 Aug 1997 02:20:51 +0000 (02:20 +0000)]
New rules for deleting modules.  Rather than having an elaborate
scheme based on object's types, have a simple two-phase scheme based
on object's *names*:

/* To make the execution order of destructors for global
   objects a bit more predictable, we first zap all objects
   whose name starts with a single underscore, before we clear
   the entire dictionary.  We zap them by replacing them with
   None, rather than deleting them from the dictionary, to
   avoid rehashing the dictionary (to some extent). */

27 years agoRenamed a local label that was accidentally grandly renamed to
Guido van Rossum [Tue, 5 Aug 1997 02:18:01 +0000 (02:18 +0000)]
Renamed a local label that was accidentally grandly renamed to
'Py_Cleanup' back to 'cleanup'.

27 years agoAdded _Fini() routines to free up some memory
Guido van Rossum [Tue, 5 Aug 1997 02:16:08 +0000 (02:16 +0000)]
Added _Fini() routines to free up some memory

27 years agoChange the Fini function to only remove otherwise unreferenced strings
Guido van Rossum [Tue, 5 Aug 1997 02:15:12 +0000 (02:15 +0000)]
Change the Fini function to only remove otherwise unreferenced strings
from the interned table.  There are references in hard-to-find static
variables all over the interpreter, and it's not worth trying to get
rid of all those; but "uninterning" isn't fair either and may cause
subtle failures later -- so we have to keep them in the interned
table.

Also get rid of no-longer-needed insert of None in interned dict.

27 years agoAdded separate free list for cfunction (builtin method) objects, for a
Guido van Rossum [Tue, 5 Aug 1997 02:11:41 +0000 (02:11 +0000)]
Added separate free list for cfunction (builtin method) objects, for a
few percent speed up.  Also add PyCFunction_Fini() to discard it.

27 years agoProvide a dummy empty directory as f_builtins instead of failing, when
Guido van Rossum [Tue, 5 Aug 1997 02:09:46 +0000 (02:09 +0000)]
Provide a dummy empty directory as f_builtins instead of failing, when
no valid directory is passed in.  This prevents __del__ to fail when
invoked after __builtins__ has already been discarded.

Also add PyFrame_Fini() to discard the cache of frames.

27 years agoAdded separate free list for instance method objects, for a few
Guido van Rossum [Tue, 5 Aug 1997 02:06:53 +0000 (02:06 +0000)]
Added separate free list for instance method objects, for a few
percent speed up.  Also add PyMethod_Fini() to discard it.

27 years agoAdded _Py_ResetReferences(), if tracing references.
Guido van Rossum [Tue, 5 Aug 1997 02:04:34 +0000 (02:04 +0000)]
Added _Py_ResetReferences(), if tracing references.
In _Py_PrintReferences(), no longer suppress once-referenced string.

Add Py_Malloc and friends and PyMem_Malloc and friends (malloc
wrappers for third parties).

27 years agoAdded Py_Malloc and friends as well as PyMem_Malloc and friends.
Guido van Rossum [Tue, 5 Aug 1997 01:59:22 +0000 (01:59 +0000)]
Added Py_Malloc and friends as well as PyMem_Malloc and friends.

27 years agoPlug memory leak (DECREF doc string properly after inserting in dict).
Guido van Rossum [Mon, 4 Aug 1997 23:55:25 +0000 (23:55 +0000)]
Plug memory leak (DECREF doc string properly after inserting in dict).

27 years agoThe reload(sys) test no longer works due to changes in the import
Guido van Rossum [Sat, 2 Aug 1997 03:19:26 +0000 (03:19 +0000)]
The reload(sys) test no longer works due to changes in the import
semantics.

27 years agoOops, one more checkin. Use the new tstate/interp interface.
Guido van Rossum [Sat, 2 Aug 1997 03:13:11 +0000 (03:13 +0000)]
Oops, one more checkin.  Use the new tstate/interp interface.

27 years agoThe last of the mass checkins for separate (sub)interpreters.
Guido van Rossum [Sat, 2 Aug 1997 03:10:38 +0000 (03:10 +0000)]
The last of the mass checkins for separate (sub)interpreters.
Everything should now work again.

See the comments for the .h files mass checkin (e.g. pystate.h) for
more detail.

27 years agoRemoved fatal errors from Py_Initmodule4() (and thus from
Guido van Rossum [Sat, 2 Aug 1997 03:07:46 +0000 (03:07 +0000)]
Removed fatal errors from Py_Initmodule4() (and thus from
Py_Initmodule(), which is a macro wrapper around it).

The return value is now a NULL pointer if the initialization failed.
This may make old modules fail with a SEGFAULT, since they don't
expect this kind of failure.  That's OK, since (a) it "never" happens,
and (b) they would fail with a fatal error otherwise, anyway.

Tons of extension modules should now check the return value of
Py_Initmodule*() -- that's on my TODO list.

27 years agoAdded finalization routines.
Guido van Rossum [Sat, 2 Aug 1997 03:02:27 +0000 (03:02 +0000)]
Added finalization routines.

27 years agoAdd finialization routines; fixed some memory leaks related to this.
Guido van Rossum [Sat, 2 Aug 1997 03:01:42 +0000 (03:01 +0000)]
Add finialization routines; fixed some memory leaks related to this.

Reset the SIGINT handler when the finalization is invoked.

27 years agoFree the malloc'ed buffer that holds the command once we're done with it.
Guido van Rossum [Sat, 2 Aug 1997 03:00:42 +0000 (03:00 +0000)]
Free the malloc'ed buffer that holds the command once we're done with it.

Instead of calling Py_Exit(sts), call Py_Cleanup() and return sts.

27 years agoAvoid function calls to access the current thread state and builtins
Guido van Rossum [Sat, 2 Aug 1997 02:59:08 +0000 (02:59 +0000)]
Avoid function calls to access the current thread state and builtins
-- the thread state is passed in as an argument and the builtins are a
member thereof.

27 years agoAdded internal routine PyString_Fini() which deletes all interned
Guido van Rossum [Sat, 2 Aug 1997 02:57:45 +0000 (02:57 +0000)]
Added internal routine PyString_Fini() which deletes all interned
strings.  For use in Py_Finalize() only.

27 years agoMass checkin (more to follow for other directories).
Guido van Rossum [Sat, 2 Aug 1997 02:56:48 +0000 (02:56 +0000)]
Mass checkin (more to follow for other directories).

Introduce truly separate (sub)interpreter objects.  For now, these
must be used by separate threads, created from C.  See Demo/pysvr for
an example of how to use this.  This also rationalizes Python's
initialization and finalization behavior:

Py_Initialize() -- initialize the whole interpreter
Py_Finalize() -- finalize the whole interpreter

tstate = Py_NewInterpreter() -- create a new (sub)interpreter
Py_EndInterpreter(tstate) -- delete a new (sub)interpreter

There are also new interfaces relating to threads and the interpreter
lock, which can be used to create new threads, and sometimes have to
be used to manipulate the interpreter lock when creating or deleting
sub-interpreters.  These are only defined when WITH_THREAD is defined:

PyEval_AcquireLock() -- acquire the interpreter lock
PyEval_ReleaseLock() -- release the interpreter lock

PyEval_AcquireThread(tstate) -- acquire the lock and make the thread current
PyEval_ReleaseThread(tstate) -- release the lock and make NULL current

Other administrative changes:

- The header file bltinmodule.h is deleted.

- The init functions for Import, Sys and Builtin are now internal and
  declared in pythonrun.h.

- Py_Setup() and Py_Cleanup() are no longer declared.

- The interpreter state and thread state structures are now linked
  together in a chain (the chain of interpreters is a static variable
  in pythonrun.c).

- Some members of the interpreter and thread structures have new,
  shorter, more consistent, names.

- Added declarations for _PyImport_{Find,Fixup}Extension() to import.h.

27 years agoAdd cast to PyInt_AS_LONG macro, as suggested by Marc Lemburg.
Guido van Rossum [Sat, 2 Aug 1997 02:41:13 +0000 (02:41 +0000)]
Add cast to PyInt_AS_LONG macro, as suggested by Marc Lemburg.

27 years agoAdd cast to PyFloat_AS_DOUBLE macro, as suggested by Marc Lemburg.
Guido van Rossum [Sat, 2 Aug 1997 02:40:58 +0000 (02:40 +0000)]
Add cast to PyFloat_AS_DOUBLE macro, as suggested by Marc Lemburg.

27 years agoAdd a simple way to enable purify; now you can set the Make variable
Guido van Rossum [Sat, 2 Aug 1997 02:06:20 +0000 (02:06 +0000)]
Add a simple way to enable purify; now you can set the Make variable
PURIFY (e.g. in the Setup file or on the make command line) to point
to the purify command, to run purify.

27 years agoPrint ps (process status) for us when starting a new thread.
Guido van Rossum [Sat, 2 Aug 1997 02:02:22 +0000 (02:02 +0000)]
Print ps (process status) for us when starting a new thread.

Even less shuffling of stdout (only at start of new interpreter).

Interact properly with new interpreter initialization conventions
(must use Py_Initialize/Py_Finalize *and*
Py_NewInterpreter/Py_EndInterpreter).

Probably more minor changes.

27 years agoFunctionality enhancement: allow other threads to use Tk commands
Guido van Rossum [Sat, 2 Aug 1997 00:09:09 +0000 (00:09 +0000)]
Functionality enhancement: allow other threads to use Tk commands
while one thread is blocked in mainloop().  Also, handle signals (not
just interrupts) as soon as they happen.

Cleanup: remove support for Tcl/Tk versions 7.4/4.0.  (I've confirmed
that it works for 7.5/4.1 and 7.6/4.2, as well as 8.0b2.)

Coding style change: instead of ``func (args)'', write ``func(args)''
everywhere.

Minor functionality change: use PyArg_ParseTuple everywhere.  This
should only affect the errors reported for bad argument lists; in
particular, deletefilehandler() is much clearer about what's going
on.

(XXX Still to do: Mac and Win ports to 8.0b2.)

27 years agoCompatibility with Tcl/Tk 8.0b*.
Guido van Rossum [Fri, 1 Aug 1997 19:29:02 +0000 (19:29 +0000)]
Compatibility with Tcl/Tk 8.0b*.

27 years agoAdd definitions for symbolic constants LOCK_{EX,NB,SH,UN}.
Guido van Rossum [Thu, 31 Jul 1997 19:39:54 +0000 (19:39 +0000)]
Add definitions for symbolic constants LOCK_{EX,NB,SH,UN}.

27 years agoExtend the "Don Beaudry hack" with "Guido's corollary" -- if the base
Guido van Rossum [Thu, 31 Jul 1997 03:54:02 +0000 (03:54 +0000)]
Extend the "Don Beaudry hack" with "Guido's corollary" -- if the base
class has a __class__ attribute, call that to create the new class.
This allows us to write metaclasses purely in C!

27 years agoAdded mimify docs (Sjoerd).
Guido van Rossum [Wed, 30 Jul 1997 22:05:07 +0000 (22:05 +0000)]
Added mimify docs (Sjoerd).

27 years agoMention decode_base64 in example.
Guido van Rossum [Wed, 30 Jul 1997 22:02:28 +0000 (22:02 +0000)]
Mention decode_base64 in example.

27 years agol2h target: l2htut was listed twice and l2hapi was skipped. Fixed.
Fred Drake [Wed, 30 Jul 1997 15:59:25 +0000 (15:59 +0000)]
l2h target:  l2htut was listed twice and l2hapi was skipped.  Fixed.

27 years agoFinal set of CW11 projects, before switch to CW Pro 1.
Jack Jansen [Mon, 28 Jul 1997 13:04:22 +0000 (13:04 +0000)]
Final set of CW11 projects, before switch to CW Pro 1.

27 years agoFinally plug the memory leak caused by syntax error (including
Guido van Rossum [Sun, 27 Jul 1997 01:52:50 +0000 (01:52 +0000)]
Finally plug the memory leak caused by syntax error (including
interactive EOF, which leaked *one* byte).

27 years agoPlugged a leak. (The same as the one plugged in compile.c -- forgot
Guido van Rossum [Sat, 26 Jul 1997 23:30:18 +0000 (23:30 +0000)]
Plugged a leak.  (The same as the one plugged in compile.c -- forgot
to free lnotab).

27 years agoMoved the special compile of getbuildno.o to ../Makefile.in.
Guido van Rossum [Fri, 25 Jul 1997 22:35:24 +0000 (22:35 +0000)]
Moved the special compile of getbuildno.o to ../Makefile.in.
A dummy getbuildno.o (with a number of 0) still gets built here,
to make the library complete.

27 years agoBuild getbuildno.o here, to adequately update it every time a new
Guido van Rossum [Fri, 25 Jul 1997 22:34:08 +0000 (22:34 +0000)]
Build getbuildno.o here, to adequately update it every time a new
python executable is built.  (It still won't reflect builds of the
library only, but since the default make target builds the python
executable, that's alright.)

27 years agoUse Py_NewInterpreter() and friends. Remove saving/restoring of std files.
Guido van Rossum [Fri, 25 Jul 1997 20:59:55 +0000 (20:59 +0000)]
Use Py_NewInterpreter() and friends.  Remove saving/restoring of std files.

27 years agoPlug a leak in code_dealloc() (and reordered the deallocs to match the
Guido van Rossum [Fri, 25 Jul 1997 20:13:49 +0000 (20:13 +0000)]
Plug a leak in code_dealloc() (and reordered the deallocs to match the
order of the variables in the declarations).

Also removed an entry in the TODO list that's done.

27 years agoTweaks by Lars Wirzenius to parse some more forms of illegal dates:
Guido van Rossum [Fri, 25 Jul 1997 15:20:52 +0000 (15:20 +0000)]
Tweaks by Lars Wirzenius to parse some more forms of illegal dates:
the comma after the day name is optional if it is a recognized day
name; and the date and month may be swapped.  Thus, the following two
test dates will now be parsed correctly:
Thu, Feb 13 12:16:57 1992
Thu Feb 13 12:16:57 1992

27 years agoAdded createmessage() -- Lars Wirzenius.
Guido van Rossum [Fri, 25 Jul 1997 14:59:10 +0000 (14:59 +0000)]
Added createmessage() -- Lars Wirzenius.

27 years agoPatch by Lars Wirzenius to allow f.readline(length).
Guido van Rossum [Fri, 25 Jul 1997 14:56:01 +0000 (14:56 +0000)]
Patch by Lars Wirzenius to allow f.readline(length).

27 years agoBump up the version number. The date still needs to be set (Guido will
Fred Drake [Fri, 25 Jul 1997 13:14:35 +0000 (13:14 +0000)]
Bump up the version number.  The date still needs to be set (Guido will
have to do that one!), but at least the version will match the release
version.  (1.5a2 got skipped for this.)

27 years agoA couple of grammatical nits.
Fred Drake [Thu, 24 Jul 1997 15:39:16 +0000 (15:39 +0000)]
A couple of grammatical nits.

Re-sequenced the function descriptions so that the formatting is described
before the assumption is made that the reader has a clue about the formatting.

Moved examples to be closer to the functions being demonstrated.

Added example of saferepr() result.

27 years agoRegenerated; __assert__ becomes assert.
Guido van Rossum [Wed, 23 Jul 1997 18:10:52 +0000 (18:10 +0000)]
Regenerated; __assert__ becomes assert.

27 years agoRemoved some variables that are used to exchange data between import.c and
Guido van Rossum [Mon, 21 Jul 1997 14:54:36 +0000 (14:54 +0000)]
Removed some variables that are used to exchange data between import.c and
importdl.c: the MAXSUFFIXSIZE macro is now defined in importdl.h, and
the modules dictionary is now passed using PyImport_GetModuleDict().

Also undefine USE_SHLIB for AIX -- in AIX 4.2 and up, dlfcn.h exists
but we don't want to use it.

27 years agoChanged the patch level to 1.5a3, to avoid confusion with a2 (I'm not
Guido van Rossum [Sat, 19 Jul 1997 23:46:59 +0000 (23:46 +0000)]
Changed the patch level to 1.5a3, to avoid confusion with a2 (I'm not
ready for a release yet).

27 years agoNew test for generic Makefile.pre.in
Guido van Rossum [Sat, 19 Jul 1997 23:14:13 +0000 (23:14 +0000)]
New test for generic Makefile.pre.in

27 years agoAdded description of the extend subdirectory.
Guido van Rossum [Sat, 19 Jul 1997 23:13:10 +0000 (23:13 +0000)]
Added description of the extend subdirectory.

27 years agoFor use with Misc/Makefile.pre.in, the libainstall target must install
Guido van Rossum [Sat, 19 Jul 1997 22:53:39 +0000 (22:53 +0000)]
For use with Misc/Makefile.pre.in, the libainstall target must install
Modules/python.o.

27 years agoAdapted to the new build system.
Guido van Rossum [Sat, 19 Jul 1997 22:52:43 +0000 (22:52 +0000)]
Adapted to the new build system.

27 years agoChange libainstall again: need to install fewer files for "freeze";
Guido van Rossum [Sat, 19 Jul 1997 22:00:45 +0000 (22:00 +0000)]
Change libainstall again: need to install fewer files for "freeze";
add Setup.local to list of installed files.