Guido van Rossum
51b3aa3d38
New "re" regular expression support.
...
This code is written by Philip Hazel and Andrew Kuchling.
It requires a new "re.py" module, too.
1997-10-06 14:43:11 +00:00
Fred Drake
04ac894189
Add the four latex2html output directories: api, ext, lib, tut.
1997-10-06 13:20:17 +00:00
Guido van Rossum
c44d3d6664
Done with tread state descriptions. Sigh!
1997-10-06 05:10:47 +00:00
Guido van Rossum
86b7db3750
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.)
1997-10-06 00:15:31 +00:00
Guido van Rossum
0bfd146594
Added strerror()
1997-10-05 18:54:52 +00:00
Guido van Rossum
bc3b13643d
Removed emacs.py
1997-10-05 18:54:36 +00:00
Guido van Rossum
eb53ae4928
Fixed some stuff that was incorrectly copied from regex.
1997-10-05 18:54:07 +00:00
Guido van Rossum
7974b0f2d8
Documented __import__, callable, isinstance, issubclass,
...
and slice.
1997-10-05 18:53:00 +00:00
Guido van Rossum
df3dba049d
Documented new exceptions and exception classes.
1997-10-05 18:51:26 +00:00
Guido van Rossum
5344d4fd2e
Add -N0 to dvips flags to generate page structure comments.
1997-10-05 18:51:02 +00:00
Guido van Rossum
42cefd03cf
Checkpoint. Added docs for the new exception handling APIs and for
...
the interfaces defined in import.h.
1997-10-05 15:27:29 +00:00
Guido van Rossum
474ba3bd46
The directory containing config.h has changed.
1997-10-05 03:01:28 +00:00
Guido van Rossum
6af6d3511e
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.
1997-10-04 20:29:17 +00:00
Fred Drake
bfeb74d4ca
install: New target that installs shared modules in
...
$exec_prefix/lib/python$VERSION/site-packages by default.
1997-10-04 04:56:40 +00:00
Guido van Rossum
d99d714ac9
Install install-sh with the other config files.
...
Could be useful for an install target in Misc/Makefile.pre.in.
1997-10-04 04:35:24 +00:00
Guido van Rossum
2ac650f385
New version of PyErr_NewException() that is compatible with -X option.
1997-10-03 19:50:55 +00:00
Guido van Rossum
999e5e921e
Initialize Py_UseClassExceptionsFlag to 1.
1997-10-03 19:46:02 +00:00
Guido van Rossum
a7f2e813c9
Remove unreachable "return 1" at end of ensure_fromlist().
1997-10-03 15:33:32 +00:00
Guido van Rossum
aa9606f45a
Fix small omission: with all the new code, sys.exit(None) would print
...
"None"; this should be equivalent to sys.exit(0).
1997-10-03 13:53:28 +00:00
Fred Drake
d80b3bdc1e
Argh; do the same for the "Release" version of the config.
1997-10-02 20:36:45 +00:00
Fred Drake
e40afcf154
Fix up include directories for compiling the resources.
1997-10-02 20:23:52 +00:00
Guido van Rossum
f1b0009a78
Fix path search for test data file so it works under more circumstances.
1997-10-01 22:10:32 +00:00
Guido van Rossum
88d8beec0a
Oops, forgot one.
1997-10-01 04:43:39 +00:00
Guido van Rossum
ae631f7f45
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?)
1997-10-01 04:41:05 +00:00
Guido van Rossum
a008fa52be
Fixed test for socket.error to work when it's a class exception.
1997-10-01 04:39:05 +00:00
Guido van Rossum
0cb96de269
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!
1997-10-01 04:29:29 +00:00
Guido van Rossum
ccf0a44d2d
Fix PYTHONPATH for new names; rename tkinter to lib-tk, rename win to
...
plat-win, get rid of test (which is now a package).
1997-09-30 22:14:39 +00:00
Guido van Rossum
b74eca9349
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)'').
1997-09-30 22:03:16 +00:00
Guido van Rossum
b4102bf5f8
Fix a bug in this code that made it do the wrong thing when an option
...
was a single '-'. Thanks to Andrew Kuchling.
1997-09-30 22:00:13 +00:00
Fred Drake
b55e07f4eb
Fixed up formatting.
1997-09-30 21:59:27 +00:00
Fred Drake
1b914b3397
Fixed up formatting, added descriptions for previously undocumented functions.
1997-09-30 20:14:50 +00:00
Fred Drake
fd9ef4a26d
Removed extern declaration of strdup(). Doesn't appear to be important and
...
causes ugly noises under Windows.
1997-09-30 19:20:01 +00:00
Fred Drake
228776cfa8
PyExc_NumberError -> PyExc_ArithmeticError
1997-09-30 19:12:33 +00:00
Guido van Rossum
ac8a9f3ee9
Handy utility to guess MIME type from extension.
1997-09-30 19:05:50 +00:00
Barry Warsaw
3a74993118
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.
1997-09-30 15:00:18 +00:00
Guido van Rossum
22ecb71078
Added PyExc_Exception and PyErr_NewException.
1997-09-29 23:40:07 +00:00
Guido van Rossum
271f977686
Seem to be some changes related to DLL version from string resource,
...
again (Mark Hammond is the cause of all this).
1997-09-29 23:39:31 +00:00
Guido van Rossum
ec6809291d
DLL version is now loaded from a string resource.
1997-09-29 23:37:12 +00:00
Guido van Rossum
f57c17034a
Remove #ifdef __cplusplus.
1997-09-29 23:36:42 +00:00
Guido van Rossum
ff8c9dab19
Bump version and store DLL version in a string variable (for branding).
1997-09-29 23:36:17 +00:00
Guido van Rossum
6c1e5f2033
Get DLL version from a variable.
1997-09-29 23:34:23 +00:00
Guido van Rossum
4f3bf1e383
Don't intern the key string for getitem and delitem.
1997-09-29 23:31:11 +00:00
Guido van Rossum
b4cfdfa077
Removed special Windows defines, at Mark Hammond's request.
1997-09-29 23:29:08 +00:00
Guido van Rossum
83bd9a9c8c
Move Widget.config() c.s. to Misc class, so the Tk class also inherits them.
1997-09-29 23:24:52 +00:00
Guido van Rossum
332e14437c
Use sys.exc_info() where needed.
...
Use "re" module, making it threadsafe.
1997-09-29 23:23:46 +00:00
Guido van Rossum
f15d15964b
Use sys.exc_info() where needed.
1997-09-29 23:22:12 +00:00
Guido van Rossum
c90ad2103e
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.
1997-09-29 23:17:48 +00:00
Guido van Rossum
a3beb63eb7
Removing emacs.py, which is obsolete.
1997-09-29 13:19:53 +00:00
Guido van Rossum
da286666b2
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.
1997-09-29 04:04:39 +00:00
Guido van Rossum
54e2091ba2
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.
1997-09-28 05:52:41 +00:00