summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Added configuration tests for presence of alarm(), pause(), and getpwent()Guido van Rossum1997-08-222-4/+8
|
* Removed JF's dollar-Log-dollar RCS turd that caused compilation toBarry Warsaw1997-08-211-52/+0
| | | | | crash due to GvR's last check in message :-). Will try to convince JF to remove all this evilness.
* Remove redundant decl for PyOS_InputHook.Guido van Rossum1997-08-211-3/+0
|
* Added /**/ around #end tagsGuido van Rossum1997-08-212-2/+5
|
* Must remove conflicting files from archiveGuido van Rossum1997-08-211-4/+6
| | | | | *before* adding signalmodule.o, because some ar programs are too smart for us...
* Globally renamed join() to joinpath() to avoid compilation error on Cray.Guido van Rossum1997-08-201-22/+22
|
* Renamed strndup to pystrndup, to avoid conflicting prototypeGuido van Rossum1997-08-201-5/+9
| | | | in GNU libc on some platforms.
* When we have signalmodule.o, remove intrcheck.o as well as sigcheck.o.Guido van Rossum1997-08-201-3/+4
|
* Alas, the thread support for Tk didn't work. Withdraw it, until IGuido van Rossum1997-08-191-0/+4
| | | | figure out how to do this right.
* Moved inclusion of PURIFY in LINKCC to configureGuido van Rossum1997-08-181-1/+1
|
* Casts by Jack to shut up the Mac compiler.Guido van Rossum1997-08-184-32/+32
|
* DeleteTimerHandler was accidentally #ifdef'ed out for macintosh withGuido van Rossum1997-08-181-3/+0
| | | | Tk 8.0; this was a mistake.
* When making all, don't make sharedmods. That's now called separatelyGuido van Rossum1997-08-181-1/+1
| | | | from the toplevel Makefile. (For AIX, but doesn't hurt elsewhere.)
* Use a trick to make the test for GMP v2 to work when GMP v1 definesGuido van Rossum1997-08-171-1/+1
| | | | | __GNU_MP__ as empty: #if __GNU_MP__ + 0 == 2 (Untested.)
* Different strategy regarding whether to declare getrusage() andGuido van Rossum1997-08-171-11/+9
| | | | | | getpagesize() -- #ifdef doesn't work, Linux has conflicting decls in its headers. Choice: only declare the return type, not the argument prototype, and not on Linux.
* Last minute changes for \B. AMK.Guido van Rossum1997-08-151-2/+2
|
* Keep gcc -Wall happyGuido van Rossum1997-08-153-2/+2
|
* Added std copyright notice.Guido van Rossum1997-08-151-0/+31
|
* Fixed refcount bug (thank you, Purify and AMK).Guido van Rossum1997-08-141-0/+1
|
* Several bug fixes.Jeremy Hylton1997-08-141-52/+70
| | | | | | | | -- initialize length to DEFAULTALLOC and not 0 -- resize string before returning (to remove '\000' padding) Also converted some compression routines to use PyString instead of buffer.
* Added a bunch of XXX comments about things I'd like to see changed...Guido van Rossum1997-08-141-1/+8
|
* Merge Mac and Windows mods (which mostly affect the same problem -- noGuido van Rossum1997-08-141-9/+32
| | | | | usable createfilehandler). Define HAVE_CREATEFILEHANDLER to test later. Also other Mac specific patches by Jack.
* Use _Py_re_match/search instead of re_match/search; these may becomeGuido van Rossum1997-08-141-2/+3
| | | | different in a future version.
* Many changes.Jeremy Hylton1997-08-131-98/+82
| | | | | | | | | | | | | | | | | | | | | | Change default alloc size for uncompressing to 16K. Remove comment about core dumps when an invalid window sizes is used. This bug has been fixed in zlib 1.0.4. Two new optional arguments to decompress, wbits and bufsize. wbits specifies the window size and bufsize specifies the initial output string size. In decompression code -- decompress and decompressobj methods -- use a Python string (and _PyString_Resize) to collect the uncompressed stream. Replaces a separate buffer that was copied into a string. Fix bug in decompress that caused it to always realloc the buffer when it was finished decompressing. Modernized handling of optional arguments to compressobj. Updated doc strings.