summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* This fix (across 4 files in 3 directories) solves a subtle problem withGuido van Rossum1997-11-142-0/+10
| | | | | | | | | | | | | | | signal handlers in a fork()ed child process when Python is compiled with thread support. The bug was reported by Scott <scott@chronis.icgroup.com>. What happens is that after a fork(), the variables used by the signal module to determine whether this is the main thread or not are bogus, and it decides that no thread is the main thread, so no signals will be delivered. The solution is the addition of PyOS_AfterFork(), which fixes the signal module's variables. A dummy version of the function is present in the intrcheck.c source file which is linked when the signal module is not used.
* Got rid of the errorstr dictionary, which is redundant now thatGuido van Rossum1997-11-041-21/+9
| | | | there's os.strerror() -- also, it would form a locale liability.
* Fix due to Bill Noon for problem discovered by Ken Manheimer: packingGuido van Rossum1997-11-041-2/+2
| | | | 0.0 as float or double would yield the representation for 1.0!
* Move the Py_{{BEGIN,END}_ALLOW,BLOCK}_THREADS macros in time_sleep()Guido van Rossum1997-11-031-7/+15
| | | | | | to inside floatsleep(). This is necessary because floatsleep() does the error handling and it must have grabbed the interpreter lock and thread state before it can do so.
* Change the signal finialization so that it also resets the signalGuido van Rossum1997-11-031-1/+7
| | | | | handlers. After this has been called, our signal handlers are no longer active!
* Add cast to realloc/malloc call to shut up AIX compiler. (Vladimir Marangozov)Guido van Rossum1997-10-311-2/+2
|
* Take out the setlocale() call. It affects atof() and will breakGuido van Rossum1997-10-311-8/+0
| | | | floating point literals. Need to do this differently...
* Add #include "mytime.h", needed for SunOS 4.1 (Matthias Klose).Guido van Rossum1997-10-311-0/+1
|
* Forgot to add .cxx and .cpp to the second case statement.Guido van Rossum1997-10-211-0/+2
| | | | Thanks to Daniel Larsson.
* Some patches to Lee Busby's fpectl mods that accidentally didn't make itGuido van Rossum1997-10-201-3/+2
| | | | into 1.5a4.
* Add getintarg(), getlongarg(), getstrarg() to macros since these noGuido van Rossum1997-10-201-0/+3
| | | | longer exist in the general headers.
* Add proper (getattrfunc) cast in Pcre_Type.Guido van Rossum1997-10-201-1/+1
|
* Change sharedmodules to lib-dynload.Guido van Rossum1997-10-202-7/+7
| | | | ### If you still have sharedmodules in your Modules/Setup file, remove it! ###
* Darn. When thread support is disabled, the BEGIN/END macros don'tGuido van Rossum1997-10-102-4/+8
| | | | | | 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.
* Don Beaudry's changes to support SGI_ABI on Irix 6.x.Guido van Rossum1997-10-091-0/+2
|
* Remove requirement for strdup() since it causes so many troubles for too manyFred Drake1997-10-091-4/+4
| | | | platforms. Argh!
* Add call to setlocale(LC_ALL, "").Guido van Rossum1997-10-081-1/+8
|
* Put back the extern declaration for strdup(), between #ifndef MS_WINDOWS.Guido van Rossum1997-10-081-0/+3
| | | | | This should make everybody happy, especially since we don't say what the argument type is (there is disagreement on that, too :-( ).
* timezone support for macintosh (Jack)Guido van Rossum1997-10-081-0/+36
|
* Include macbuildno.h here (mac only) (Jack)Guido van Rossum1997-10-081-0/+4
|
* lots of "goto error" replaced by "return" (Jack)Guido van Rossum1997-10-081-264/+264
|
* Converted to new exception style (Jack)Guido van Rossum1997-10-081-6/+2
|
* Mac does support createfilehandler now (Jack)Guido van Rossum1997-10-081-1/+1
|
* Checking in AMK's latest installement.Guido van Rossum1997-10-082-130/+68
| | | | (Two small changes to shup up gcc added.)
* initparser(): Use PyErr_NewException() to create the exception.Fred Drake1997-10-071-1/+1
|
* Fix EventHook (the trick to make widgets appear when using GNUGuido van Rossum1997-10-071-3/+19
| | | | | readline) to create and use a new thread state object -- otherwise it would dump core!
* Add the Setup line for the pcre module.Guido van Rossum1997-10-071-1/+2
|
* Add get_line_buffer() and insert_text(), suggested by Michael McLay.Guido van Rossum1997-10-071-0/+40
|
* New "re" regular expression support.Guido van Rossum1997-10-064-0/+5135
| | | | | This code is written by Philip Hazel and Andrew Kuchling. It requires a new "re.py" module, too.
* Oops, forgot one.Guido van Rossum1997-10-011-1/+1
|
* Apply two changes, systematically:Guido van Rossum1997-10-0127-166/+78
| | | | | | | | | | | | | | | | | (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!
* Removed extern declaration of strdup(). Doesn't appear to be important andFred Drake1997-09-301-10/+0
| | | | causes ugly noises under Windows.
* Add an optional hack for threads in Tkinter.Guido van Rossum1997-09-283-2/+1005
| | | | | | | | | | | | | | | | 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.
* Add plat- prefix to MACHDEPPATH, now that it's been removed from MACHDEP.Guido van Rossum1997-09-281-1/+1
|
* Changes submitted by Marc-Andre Lemburg to add two tables: errorcodeGuido van Rossum1997-09-281-368/+622
| | | | | | 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...)
* In whichmodule(), use __module__ if set.Guido van Rossum1997-09-281-0/+4
|
* Set the completer's word break characters appropriate for Python.Guido van Rossum1997-09-261-0/+4
|
* Reordered and reformatted, and added some cool new features:Guido van Rossum1997-09-261-62/+183
| | | | | | | | | | 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!
* Fix by Sjoerd: don't want to resize to zero length.Guido van Rossum1997-09-221-2/+7
|
* Move the "import readline" to an earlier place so it is also done whenGuido van Rossum1997-09-161-8/+10
| | | | | "-i" is given. (Yes, I know, giving in to Marc Lemburg who wanted this :-)
* Add strerror() interface.Guido van Rossum1997-09-151-2/+30
|
* Export names for the types defined by this module: TkappType and TkttType.Guido van Rossum1997-09-131-0/+3
|
* Indent the #error so that a strict K&R cpp doesn't complain.Guido van Rossum1997-09-081-1/+1
|
* Change the names of the subdirectories tkinter and stdwin toGuido van Rossum1997-09-081-2/+2
| | | | | | 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.)
* Reverse the order in which Setup and Setup.local are passed to theGuido van Rossum1997-09-071-1/+1
| | | | | | 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.)
* Contribution by Hannu Krosing (with some changes).Guido van Rossum1997-09-051-0/+38
| | | | | | | 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.
* Don't use ANSI string literal concatenation (everything is K&R compatible).Guido van Rossum1997-09-051-4/+4
|
* Get rid of most silly #include and #ifdefs near the top; these are allGuido van Rossum1997-09-051-55/+59
| | | | | | obsolete now it includes Python.h. Make all functions K&R compatible (Sue Williams).
* Several changes:Jeremy Hylton1997-09-041-125/+188
| | | | | | | | | | | | | | | | | 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.
* Added first line to set Emacs makefile mode (pretty colors :-)Barry Warsaw1997-09-041-0/+1
|