| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
save and restore the tstate, but explicitly calling
PyEval_SaveThread() does reset it! While I think about how to fix
this for real, here's a fix that avoids getting a fatal error.
|
| |
|
|
|
|
| |
platforms. Argh!
|
| |
|
|
|
|
|
| |
This should make everybody happy, especially since we don't say what
the argument type is (there is disagreement on that, too :-( ).
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
(Two small changes to shup up gcc added.)
|
| |
|
|
|
|
|
| |
readline) to create and use a new thread state object -- otherwise it
would dump core!
|
| |
|
| |
|
|
|
|
|
| |
This code is written by Philip Hazel and Andrew Kuchling.
It requires a new "re.py" module, too.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(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!
|
|
|
|
| |
causes ugly noises under Windows.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
| |
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...)
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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!
|
| |
|
|
|
|
|
| |
"-i" is given. (Yes, I know, giving in to Marc Lemburg who wanted
this :-)
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
lib-tk and lib-stdwin. (BTW this was also done in the previous
checkin of (toplevel)/Makefile.in, though not noted in the checkin
message.)
|
|
|
|
|
|
| |
makesetup script. (Sorry Sjoerd -- I know you proposed this a while
ago and I didn't think it would work then. I looked again and it
does work.)
|
|
|
|
|
|
|
| |
Added 'p' format character for Pascal string (i.e. leading length
byte). This uses the count prefix line 's' does, except that the
count includes the length byte; i.e. '10p' takes 10 bytes packed but
has space for a length byte and 9 data bytes.
|
| |
|
|
|
|
|
|
| |
obsolete now it includes Python.h.
Make all functions K&R compatible (Sue Williams).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
1. Fix bug in (de)compression objects. The final string resize used
zst.total_out to determine the length of the string, but the
(de)compression object will output data a little bit at a time, which
means total_out is not the string size. Fix: save original value of
total_out at the start of the call.
2. Be sure to Py_DECREF the result value if you exit with an
exception.
3. Use PyInt_FromLong instead of Py_BuildValue
4. include more constants from the zlib header file
5. Use PyErr_Format instead of using a local buffer and sprintf.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Since it only returns an error message (or NULL) there's no reason
for it to be unsigned char *, and various compilers like this better.
|
|
|
|
| |
so it doesn't have to be on $PATH.
|
|
|
|
| |
default since they don't work on 64-bit platforms.
|
|
|
|
|
|
|
|
|
|
|
| |
dealloc() functions contained code to free/DECREF the buffer
(there were differences between I and O objects but the logic bug was
the same). Fixed this be setting the buffer pointer to NULL and
testing for that. (This also makes it safe to call close() more than
once.)
XXX Worry: what if you try to read() or write() once the thing is
closed?
|
|
|
|
|
| |
usage message in *three* parts under 510 bytes, for low-end ANSI
compatibility.
|
|
|
|
|
| |
that class based exceptions are enabled by default. -X disables them
in favor of the old-style string exceptions.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
the executable must have that suffix. Note that there is no
corresponding support in the top-level Makefile because I'm not sure
that the install targets there make sense under these circumstances.
|