summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* autodetect presence of libdb - this allows bsddbmodule to be builtSkip Montanaro2000-09-081-1/+1
| | | | | automatically if dbopen is found in libc or libdb. This closes patch #101420
* Oops. Jim's fix didn't. This one does -- I tested it a bit betterGuido van Rossum2000-09-071-4/+19
| | | | this time!
* Simple fix from Jin Fulton to avoid returning a half-initializedGuido van Rossum2000-09-071-2/+2
| | | | | | module when e.g. copy_reg.py doesn't exist. This caused a core dump. This closes SF bug 112944.
* compromise value for threshold0: not too high, not too lowJeremy Hylton2000-09-051-1/+1
|
* Instead of printing all 9 lines of copyright info, printGuido van Rossum2000-09-051-1/+4
| | | | "Type \"copyright\", \"credits\" or \"license\" for more information."
* return -1 for undefined groups (as implemented in 1.5.2) instead ofFredrik Lundh2000-09-021-16/+4
| | | | None (as documented) from start/end/span. closes bug #113254
* REMOVED all CWI, CNRI and BeOpen copyright markings.Guido van Rossum2000-09-0148-464/+0
| | | | This should match the situation in the 1.6b1 tree.
* The second argument to start_new_thread() is not a tuple, as pointedGuido van Rossum2000-09-011-2/+2
| | | | out by Curtis Jensen on c.l.py and forwarded by Fredrik Lundh.
* Repaired damaged comments, and extra spaces in fatal error msgs we'd betterTim Peters2000-09-011-6/+7
| | | | not ever see!
* 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.