]> granicus.if.org Git - python/log
python
27 years agoReturn the error code from most commands, rather than swallowing it.
Guido van Rossum [Tue, 7 Oct 1997 14:49:56 +0000 (14:49 +0000)]
Return the error code from most commands, rather than swallowing it.
Adapted the example (lying slightly about the string printed by
login()).

27 years agoFix join to support multiple arguments.
Guido van Rossum [Tue, 7 Oct 1997 14:48:23 +0000 (14:48 +0000)]
Fix join to support multiple arguments.
(Why isn't this file identical to ntpath.py?)

27 years agoAdd XXX note about wanting support for copy_reg.py...
Guido van Rossum [Tue, 7 Oct 1997 14:47:50 +0000 (14:47 +0000)]
Add XXX note about wanting support for copy_reg.py...

27 years agoAdd Jeff Epler's interact() function. Note that it is broken.
Guido van Rossum [Tue, 7 Oct 1997 14:47:24 +0000 (14:47 +0000)]
Add Jeff Epler's interact() function.  Note that it is broken.
(It should probably be withdrawn :-( )

27 years agoAdd optional arguments lo and hi to insort() and bisect(), to support
Guido van Rossum [Tue, 7 Oct 1997 14:45:49 +0000 (14:45 +0000)]
Add optional arguments lo and hi to insort() and bisect(), to support
using arrays containing leading or trailing garbage.

27 years agoUse K&R function prototypes.
Guido van Rossum [Tue, 7 Oct 1997 14:44:48 +0000 (14:44 +0000)]
Use K&R function prototypes.

27 years agoThe sequence behavior is now on the Exception root class rather than
Guido van Rossum [Tue, 7 Oct 1997 14:41:04 +0000 (14:41 +0000)]
The sequence behavior is now on the Exception root class rather than
on the StandardError class.

27 years agoAdded pointer to api.tex and note about the out-of-date-ness of this
Guido van Rossum [Tue, 7 Oct 1997 14:40:16 +0000 (14:40 +0000)]
Added pointer to api.tex and note about the out-of-date-ness of this
document.

27 years agoSet Oct 10 as the release date.
Guido van Rossum [Tue, 7 Oct 1997 14:39:43 +0000 (14:39 +0000)]
Set Oct 10 as the release date.

27 years agoChange title to {Python/C API Reference Manual}; remove \bcode \ecode
Guido van Rossum [Tue, 7 Oct 1997 14:38:54 +0000 (14:38 +0000)]
Change title to {Python/C API Reference Manual}; remove \bcode \ecode
which appears to be out of fashion in this file.

27 years agoTypo discovered by Case Roole.
Guido van Rossum [Tue, 7 Oct 1997 14:37:58 +0000 (14:37 +0000)]
Typo discovered by Case Roole.

27 years agoBe more careful with closing fd's 0,1,2.
Guido van Rossum [Tue, 7 Oct 1997 14:37:31 +0000 (14:37 +0000)]
Be more careful with closing fd's 0,1,2.

27 years agoAdd note about condition.py.
Guido van Rossum [Tue, 7 Oct 1997 14:37:00 +0000 (14:37 +0000)]
Add note about condition.py.

27 years agoCompleted the changes between 1.5a3 and now. Not yet sorted though.
Guido van Rossum [Tue, 7 Oct 1997 00:12:43 +0000 (00:12 +0000)]
Completed the changes between 1.5a3 and now.  Not yet sorted though.

27 years agoAnd "ni" has been documented...
Fred Drake [Mon, 6 Oct 1997 21:53:50 +0000 (21:53 +0000)]
And "ni" has been documented...

27 years agoOops; don't know if this was my typo or not: There was a "p" on a line that
Fred Drake [Mon, 6 Oct 1997 21:52:31 +0000 (21:52 +0000)]
Oops; don't know if this was my typo or not:  There was a "p" on a line that
should have been blank.

27 years agoUpdated the section "Parsing Python".
Fred Drake [Mon, 6 Oct 1997 21:41:30 +0000 (21:41 +0000)]
Updated the section "Parsing Python".

27 years agoAdded keyword module entry.
Fred Drake [Mon, 6 Oct 1997 21:40:48 +0000 (21:40 +0000)]
Added keyword module entry.

27 years agoMinor nits (Lib/token.py is a file, token is a module...).
Fred Drake [Mon, 6 Oct 1997 21:40:20 +0000 (21:40 +0000)]
Minor nits (Lib/token.py is a file, token is a module...).

Added docs for symbol and token modules at the end.

27 years agoDocumentation for the keyword module.
Fred Drake [Mon, 6 Oct 1997 21:39:16 +0000 (21:39 +0000)]
Documentation for the keyword module.

27 years agoReduced number of temporary names used at module scope. Use underscores in
Fred Drake [Mon, 6 Oct 1997 21:28:04 +0000 (21:28 +0000)]
Reduced number of temporary names used at module scope.  Use underscores in
front of temporary names in the module namespace.

27 years agoMove the pprint docs after the code docs, so that all parser/codegen type
Fred Drake [Mon, 6 Oct 1997 21:26:03 +0000 (21:26 +0000)]
Move the pprint docs after the code docs, so that all parser/codegen type
things come together.

27 years agoFix comment to add the all-important trailing colon to the example.
Guido van Rossum [Mon, 6 Oct 1997 21:09:32 +0000 (21:09 +0000)]
Fix comment to add the all-important trailing colon to the example.
Print the author with the revision date and filename.

27 years agoReduced number of temporary names used at module scope. Use underscores in
Fred Drake [Mon, 6 Oct 1997 21:06:29 +0000 (21:06 +0000)]
Reduced number of temporary names used at module scope.  Use underscores in
front of temporary names in the module namespace.

27 years agoDone with adding changes from 1.4 till 1.5a3.
Guido van Rossum [Mon, 6 Oct 1997 21:04:35 +0000 (21:04 +0000)]
Done with adding changes from 1.4 till 1.5a3.

27 years agoDon't do weird things with the "import parser"; just do it. Sheesh...
Fred Drake [Mon, 6 Oct 1997 20:56:43 +0000 (20:56 +0000)]
Don't do weird things with the "import parser"; just do it.  Sheesh...

27 years agoThe usual (and some new modules).
Guido van Rossum [Mon, 6 Oct 1997 20:19:59 +0000 (20:19 +0000)]
The usual (and some new modules).

27 years agoA variant on webchecker that creates a mirror copy of a remote site.
Guido van Rossum [Mon, 6 Oct 1997 18:54:25 +0000 (18:54 +0000)]
A variant on webchecker that creates a mirror copy of a remote site.

27 years agoSeveral changes:
Guido van Rossum [Mon, 6 Oct 1997 18:54:01 +0000 (18:54 +0000)]
Several changes:

- Change the code that looks for robots.txt to always look in /, even
if the "root" path is somewhere deep down below.

- Add link processing in <AREA> tags.

- Change safeclose() to avoid crashing when the file has no geturl()
method.

27 years agoDocument the mapping object's new get() method.
Barry Warsaw [Mon, 6 Oct 1997 17:50:48 +0000 (17:50 +0000)]
Document the mapping object's new get() method.

27 years agoUserDict.get(): New method to mirror built-in dictionaries' get()
Barry Warsaw [Mon, 6 Oct 1997 17:50:04 +0000 (17:50 +0000)]
UserDict.get(): New method to mirror built-in dictionaries' get()
method.

27 years agodict_get(): New method for item access with different semantics than
Barry Warsaw [Mon, 6 Oct 1997 17:49:20 +0000 (17:49 +0000)]
dict_get(): New method for item access with different semantics than
__getitem__().  This method never raises an exception; if the key is
not in the dictionary, the second (optional) argument is returned.  If
the second argument is not provided and the key is missing, None is
returned.

mapp_methods: added "get" method.

27 years agoMove the __getitem__() definition from StandardException to Exception.
Fred Drake [Mon, 6 Oct 1997 15:48:20 +0000 (15:48 +0000)]
Move the __getitem__() definition from StandardException to Exception.
This allows stuff like this out of the box:

try:
    ...
except socket.error, (code, msg):
    ...

27 years agoNew "re" regular expression support.
Guido van Rossum [Mon, 6 Oct 1997 14:45:17 +0000 (14:45 +0000)]
New "re" regular expression support.
The new re module was written by Andrew Kuchling and uses the pcre
code in ../Modules/.  The old re module has been renamed to re1,
just in case you need it for comparison.

27 years agoNew "re" regular expression support.
Guido van Rossum [Mon, 6 Oct 1997 14:43:11 +0000 (14:43 +0000)]
New "re" regular expression support.
This code is written by Philip Hazel and Andrew Kuchling.
It requires a new "re.py" module, too.

27 years agoAdd the four latex2html output directories: api, ext, lib, tut.
Fred Drake [Mon, 6 Oct 1997 13:20:17 +0000 (13:20 +0000)]
Add the four latex2html output directories:  api, ext, lib, tut.

27 years agoDone with tread state descriptions. Sigh!
Guido van Rossum [Mon, 6 Oct 1997 05:10:47 +0000 (05:10 +0000)]
Done with tread state descriptions.  Sigh!

27 years agoOops -- needed to fix another place affected by the change back to
Guido van Rossum [Mon, 6 Oct 1997 00:15:31 +0000 (00:15 +0000)]
Oops -- needed to fix another place affected by the change back to
$(MACHDEP) being just the platform name, without "plat-" prefix...
(To be precise, the libainstall target was totally broken.)

27 years agoAdded strerror()
Guido van Rossum [Sun, 5 Oct 1997 18:54:52 +0000 (18:54 +0000)]
Added strerror()

27 years agoRemoved emacs.py
Guido van Rossum [Sun, 5 Oct 1997 18:54:36 +0000 (18:54 +0000)]
Removed emacs.py

27 years agoFixed some stuff that was incorrectly copied from regex.
Guido van Rossum [Sun, 5 Oct 1997 18:54:07 +0000 (18:54 +0000)]
Fixed some stuff that was incorrectly copied from regex.

27 years agoDocumented __import__, callable, isinstance, issubclass,
Guido van Rossum [Sun, 5 Oct 1997 18:53:00 +0000 (18:53 +0000)]
Documented __import__, callable, isinstance, issubclass,
and slice.

27 years agoDocumented new exceptions and exception classes.
Guido van Rossum [Sun, 5 Oct 1997 18:51:26 +0000 (18:51 +0000)]
Documented new exceptions and exception classes.

27 years agoAdd -N0 to dvips flags to generate page structure comments.
Guido van Rossum [Sun, 5 Oct 1997 18:51:02 +0000 (18:51 +0000)]
Add -N0 to dvips flags to generate page structure comments.

27 years agoCheckpoint. Added docs for the new exception handling APIs and for
Guido van Rossum [Sun, 5 Oct 1997 15:27:29 +0000 (15:27 +0000)]
Checkpoint.  Added docs for the new exception handling APIs and for
the interfaces defined in import.h.

27 years agoThe directory containing config.h has changed.
Guido van Rossum [Sun, 5 Oct 1997 03:01:28 +0000 (03:01 +0000)]
The directory containing config.h has changed.

27 years agoTurns out whatsound.py and sndhdr.py were identical modules.
Guido van Rossum [Sat, 4 Oct 1997 20:29:17 +0000 (20:29 +0000)]
Turns out whatsound.py and sndhdr.py were identical modules.
Since there's also an imghdr.py file, I propose to make sndhdr.py the
official one.  For compatibility, whatsound.py imports * from
sndhdr.py.

27 years agoinstall: New target that installs shared modules in
Fred Drake [Sat, 4 Oct 1997 04:56:40 +0000 (04:56 +0000)]
install:  New target that installs shared modules in
$exec_prefix/lib/python$VERSION/site-packages by default.

27 years agoInstall install-sh with the other config files.
Guido van Rossum [Sat, 4 Oct 1997 04:35:24 +0000 (04:35 +0000)]
Install install-sh with the other config files.
Could be useful for an install target in Misc/Makefile.pre.in.

27 years agoNew version of PyErr_NewException() that is compatible with -X option.
Guido van Rossum [Fri, 3 Oct 1997 19:50:55 +0000 (19:50 +0000)]
New version of PyErr_NewException() that is compatible with -X option.

27 years agoInitialize Py_UseClassExceptionsFlag to 1.
Guido van Rossum [Fri, 3 Oct 1997 19:46:02 +0000 (19:46 +0000)]
Initialize Py_UseClassExceptionsFlag to 1.

27 years agoRemove unreachable "return 1" at end of ensure_fromlist().
Guido van Rossum [Fri, 3 Oct 1997 15:33:32 +0000 (15:33 +0000)]
Remove unreachable "return 1" at end of ensure_fromlist().

27 years agoFix small omission: with all the new code, sys.exit(None) would print
Guido van Rossum [Fri, 3 Oct 1997 13:53:28 +0000 (13:53 +0000)]
Fix small omission: with all the new code, sys.exit(None) would print
"None"; this should be equivalent to sys.exit(0).

27 years agoArgh; do the same for the "Release" version of the config.
Fred Drake [Thu, 2 Oct 1997 20:36:45 +0000 (20:36 +0000)]
Argh; do the same for the "Release" version of the config.

27 years agoFix up include directories for compiling the resources.
Fred Drake [Thu, 2 Oct 1997 20:23:52 +0000 (20:23 +0000)]
Fix up include directories for compiling the resources.

27 years agoFix path search for test data file so it works under more circumstances.
Guido van Rossum [Wed, 1 Oct 1997 22:10:32 +0000 (22:10 +0000)]
Fix path search for test data file so it works under more circumstances.

27 years agoOops, forgot one.
Guido van Rossum [Wed, 1 Oct 1997 04:43:39 +0000 (04:43 +0000)]
Oops, forgot one.

27 years agoThere was actually a test that ensured that raising an exception A
Guido van Rossum [Wed, 1 Oct 1997 04:41:05 +0000 (04:41 +0000)]
There was actually a test that ensured that raising an exception A
with an instance of a derived class B would really raise an A, not a
B.  Since Barry fixed this anomalous behaviour, I though I might as
well fix the test!  (Hmm, Barry, did you not run the tests or did you
miss that test_opcodes failed?)

27 years agoFixed test for socket.error to work when it's a class exception.
Guido van Rossum [Wed, 1 Oct 1997 04:39:05 +0000 (04:39 +0000)]
Fixed test for socket.error to work when it's a class exception.

27 years agoApply two changes, systematically:
Guido van Rossum [Wed, 1 Oct 1997 04:29:29 +0000 (04:29 +0000)]
Apply two changes, systematically:

(1) Use PyErr_NewException("module.class", NULL, NULL) to create the
    exception object.

(2) Remove all calls to Py_FatalError(); instead, return or
    ignore the errors -- the import code now checks PyErr_Occurred()
    after calling a module's init function, so it's no longer a
    fatal error for the initialization to fail.

Also did some small cleanups, e.g. removed unnecessary test for
"already initialized" from initfpectl(), and unified
initposix()/initnt().

I haven't checked this very thoroughly, so while the changes are
pretty trivial -- beware of untested code!

27 years agoFix PYTHONPATH for new names; rename tkinter to lib-tk, rename win to
Guido van Rossum [Tue, 30 Sep 1997 22:14:39 +0000 (22:14 +0000)]
Fix PYTHONPATH for new names; rename tkinter to lib-tk, rename win to
plat-win, get rid of test (which is now a package).

27 years agoChange PyEval_SaveThread() and PyEval_RestoreThread() to always do the
Guido van Rossum [Tue, 30 Sep 1997 22:03:16 +0000 (22:03 +0000)]
Change PyEval_SaveThread() and PyEval_RestoreThread() to always do the
tstate swapping.  Only the acquiring and releasing of the lock is
conditional (twice, under ``#ifdef WITH_THREAD'' and inside ``if
(interpreter_lock)'').

27 years agoFix a bug in this code that made it do the wrong thing when an option
Guido van Rossum [Tue, 30 Sep 1997 22:00:13 +0000 (22:00 +0000)]
Fix a bug in this code that made it do the wrong thing when an option
was a single '-'.  Thanks to Andrew Kuchling.

27 years agoFixed up formatting.
Fred Drake [Tue, 30 Sep 1997 21:59:27 +0000 (21:59 +0000)]
Fixed up formatting.

27 years agoFixed up formatting, added descriptions for previously undocumented functions.
Fred Drake [Tue, 30 Sep 1997 20:14:50 +0000 (20:14 +0000)]
Fixed up formatting, added descriptions for previously undocumented functions.

27 years agoRemoved extern declaration of strdup(). Doesn't appear to be important and
Fred Drake [Tue, 30 Sep 1997 19:20:01 +0000 (19:20 +0000)]
Removed extern declaration of strdup().  Doesn't appear to be important and
causes ugly noises under Windows.

27 years agoPyExc_NumberError -> PyExc_ArithmeticError
Fred Drake [Tue, 30 Sep 1997 19:12:33 +0000 (19:12 +0000)]
PyExc_NumberError -> PyExc_ArithmeticError

27 years agoHandy utility to guess MIME type from extension.
Guido van Rossum [Tue, 30 Sep 1997 19:05:50 +0000 (19:05 +0000)]
Handy utility to guess MIME type from extension.

27 years agoPyErr_NormalizeException(): If the exception's type is a class and the
Barry Warsaw [Tue, 30 Sep 1997 15:00:18 +0000 (15:00 +0000)]
PyErr_NormalizeException(): If the exception's type is a class and the
instance's class is a subclass of this, then use the instance's class
as the exception type.

27 years agoAdded PyExc_Exception and PyErr_NewException.
Guido van Rossum [Mon, 29 Sep 1997 23:40:07 +0000 (23:40 +0000)]
Added PyExc_Exception and PyErr_NewException.

27 years agoSeem to be some changes related to DLL version from string resource,
Guido van Rossum [Mon, 29 Sep 1997 23:39:31 +0000 (23:39 +0000)]
Seem to be some changes related to DLL version from string resource,
again (Mark Hammond is the cause of all this).

27 years agoDLL version is now loaded from a string resource.
Guido van Rossum [Mon, 29 Sep 1997 23:37:12 +0000 (23:37 +0000)]
DLL version is now loaded from a string resource.

27 years agoRemove #ifdef __cplusplus.
Guido van Rossum [Mon, 29 Sep 1997 23:36:42 +0000 (23:36 +0000)]
Remove #ifdef __cplusplus.

27 years agoBump version and store DLL version in a string variable (for branding).
Guido van Rossum [Mon, 29 Sep 1997 23:36:17 +0000 (23:36 +0000)]
Bump version and store DLL version in a string variable (for branding).

27 years agoGet DLL version from a variable.
Guido van Rossum [Mon, 29 Sep 1997 23:34:23 +0000 (23:34 +0000)]
Get DLL version from a variable.

27 years agoDon't intern the key string for getitem and delitem.
Guido van Rossum [Mon, 29 Sep 1997 23:31:11 +0000 (23:31 +0000)]
Don't intern the key string for getitem and delitem.

27 years agoRemoved special Windows defines, at Mark Hammond's request.
Guido van Rossum [Mon, 29 Sep 1997 23:29:08 +0000 (23:29 +0000)]
Removed special Windows defines, at Mark Hammond's request.

27 years agoMove Widget.config() c.s. to Misc class, so the Tk class also inherits them.
Guido van Rossum [Mon, 29 Sep 1997 23:24:52 +0000 (23:24 +0000)]
Move Widget.config() c.s. to Misc class, so the Tk class also inherits them.

27 years agoUse sys.exc_info() where needed.
Guido van Rossum [Mon, 29 Sep 1997 23:23:46 +0000 (23:23 +0000)]
Use sys.exc_info() where needed.
Use "re" module, making it threadsafe.

27 years agoUse sys.exc_info() where needed.
Guido van Rossum [Mon, 29 Sep 1997 23:22:12 +0000 (23:22 +0000)]
Use sys.exc_info() where needed.

27 years agoNo longer need to be very careful with saving the exception state
Guido van Rossum [Mon, 29 Sep 1997 23:17:48 +0000 (23:17 +0000)]
No longer need to be very careful with saving the exception state
first.  Don't store the traceback as a local variable, to avoid
circular references.

27 years agoRemoving emacs.py, which is obsolete.
Guido van Rossum [Mon, 29 Sep 1997 13:19:53 +0000 (13:19 +0000)]
Removing emacs.py, which is obsolete.

27 years agoAdd optional bufsize argument to various calls so we can make the
Guido van Rossum [Mon, 29 Sep 1997 04:04:39 +0000 (04:04 +0000)]
Add optional bufsize argument to various calls so we can make the
os.fdopen() calls unbuffered.  I presume that it's enough if we can
make all three of them (for stdin, stdout, and stderr) unbuffered and
don't need to specify different buffer sizes per file -- that would
complicate the interface more than I care for.

27 years agoAdd an optional hack for threads in Tkinter.
Guido van Rossum [Sun, 28 Sep 1997 05:52:41 +0000 (05:52 +0000)]
Add an optional hack for threads in Tkinter.
This one works!  However it requires using a modified version of
tclNotify.c (provided), which requires access to the Tcl source
to compile it.  In order to enable this hack, add the following
to the Setup line for _tkinter:
   tclNotify.c -DHAVE_PYTCL_WAITUNTILEVENT -I$(TCL)/generic
where TCL points to the source tree of Tcl 8.0.  Other versions
of Tcl are not supported.

The tclNotify.c file is copyrighted by Sun Microsystems; the
licensing terms are in the file license.terms.  According to this
file, no further permission to distribute this is required,
provided the file license.terms is included.  Hence, I am checking
that in, too.

27 years agoAdd plat- prefix to MACHDEPPATH, now that it's been removed from MACHDEP.
Guido van Rossum [Sun, 28 Sep 1997 05:45:40 +0000 (05:45 +0000)]
Add plat- prefix to MACHDEPPATH, now that it's been removed from MACHDEP.

27 years agoRemove plat- prefix from MACHDEP macro;
Guido van Rossum [Sun, 28 Sep 1997 05:44:03 +0000 (05:44 +0000)]
Remove plat- prefix from MACHDEP macro;
instead it is added to MACHDEPPATH in Modules/Setup.in

27 years agoChanges submitted by Marc-Andre Lemburg to add two tables: errorcode
Guido van Rossum [Sun, 28 Sep 1997 05:41:56 +0000 (05:41 +0000)]
Changes submitted by Marc-Andre Lemburg to add two tables: errorcode
maps errno numbers to errno names (e.g. EINTR), and errorcode maps
them to message strings.  (The latter is redundant because
the new call posix.strerror() now does the same, but alla...)

27 years agoIn whichmodule(), use __module__ if set.
Guido van Rossum [Sun, 28 Sep 1997 05:38:51 +0000 (05:38 +0000)]
In whichmodule(), use __module__ if set.

27 years agoSet the completer's word break characters appropriate for Python.
Guido van Rossum [Fri, 26 Sep 1997 23:00:37 +0000 (23:00 +0000)]
Set the completer's word break characters appropriate for Python.

27 years agoUse Marc Lemburg's tb_lineno() to calculate the correct line number.
Guido van Rossum [Fri, 26 Sep 1997 22:43:02 +0000 (22:43 +0000)]
Use Marc Lemburg's tb_lineno() to calculate the correct line number.
Apparently the traceback object doesn't contains the right linenumber
when -O is used.  Rather than guessing whether -O is on or off, use
tb_lineno() unconditionally.

27 years agoWord completion for the new readline.set_completer() function.
Guido van Rossum [Fri, 26 Sep 1997 22:04:56 +0000 (22:04 +0000)]
Word completion for the new readline.set_completer() function.

When completing a simple identifier, it completes keywords, built-ins
and globals in __main__; when completing NAME.NAME..., it evaluates
(!) the expression up to the last dot and completes its attributes.

It's very cool to do "import string" type "string.", hit the
completion key (twice), and see the list of names defined by the
string module!

Tip: to use the tab key as the completion key, call

    readline.parse_and_bind("tab: complete")

27 years agoReordered and reformatted, and added some cool new features:
Guido van Rossum [Fri, 26 Sep 1997 21:51:21 +0000 (21:51 +0000)]
Reordered and reformatted, and added some cool new features:

set_completer(function)
parse_and_bind(string)
read_init_file(filename)

The first is the most exciting feature: with an appropriate Python
completer function, it can do dynamic completion based on the contents
of your namespace!

27 years agoRelease interpreter lock around readline call in [raw_]input().
Guido van Rossum [Fri, 26 Sep 1997 21:47:43 +0000 (21:47 +0000)]
Release interpreter lock around readline call in [raw_]input().

27 years agoChange bind() to tag_bind() so it works again.
Guido van Rossum [Wed, 24 Sep 1997 13:39:51 +0000 (13:39 +0000)]
Change bind() to tag_bind() so it works again.

27 years agoFix by Sjoerd: don't want to resize to zero length.
Guido van Rossum [Mon, 22 Sep 1997 16:14:27 +0000 (16:14 +0000)]
Fix by Sjoerd: don't want to resize to zero length.

27 years agoChanges by jack so the generated modules export their types
Guido van Rossum [Mon, 22 Sep 1997 16:13:19 +0000 (16:13 +0000)]
Changes by jack so the generated modules export their types
to Python.

27 years agoExport type objects to Python
Jack Jansen [Sat, 20 Sep 1997 17:40:22 +0000 (17:40 +0000)]
Export type objects to Python

27 years agoThe command can now either be a string (as before) or a list of
Guido van Rossum [Thu, 18 Sep 1997 20:00:39 +0000 (20:00 +0000)]
The command can now either be a string (as before) or a list of
arguments for execvp (for those who don't want the shell's argument
parsing).

27 years agoPy_Initialize(): move the call to _PyImport_FixupExtension() to after
Barry Warsaw [Thu, 18 Sep 1997 16:42:02 +0000 (16:42 +0000)]
Py_Initialize(): move the call to _PyImport_FixupExtension() to after
the phase 2 init of the __builtin__ module, so that multiple
interpreters will get the right exceptions.

27 years agoiniterrors(): Eliminate circular reference which was causing a small
Barry Warsaw [Thu, 18 Sep 1997 03:44:38 +0000 (03:44 +0000)]
initerrors(): Eliminate circular reference which was causing a small
but annoying memory leak.  This was introduced when PyExc_Exception
was added; the loop above populating the PyExc_StandardError exception
tuple started at index 1 in bltin_exc, but PyExc_Exception was added
at index 0, so PyExc_StandardError was getting inserted in itself!
How else can a tuple include itself?!

Change the loop to start at index 2.

This was a *fun* one! :-)