summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Use METH_VARARGS instead of numeric constant 1Andrew M. Kuchling2000-08-031-12/+22
|
* Rob Hooft (Patch #101046): use PyArg_ParseTuple everywhere.Guido van Rossum2000-08-021-21/+27
|
* Fix for bug #110651 (Jitterbug PR#343): only use the low 8 bits of an octalAndrew M. Kuchling2000-08-021-1/+1
| | | | escape, as documented in the comment for the check_escape() function
* final 0.9.8 updates:Fredrik Lundh2000-08-012-40/+72
| | | | | -- added REPEAT_ONE operator -- added ANY_ALL operator (used to represent "(?s).")
* -- fixed width calculations for alternationsFredrik Lundh2000-08-012-28/+191
| | | | | | | -- fixed literal check in branch operator (this broke test_tokenize, as reported by Mark Favas) -- added REPEAT_ONE operator (still not enabled, though) -- added some debugging stuff (maxlevel)
* Removed decl of unreferenced vrbl.Tim Peters2000-08-011-1/+0
|
* SRE 0.9.8: passes the entire test suiteFredrik Lundh2000-08-013-481/+324
| | | | | | | | | -- reverted REPEAT operator to use "repeat context" strategy (from 0.8.X), but done right this time. -- got rid of backtracking stack; use nested SRE_MATCH calls instead (should probably put it back again in 0.9.9 ;-) -- properly reset state in scanner mode -- don't use aggressive inlining by default
* Update e-mail addressAndrew M. Kuchling2000-08-011-1/+1
|
* replaced PyArgs_Parse by PyArgs_ParseTuplePeter Schneider-Kamp2000-07-311-34/+39
| | | | changed error messages for extend method from "append" to "extend"
* added count, extend, index, pop and remove to arraymodulePeter Schneider-Kamp2000-07-311-72/+168
|
* merge Include/my*.h into Include/pyport.hPeter Schneider-Kamp2000-07-3113-32/+0
| | | | marked my*.h as obsolete
* More Windows changes.Mark Hammond2000-07-301-24/+38
| | | | | | | | * After discussion with Trent, all INT_PTR references have been removed in favour of the HANDLE it should always have been. Trent can see no 64bit issues here. * In this process, I noticed that the close operation was dangerous, in that we could end up passing bogus results to the Win32 API. These result of the API functions passed the bogus values were never (and still are not) checked, but this is closer to "the right thing" (tm) than before. Tested on Windows and Linux.
* Fixes for Windows (but also tested on Linux). Test suite now completes, and ↵Mark Hammond2000-07-301-6/+46
| | | | | | this module should not leak in the face of errors. Checkin that replaces the INT_PTR types with HANDLEs still TBD (but as that is a "spelling" patch, rather than a functional one, I will commit it seperately.
* Added list of missing functions as a commentAndrew M. Kuchling2000-07-271-0/+26
|
* Comment out a debugging print (spotted by Michael Deegan)Andrew M. Kuchling2000-07-261-1/+1
|
* - changed windows pclose to make sure we don't return before theFredrik Lundh2000-07-261-10/+21
| | | | | underlying process has terminated (bug fix from David Bolen)
* Fix UCNs machine with >= 32bit longsJeremy Hylton2000-07-261-19/+51
| | | | | | | originally submitted by Bill Tutt Note: This code is actually going to be replaced in 2.0 by /F's new database. Until then, this patch keeps the test suite working.