summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Add support for FreeBSD --rpath linker option; this is equivalent toFred Drake2000-08-111-0/+1
| | | | | | | -R on Solaris and -rpath on IRIX. This closes SourceForge bug #110613 (Jitterbug PR#202), reported by <aa8vb@yahoo.com>.
* Clean up compiler warning exposed by GCC's -Wall option: make sureFred Drake2000-08-101-2/+2
| | | | | Python.h is included before standard headers since we set _GNU_SOURCE there. This ensures that strdup() is prototyped.
* remove all occurence of math.rint() from the sourcesPeter Schneider-Kamp2000-08-101-7/+0
| | | | (and yes, "Currintly" also counts <0.5 wink>)
* -- changed findall to return empty strings instead of NoneFredrik Lundh2000-08-091-11/+11
| | | | for undefined groups
* Added a missing } in the USE_STACKCHECK code.Jack Jansen2000-08-071-0/+1
|
* -- reset marks if repeat_one tail doesn't matchFredrik Lundh2000-08-071-93/+128
| | | | | | | (this should fix Sjoerd's xmllib problem) -- added skip field to INFO header -- changed compiler to generate charset INFO header -- changed trace messages to support post-mortem analysis
* + if USE_STACKCHECK is defined, use PyOS_CheckStack to lookFredrik Lundh2000-08-071-0/+7
| | | | for excessive recursion.
* Neil Schemenauer: GC enable(), disable(), isenabled() interface.Vladimir Marangozov2000-08-061-16/+76
| | | | | | Small stylistic changes by VM: - is_enabled() -> isenabled() - static ... Py_<func> -> static ... gc_<func>
* Removed unnecessary local variable -- gave warning on gcc -WallMoshe Zadka2000-08-041-2/+0
|
* Removing warnings discovered by gcc -WallMoshe Zadka2000-08-042-5/+5
|
* Remobe beopen/cnri/cwi copyrights, according to CNRI instructions.Guido van Rossum2000-08-031-10/+0
| | | | | | This doesn't change the copyright status for these files -- just the markings! Doing it on the main branch for these three files for which the HEAD revision was pushed back into 1.6.
* -- added recursion limit (currently ~10,000 levels)Fredrik Lundh2000-08-032-158/+172
| | | | | | | -- improved error messages -- factored out SRE_COUNT; the same code is used by SRE_OP_REPEAT_ONE_TEMPLATE -- minor cleanups
* Changing the CNRI copyright notice according to CNRI's instructions.Guido van Rossum2000-08-034-4/+4
| | | | | This is a notice without a date, which apparently is not a claim to copyright but only advice to the reader. IANAL. :-)
* Use METH_OLDARGS instead of numeric constant 0 in method def. tablesAndrew M. Kuchling2000-08-039-55/+78
|
* Use METH_VARARGS instead of numeric constant 1 in method def. tablesAndrew M. Kuchling2000-08-0312-108/+179
|