summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* Move the Py_DECREF(x) after the error: label so that we don't leak xGuido van Rossum2000-09-011-1/+1
| | | | when PyDict_SetItemString() fails.
* Do the absolute minimal amount of modifications to eradicateBarry Warsaw2000-09-0115-67/+31
| | | | | | | | | | | | | | | Py_FatalError() from module initialization functions. The importing mechanism already checks for PyErr_Occurred() after module importation and it Does The Right Thing. Unfortunately, the following either were not compiled or tested by the regression suite, due to issues with my development platform: almodule.c cdmodule.c mpzmodule.c puremodule.c timingmodule.c
* Fix test_popen2 on Windows, recently broken by changes to the dict(!)Tim Peters2000-09-011-1/+57
| | | | | | | implementation. You don't want to know. I've asked Guido to give this a critical review (we agreed on the approach, but the implementation proved more ... interesting ... than anticipated). This will almost certainly be the highlight of Mark Hammond's day <wink>.
* set the default threshold much higherJeremy Hylton2000-09-011-1/+1
| | | | we don't need to run gc frequently
* Don't call Py_FatalError in module initializationJeremy Hylton2000-09-012-7/+0
| | | | (leaving the rest of the modules for Barry)
* refactor __del__ exception handler into PyErr_WriteUnraisableJeremy Hylton2000-09-011-1/+10
| | | | | add sanity check to gc: if an exception occurs during GC, call PyErr_WriteUnraisable and then call Py_FatalEror.
* Add three prototypes for functions in history.h to shut up gcc -Wall.Guido van Rossum2000-09-011-0/+3
|
* Moodules -> Modules.Guido van Rossum2000-09-011-1/+1
|
* Minor adjustment to Setup.in message, based on comment from Barry Warsaw.Fred Drake2000-08-311-7/+7
|
* This module has a poor name, since it can be used under FreeBSD andJeremy Hylton2000-08-311-0/+10
| | | | | | | | Linux. Perhaps winaudio would be better, as it would offend both parties equally. tg@freebsd.org: allow this module to compile under FreeBSD (he suggests voxwareaudio)
* If Setup is older than Setup.in, issue a bold warning that the Setup mayFred Drake2000-08-311-2/+11
| | | | | | need to be checked to make sure all the latest information is present. This closes SourceForge patch #101275.
* Skip Montanaro <skip@mojam.com>:Fred Drake2000-08-313-1/+16
| | | | | | | | | | | Update the build structures to automatically detect the presence of BSD db, including the proper name of the header file to include. Has all the expected niceties associated with yet-more-configure-options. ;) This checkin includes changes for non-generated files only; subsequent checkin will catch those. This is part of SourceForge patch #101272.
* apply patch #101362 by Vladimir MarangozovJeremy Hylton2000-08-311-33/+24
| | | | also initial static debug variable to 0
* Peter Schneider-Kamp <nowonder@nowonder.de>:Fred Drake2000-08-313-11/+9
| | | | | | Remove some of GCC's warning in -Wstrict-prototypes mode. This closes SourceForge patch #101342.
* Remove one compiler warning found with -Wstrict-prototypes.Fred Drake2000-08-311-1/+1
|
* oops. accidentally reintroduced a memory leak. put the bugfix back.Fredrik Lundh2000-08-271-3/+4
|
* don't mistake memory errors (including reaching the recursion limit)Fredrik Lundh2000-08-271-18/+24
| | | | | | | with success. also, check return values from the mark functions. this addresses (but doesn't really solve) bug #112693, and low-memory problems reported by jack jansen.
* Add three new APIs: PyRun_AnyFileEx(), PyRun_SimpleFileEx(),Guido van Rossum2000-08-271-4/+3
| | | | | | | | | | | | | | PyRun_FileEx(). These are the same as their non-Ex counterparts but have an extra argument, a flag telling them to close the file when done. Then this is used by Py_Main() and execfile() to close the file after it is parsed but before it is executed. Adding APIs seems strange given the feature freeze but it's the only way I see to close the bug report without incompatible changes. [ Bug #110616 ] source file stays open after parsing is done (PR#209)
* Charles Waldman's patch to reinitialize the interpreter lock after aGuido van Rossum2000-08-271-0/+1
| | | | | | | fork. This solves the test_fork1 problem. (ceval.c, signalmodule.c, intrcheck.c) SourceForge: [ Patch #101226 ] make threading fork-safe
* Fixed this problem.Thomas Wouters2000-08-261-4/+0
|
* Try to supply a prototype for the module init function but avoidTim Peters2000-08-262-2/+2
| | | | | | Windows "inconsistent linkage" warnings at the same time. I agree with Mark Hammond that the whole DL_IMPORT/DL_EXPORT macro system needs an overhaul; this is just an expedient hack until then.
* Update the parser module to support augmented assignment.Fred Drake2000-08-251-6/+30
| | | | Add some test cases.
* initpyexpat(): Code cleanup; makes it more robust and reduces warnings.Fred Drake2000-08-251-126/+143
| | | | | | | | | Added prototype to remove yet another warning. Make a number of the handlers and helpers "static" since they are not used in other C source files. This also reduces the number of warnings. Make a lot of the code "more Python". (Need to get the style guide done!)
* Not every OS that support poll seems to support POLLMSG.Sjoerd Mullender2000-08-251-0/+2
|
* Add interface to poll() system call (SF patch #100852)Andrew M. Kuchling2000-08-251-2/+319
|
* Adjust the name for the socket module in the SSL line.Thomas Wouters2000-08-241-1/+1
|
* Fix the evil booboos. ;( Causes discussed with Jeremy offline.Fred Drake2000-08-241-2/+2
|
* Remove the Py_FatalError() from initpyexpat(); the Guido has decreedFred Drake2000-08-241-10/+22
| | | | | | | | | that this is not appropriate. Made somewhat more robust in the face of reload() (exception is not rebuilt, etc.). Made the exception a class exception.
* validate_listmaker(): Revise to match Skip's latest changes to theFred Drake2000-08-231-6/+12
| | | | Grammar file. This makes the test suite pass once again.
* Nuked unused variable.Tim Peters2000-08-221-1/+0
|
* Update to reflect recent grammar changes (list comprehensions, extendedFred Drake2000-08-211-178/+363
| | | | | | print statement), and fix up the extended call syntax support. Minor stylistic cleanups.
* Add alias for old function name -- removing it broke Alexei Gilchrist's cfmAndrew M. Kuchling2000-08-201-0/+2
|
* Use METH_VARARGS constant in example module.Andrew M. Kuchling2000-08-191-6/+6
| | | | Fix comment typo
* Removed references to Py_FPROTO.Sjoerd Mullender2000-08-181-2/+2
|
* ANSI-fy function headers. Not much more can be done since I don'tBarry Warsaw2000-08-181-249/+82
| | | | have access to Purify anymore.
* lad_dealloc(): if xp->x_fd == -1, it means the descriptor's alreadyBarry Warsaw2000-08-181-1/+3
| | | | been closed. Don't try to reclose it. Found by Insure.
* pattern_findall(): Plug small memory leak discovered by Insure.Barry Warsaw2000-08-181-3/+3
| | | | | PyList_Append() always incref's the inserted item. Be sure to decref it regardless of whether the append succeeds or fails.
* init_locale(): This file defines the _locale module, so theBarry Warsaw2000-08-181-1/+1
| | | | Py_FatalError() should reflect that.
* The sre test suite currently overruns the stack on Win64, Linux64, and MontereyTrent Mick2000-08-161-2/+11
| | | | | | | | | (64-bit AIX) This is because the RECURSION_LIMIT is too low. This patch lowers to recusion limit to 7500 such that the recusion check fires before a segfault. Fredrik suggested/approved the fix in private email, modulo sre's recusion limit checking no being necessary when PyOS_CheckStack is implemented for Windows.
* The socket module is now _socket on all platforms.Fred Drake2000-08-161-2/+1
|
* Remove a lot of the confusing conditional compilation from the beginningFred Drake2000-08-161-47/+4
| | | | of the init_socket() function. This module is now *always* _socket.
* Chris Herborth <chrish@pobox.com>:Fred Drake2000-08-153-21/+1
| | | | | | | | | Minor updates for BeOS R5. Use of OSError in test.test_fork1 changed to TestSkipped, with corresponding change in BeOS/README (by Fred). This closes SourceForge patch #100978.
* Fix new compiler warnings. Unused var in compile.c. Argsize mismatchesTim Peters2000-08-151-1/+1
| | | | | | in binascii.c (only on platforms with signed chars -- although Py_CHARMASK is documented as returning an int, it only does so on platforms with signed chars).
* binascii_unhexlify(): Better error message, courtesy effbot.Barry Warsaw2000-08-151-5/+5
|
* After a brief conversation and code review with TP, adding two veryBarry Warsaw2000-08-151-22/+126
| | | | | | | | | | | | | | commonly used functions to convert an arbitrary binary string into a hexadecimal digit representation and back again. These are often (and often differently) implemented in Python. Best to have one common fast implementation. Specifically, binascii_hexlify(): a.k.a. b2a_hex() to return the hex representation of binary data. binascii_unhexlify(): a.k.a. a2b_hex() to do the inverse conversion (hex digits to binary data). The argument must have an even length, and must contain only hex digits, otherwise a TypeError is raised.
* SHA_hexdigest(): A couple of small patches to this function, addedBarry Warsaw2000-08-151-2/+10
| | | | | | | after a brief conversation with TP. First, the return values of the PyString_* function calls should be checked for errors. Second, bit-manipulations should be used instead of division for spliting the byte up into its 4 bit digits.
* md5_hexdigest(): After a brief conversation with TP, added hexdigest()Barry Warsaw2000-08-151-9/+41
| | | | to this module to mirror sha's hexdigest() method.
* Fix for bug #110670 - Win32 os.listdir raises confusing errors:Mark Hammond2000-08-151-3/+7
| | | | The existing win32_error() function now returns the new(ish) WindowsError, ensuring we get correct error messages.
* Patch #101032, from David Bolen:Mark Hammond2000-08-141-48/+154
| | | | | This is an enhancement to a prior patch (100941) ... [T]his patch removes the risk of deadlock waiting for the child previously present in certain cases. It adds tracking of all file handles returned from an os.popen* call and only waits for the child process, returning the exit code, on the closure of the final file handle to that child.
* Use safer comparisons (only matters when sizeof(int) != sizeof(size_t)). freadTrent Mick2000-08-122-4/+4
| | | | | and fwrite return size_t, so it is safer to cast up to the largest type for the comparison. I believe the cast is required at all to remove compiler warnings.