summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* Buffer objects would return the read or write buffer for a wrapped object whenBrett Cannon2006-06-081-0/+1
| | | | | | | | | the char buffer was requested. Now it actually returns the char buffer if available or raises a TypeError if it isn't (as is raised for the other buffer types if they are not present but requested). Not a backport candidate since it does change semantics of the buffer object (although it could be argued this is enough of a bug to bother backporting).
* Make binascii.hexlify() use s# for its arguments instead of t# to actuallyBrett Cannon2006-06-081-1/+1
| | | | match its documentation stating it accepts any read-only buffer.
* Fix a refleak in recvfrom_intoNeal Norwitz2006-06-081-1/+1
|
* Fix for foreign functions returning small structures on 64-bit bigThomas Heller2006-06-071-1/+3
| | | | | | | | endian machines. Should fix the remaininf failure in the PPC64 Debian buildbot. Thanks to Matthias Klose for providing access to a machine to debug and test this.
* Use the same big-endian hack as in _ctypes/callproc.c for callback functions.Thomas Heller2006-06-061-36/+7
| | | | This fixes the callback function tests that return float.
* Add a hack so that foreign functions returning float now do work on 64-bitThomas Heller2006-06-061-1/+6
| | | | big endian platforms.
* BSequence_set_range(): Rev 46688 ("Fix a bunch ofTim Peters2006-06-061-1/+1
| | | | | | parameter strings") changed this function's signature seemingly by mistake, which is causing buildbots to fail test_bsddb3. Restored the pre-46688 signature.
* Damn - the sentinel was missing. And fix another silly mistake.Thomas Heller2006-06-061-1/+2
|
* Convert CFieldObject tp_members to tp_getset, since there is noThomas Heller2006-06-061-11/+25
| | | | | | | | structmember typecode for Py_ssize_t fields. This should fix some of the errors on the PPC64 debian machine (64-bit, big endian). Assigning to readonly fields now raises AttributeError instead of TypeError, so the testcase has to be changed as well.
* Fix a bunch of parameter stringsNeal Norwitz2006-06-061-7/+7
|
* Remove unused variable (and stop compiler warning)Neal Norwitz2006-06-061-1/+0
|
* - bsddb: the __len__ method of a DB object has been fixed to return correctGregory P. Smith2006-06-051-6/+17
| | | | | results. It could previously incorrectly return 0 in some cases. Fixes SF bug 1493322 (pybsddb bug 1184012).
* * fix DBCursor.pget() bug with keyword argument names when no data= isGregory P. Smith2006-06-051-4/+4
| | | | supplied [SF pybsddb bug #1477863]
* * add support for DBSequence objects [patch #1466734]Gregory P. Smith2006-06-051-6/+455
|
* * support DBEnv.lsn_reset() method on BerkeleyDB >= 4.4 [patch #1494902]Gregory P. Smith2006-06-051-0/+25
|
* * support DBEnv.log_stat() method on BerkeleyDB >= 4.0 [patch #1494885]Gregory P. Smith2006-06-051-0/+68
|
* Fix a potentially invalid memory access of CJKCodecs' shift-jisHye-Shik Chang2006-06-051-1/+2
| | | | decoder. (found by Neal Norwitz)
* fix a bug in the previous commit. don't leak empty list on error return andGregory P. Smith2006-06-051-4/+7
| | | | | fix the additional rare (out of memory only) bug that it was supposed to fix of not freeing log_list when the python allocator failed.
* bugfix: when log_archive was called with the DB_ARCH_REMOVE flag presentGregory P. Smith2006-06-051-5/+9
| | | | | | | in BerkeleyDB >= 4.2 it tried to construct a list out of an uninitialized char **log_list. feature: export the DB_ARCH_REMOVE flag by name in the module on BerkeleyDB >= 4.2.
* Revert revisions:Tim Peters2006-06-041-48/+0
| | | | | | | | | | | | | | | | 46640 Patch #1454481: Make thread stack size runtime tunable. 46647 Markup fix The first is causing many buildbots to fail test runs, and there are multiple causes with seemingly no immediate prospects for repairing them. See python-dev discussion. Note that a branch can (and should) be created for resolving these problems, like svn copy svn+ssh://svn.python.org/python/trunk -r46640 svn+ssh://svn.python.org/python/branches/NEW_BRANCH followed by merging rev 46647 to the new branch.
* Patch #1359618: Speed-up charmap encoder.Martin v. Löwis2006-06-041-0/+10
|
* s_methods[]: Stop compiler warnings by castingTim Peters2006-06-041-1/+2
| | | | s_unpack_from to PyCFunction.
* Fixes in struct and socket from merge reviews.Martin Blais2006-06-042-50/+51
| | | | | | | | | | | | | - Following Guido's comments, renamed * pack_to -> pack_into * recv_buf -> recv_into * recvfrom_buf -> recvfrom_into - Made fixes to _struct.c according to Neal Norwitz comments on the checkins list. - Converted some ints into the appropriate -- I hope -- ssize_t and size_t.
* Patch #1454481: Make thread stack size runtime tunable.Andrew MacIntyre2006-06-041-0/+48
|
* "_self" is a said to be a reserved word in Watcom C 10.6. I'mFredrik Lundh2006-06-031-2/+2
| | | | | not sure that's really standard compliant behaviour, but I guess we have to fix that anyway...
* [Bug #1497414] _self is a reserved word in the WATCOM 10.6 C compiler.Andrew M. Kuchling2006-06-031-15/+15
| | | | | | | | | | Fix by renaming the variable. In a different module, Neal fixed it by renaming _self to self. There's already a variable named 'self' here, so I used selfptr. (I'm committing this on a Mac without Tk, but it's a simple search-and-replace. <crosses fingers>, so I'll watch the buildbots and see what happens.)
* More memory leaks from valgrindNeal Norwitz2006-06-021-0/+4
|
* Repaired error in new comment.Tim Peters2006-05-311-4/+4
|
* _range_error(): Speed and simplify (there's no real need forTim Peters2006-05-311-17/+19
| | | | | loops here). Assert that size_t is actually big enough, and that f->size is at least one. Wrap a long line.
* Trimmed trailing whitespace.Tim Peters2006-05-311-22/+22
|
* PyTuple_Pack is not available in Python 2.3, but ctypes must stayThomas Heller2006-05-311-1/+1
| | | | compatible with that.
* Calculate smallest properly (it was off by one) and use proper ssize_t types ↵Neal Norwitz2006-05-311-5/+5
| | | | for Win64
* Change wrapping terminology to overflow maskingBob Ippolito2006-05-301-18/+18
|
* Simplify further by using AddStringConstantNeal Norwitz2006-05-301-4/+2
|
* struct: modulo math plus warning on all endian-explicit formats for ↵Bob Ippolito2006-05-291-11/+163
| | | | compatibility with older struct usage (ugly)
* Whoops.Georg Brandl2006-05-291-2/+6
|
* Convert more modules to METH_VARARGS.Georg Brandl2006-05-292-15/+10
|
* Make use of METH_O and METH_NOARGS where possible.Georg Brandl2006-05-2924-401/+183
| | | | Use Py_UnpackTuple instead of PyArg_ParseTuple where possible.
* Correct some value converting strangenesses.Georg Brandl2006-05-292-4/+4
|
* Silence a warning.Armin Rigo2006-05-291-1/+1
|
* simplify the struct code a bit (no functional changes)Bob Ippolito2006-05-291-23/+31
|
* Convert fmmodule to METH_VARARGS.Georg Brandl2006-05-291-11/+11
|
* Apply modified version of Collin Winter's patch #1478788Nick Coghlan2006-05-291-6/+6
| | | | | | Renames functional extension module to _functools and adds a Python functools module so that utility functions like update_wrapper can be added easily.
* Fix refleak in socketmodule. Replace bogus Py_BuildValue calls.Georg Brandl2006-05-291-3/+5
| | | | Fix refleak in exceptions.
* METH_NOARGS functions do get called with two args.Georg Brandl2006-05-281-5/+5
|
* Convert audioop over to METH_VARARGS.Georg Brandl2006-05-281-60/+66
|
* Fix C function calling conventions in _sre module.Georg Brandl2006-05-281-38/+18
|
* Fix ref-antileak in _struct.c which eventually lead to deallocating None.Georg Brandl2006-05-281-1/+1
|
* fix struct regression on 64-bit platformsBob Ippolito2006-05-271-22/+36
|
* needforspeed: use PyObject_MALLOC instead of system malloc for smallJack Diederich2006-05-271-4/+4
| | | | allocations. Use PyMem_MALLOC for larger (1k+) chunks. 1%-2% speedup.