summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* #Plug small memory leaks in constructors.Guido van Rossum1997-09-033-6/+15
|
* Plug small leaks: the [de]compress object itself was never freed.Guido van Rossum1997-09-031-0/+2
|
* Change [_Py_]re_compile_pattern() to return a char*.Guido van Rossum1997-09-033-12/+12
| | | | | 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.
* Mod suggested by Donn Cave -- invoke makexp_aix relative to $0Guido van Rossum1997-09-031-2/+4
| | | | so it doesn't have to be on $PATH.
* Disable the portable multimedia modules (audioop, imageop, rgbimg) byGuido van Rossum1997-09-031-4/+5
| | | | default since they don't work on 64-bit platforms.
* Fix the bug Jeremy was experiencing: both the close() and theGuido van Rossum1997-09-031-4/+19
| | | | | | | | | | | 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?
* Added -X option to suppress default import of site.py. Also split theGuido van Rossum1997-08-291-5/+13
| | | | | usage message in *three* parts under 510 bytes, for low-end ANSI compatibility.
* Swap the sense of the -X option vis-a-vis Py_UseClassExceptionsFlag soBarry Warsaw1997-08-291-2/+3
| | | | | that class based exceptions are enabled by default. -X disables them in favor of the old-style string exceptions.
* Parse new command line option -X which enables exception classes.Barry Warsaw1997-08-291-1/+6
|
* Added (binaryfunc) casts to function pointers in method lists.Guido van Rossum1997-08-281-4/+4
|
* Some long variables should have been int to match the 'i' format specifier.Guido van Rossum1997-08-281-3/+3
|
* Ignore whitespace between formats (not internal to a count+format).Guido van Rossum1997-08-261-0/+7
|
* Add unsupported variable EXE which can be set to .exe on systems whereGuido van Rossum1997-08-221-1/+4
| | | | | | 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.