Guido van Rossum
e2ad88c202
Rewrite normcase() using string.translate...
1997-08-12 14:46:58 +00:00
Guido van Rossum
efa683726f
Treat all HTTP/1.* versions the same.
1997-08-12 14:46:13 +00:00
Guido van Rossum
2567dd6d44
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)
1997-08-11 21:52:17 +00:00
Guido van Rossum
44620646fd
Renamed Py_input_hook to PyOS_InputHook.
...
Also cleaned out some CR's left by the VC++ editor.
1997-08-11 18:57:29 +00:00
Guido van Rossum
0357d02eab
Rewrite using class, to make waiting for processes possible;
...
by default children are waited for automatically.
1997-08-11 03:27:24 +00:00
Guido van Rossum
0b4b8a21ce
Changed indents to 4 *spaces*; added Emacs variables to avoid
...
inserting tabs. All this (and the previous patch) in preparation for
porting to NT.
1997-08-10 16:56:48 +00:00
Guido van Rossum
9a6e855a27
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.
1997-08-10 16:47:17 +00:00
Barry Warsaw
516b6208c7
#Fixed two byte-compiler errors
1997-08-09 06:43:20 +00:00
Barry Warsaw
c72c11c9e3
#Checkpointing X/Emacs 20'fication of this mode.
1997-08-09 06:42:08 +00:00
Guido van Rossum
98d9d09090
Added O_BINARY and O_TEXT (for Windows).
1997-08-08 21:48:51 +00:00
Guido van Rossum
9c43c590bc
More emphasis on os.environ's calling of putenv; and added hint about
...
flags for open().
1997-08-08 21:05:09 +00:00
Barry Warsaw
7d6b7d3f54
#Bumping to version 3.0
1997-08-08 16:19:03 +00:00
Jack Jansen
48f662de92
mkalias() now has an optional third parameter to create relative
...
aliases (Just)
1997-08-08 15:00:59 +00:00
Jack Jansen
756a69fa0d
- Added classes to support class/property generation by gensuitemodule
...
- Fixed Property class: selector is a 'type', not an 'enum'
1997-08-08 15:00:03 +00:00
Jack Jansen
a8441ded7a
Added (dummy) PyOS_FiniInterrupts
1997-08-08 14:57:37 +00:00
Jack Jansen
7330b39a41
Adapted for 1.5a3: Py_SupressPrintingFlag is gone, and
...
Py_SetProgramName replaces Py_GetProgramName
1997-08-08 14:56:41 +00:00
Jack Jansen
4be0ce3bc6
New version number, new tk resources, new error numbers, new GUSI
1997-08-08 14:55:03 +00:00
Jack Jansen
12f318a6fc
Don't define ENOENT when compiling with MSL
1997-08-08 14:53:16 +00:00
Jack Jansen
04df97cdd8
CW11 projects replaced by CW Pro 1 projects, and all cfm68k/ppc
...
projects unified (as much as possible: PythonCore is still separate).
1997-08-08 14:51:57 +00:00
Jack Jansen
e3fa8747fa
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).
1997-08-08 14:51:54 +00:00
Jack Jansen
6654422407
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.
1997-08-08 14:49:02 +00:00
Guido van Rossum
622f73f188
Remove unised variable
1997-08-07 19:22:48 +00:00
Guido van Rossum
02c0467f67
Rather unsatisfactory temporary hack to get it to run
...
under WIN32 -- remove file handler interface, don't use Py_input_hook.
1997-08-07 00:12:22 +00:00
Guido van Rossum
29c1ea5af0
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.
1997-08-07 00:11:34 +00:00
Guido van Rossum
fb84255e67
New version of Vladimir Marangozov's AIX hacks -- simpler etc.
1997-08-06 23:42:07 +00:00
Guido van Rossum
b06df27843
--with-readline is obsolete (and some editorial stuff in README)
1997-08-05 21:50:20 +00:00
Guido van Rossum
3c7c678b94
Got rid of --with-readline, at last.
1997-08-05 21:47:42 +00:00
Guido van Rossum
9b5dbedf43
Attempt to import readline at interactive startup.
1997-08-05 21:34:14 +00:00
Guido van Rossum
717c6f95be
Move GNU readline interface to ../Modules/readline.c.
...
Add Py_input_hook (used by _tkinter and perhaps Gist).
1997-08-05 21:28:12 +00:00
Guido van Rossum
0969d36275
New mechanism for GNU readline interface, via module
1997-08-05 21:27:50 +00:00
Guido van Rossum
570278be6e
Add test for function comparisons
1997-08-05 16:52:50 +00:00
Guido van Rossum
83f9ad8399
Fix bug in comparing function objects detected by Sjoerd:
...
SystemError: bad argument to internal function
caused by comparing NULL pointer default args.
1997-08-05 16:51:05 +00:00
Guido van Rossum
d6615ab30c
Get READABLE c.s. from _tkinter instead of conditional definition.
...
in Tk.destroy(), reset _default_root to None when it is us.
1997-08-05 02:35:01 +00:00
Guido van Rossum
1d529d1ecd
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.)
1997-08-05 02:30:44 +00:00
Guido van Rossum
7f400be210
Add pointer to new BSDDB module.
1997-08-05 02:25:24 +00:00
Guido van Rossum
668e441a86
purported linux portability patch (Oliver Andrich)
1997-08-05 02:24:57 +00:00
Guido van Rossum
5d1770ee24
Py_Cleanup() is now Py_Finalize().
1997-08-05 02:23:48 +00:00
Guido van Rossum
cc283f56a7
Merge Py_Cleanup() into Py_Finalize(). Call the various small Fini()
...
functions.
1997-08-05 02:22:03 +00:00
Guido van Rossum
085d269f1d
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). */
1997-08-05 02:20:51 +00:00
Guido van Rossum
f9c90c533e
Renamed a local label that was accidentally grandly renamed to
...
'Py_Cleanup' back to 'cleanup'.
1997-08-05 02:18:01 +00:00
Guido van Rossum
fbbd57e4ca
Added _Fini() routines to free up some memory
1997-08-05 02:16:08 +00:00
Guido van Rossum
971a7aaeac
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.
1997-08-05 02:15:12 +00:00
Guido van Rossum
1f39c5c666
Added separate free list for cfunction (builtin method) objects, for a
...
few percent speed up. Also add PyCFunction_Fini() to discard it.
1997-08-05 02:11:41 +00:00
Guido van Rossum
404b95d9ba
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.
1997-08-05 02:09:46 +00:00
Guido van Rossum
a0d349f46a
Added separate free list for instance method objects, for a few
...
percent speed up. Also add PyMethod_Fini() to discard it.
1997-08-05 02:06:53 +00:00
Guido van Rossum
e09fb55f29
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).
1997-08-05 02:04:34 +00:00
Guido van Rossum
d085e88d3c
Added Py_Malloc and friends as well as PyMem_Malloc and friends.
1997-08-05 01:59:22 +00:00
Guido van Rossum
5c159bd855
Plug memory leak (DECREF doc string properly after inserting in dict).
1997-08-04 23:55:25 +00:00
Guido van Rossum
7995ed204a
The reload(sys) test no longer works due to changes in the import
...
semantics.
1997-08-02 03:19:26 +00:00
Guido van Rossum
b02158efa3
Oops, one more checkin. Use the new tstate/interp interface.
1997-08-02 03:13:11 +00:00