summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* Backport 54594:Neal Norwitz2007-03-311-5/+12
| | | | | | Fix SF #1688393, sock.recvfrom(-24) crashes Also fix some method names that were copied incorrectly (trunk fixed).
* In Windows' time.clock(), when QueryPerformanceFrequency() fails,Georg Brandl2007-03-291-1/+2
| | | | | | the C lib's clock() is used, but it must be divided by CLOCKS_PER_SEC as for the POSIX implementation (thanks to #pypy). (backport from rev. 54606)
* Prevent creation (followed by a segfault) of array types when the sizeThomas Heller2007-03-231-3/+20
| | | | | | | overflows the valid Py_ssize_t range. Check return values of PyMem_Malloc. Backported from trunk.
* Explain the purpose of the b_needsfree flag. This answers NealsThomas Heller2007-03-221-1/+6
| | | | question (well, two months too late).
* Back out "Patch #1643874: memory leak in ctypes fixed."Thomas Heller2007-03-221-21/+8
| | | | | The code in this patch leaves no way to give up the ownership of a BSTR instance.
* Bug #1622896: fix a rare corner case where the bz2 module raised anGeorg Brandl2007-03-131-10/+11
| | | | | error in spite of a succesful compression. (backport from rev. 54336)
* Merged revisions 54248 via svnmerge fromThomas Heller2007-03-091-18/+0
| | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk/Lib/ctypes ........ r54248 | thomas.heller | 2007-03-09 21:39:22 +0100 (Fr, 09 Mär 2007) | 7 lines Bug #1651235: When a tuple was passed to a ctypes function call, Python would crash instead of raising an error. The crash was caused by a section of code that should have been removed long ago, at that time ctypes had other ways to pass parameters to function calls. ........
* Merged revisions 54244 via svnmerge fromThomas Heller2007-03-091-3/+3
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk/Lib/ctypes ........ r54244 | thomas.heller | 2007-03-09 20:21:28 +0100 (Fr, 09 Mär 2007) | 3 lines Fix bug #1646630: ctypes.string_at(buf, 0) and ctypes.wstring_at(buf, 0) returned string up to the first NUL character. ........
* Backport checkin:Walter Dörwald2007-03-061-2/+62
| | | | | | Patch for bug #1633621: if curses.resizeterm() or curses.resize_term() is called, update _curses.LINES, _curses.COLS, curses.LINES and curses.COLS.
* Patch #1654417: make operator.{get,set,del}slice use the full rangeGeorg Brandl2007-03-061-13/+11
| | | | | of Py_ssize_t. (backport from rev. 54177)
* Patch #1646728: datetime.fromtimestamp fails with negativeGeorg Brandl2007-03-061-0/+6
| | | | | fractional times. With unittest. (backport from rev. 54167 by Guido)
* Fix another reincarnation of bug #1576657 in defaultdict.Georg Brandl2007-03-061-2/+6
| | | | (backport from rev. 54160)
* Revert r53672, just fix signature of time_isoformat instead.Martin v. Löwis2007-02-181-2/+5
|
* Patch #1657276: Make NETLINK_DNRTMSG conditional.Martin v. Löwis2007-02-131-0/+2
|
* Bug #1653736: Complain about keyword arguments to time.isoformat.Martin v. Löwis2007-02-081-2/+2
|
* Do not let overflows in enumerate() and count() pass silently.Raymond Hettinger2007-02-071-0/+5
|
* Check for a common user error with defaultdict().Raymond Hettinger2007-02-071-1/+7
|
* Bug #1645944: os.access now returns bool but docstring is not updatedGeorg Brandl2007-01-271-1/+1
| | | | (backport from rev. 53579)
* Merged revisions 53556 via svnmerge fromThomas Heller2007-01-251-8/+21
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk/Modules/_ctypes ........ r53556 | thomas.heller | 2007-01-25 19:34:14 +0100 (Do, 25 Jan 2007) | 3 lines Fix for #1643874: When calling SysAllocString, create a PyCObject which will eventually call SysFreeString to free the BSTR resource. ........
* [Bug #1552726] Avoid unnecessary polling at the interpreter prompt when ↵Andrew M. Kuchling2007-01-221-1/+7
| | | | certain versions of readline are being used
* Bug #1486663: don't reject keyword arguments for subclasses of builtinGeorg Brandl2007-01-214-15/+16
| | | | | types. (backport from rev. 53509)
* Add a comment for some code I don't understand. Why would needsfreeNeal Norwitz2007-01-181-0/+1
| | | | | | | be true if we didn't malloc the code? Seems like the code is wrong or could use comments. Also verify if the buildbots are working properly for the 2.5 branch.
* Merged revisions 53466 via svnmerge fromThomas Heller2007-01-171-8/+12
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk/Modules/_ctypes ........ r53466 | thomas.heller | 2007-01-17 10:40:34 +0100 (Mi, 17 Jan 2007) | 2 lines Replace C++ comments with C comments. ........
* Must update the version number on the extension module as well.Thomas Heller2007-01-101-1/+1
|
* Fix zero-length corner case for iterating over a mutating deque.Raymond Hettinger2007-01-081-3/+2
|
* support linking the _bsddb extension module against BerkeleyDB 4.5Gregory P. Smith2007-01-051-1/+9
| | | | [backport of r53252]
* Bug #1566280: Explicitly invoke threading._shutdown from Py_Main,Martin v. Löwis2007-01-041-0/+29
| | | | to avoid relying on atexit.
* Backport trunk checkin r51565:Thomas Wouters2006-12-291-1/+1
| | | | | Fix SF bug #1545837: array.array borks on deepcopy. array.__deepcopy__() needs to take an argument, even if it doesn't actually use it.
* [Patch #1615868 by Lars Gustaebel] Use Py_off_t to fix BZ2File.seek() for ↵Andrew M. Kuchling2006-12-181-1/+1
| | | | offsets > 2Gb
* Patch #1544279: Improve thread-safety of the socket module by movingMartin v. Löwis2006-12-032-53/+45
| | | | the sock_addr_t storage out of the socket object.
* Fix #1563807: _ctypes built on AIX fails with ld ffi error.Thomas Heller2006-11-281-1/+1
| | | | | | | The contents of ffi_darwin.c must be compiled unless __APPLE__ is defined and __ppc__ is not. Backport from trunk.
* Fix bug #1598620: A ctypes structure cannot contain itself.Thomas Heller2006-11-241-3/+13
| | | | Backport from trunk.
* Backport of 52811:Neal Norwitz2006-11-211-2/+0
| | | | | | | | | Bug #1599782: Fix segfault on bsddb.db.DB().type(). The problem is that _DB_get_type() can't be called without the GIL because it calls a bunch of PyErr_* APIs when an error occurs. There were no other cases in this file that it was called without the GIL. Removing the BEGIN/END THREAD around _DB_get_type() made everything work.
* Bug #1588217: don't parse "= " as a soft line break in binascii'sGeorg Brandl2006-11-161-2/+1
| | | | | | a2b_qp() function, instead leave it in the string as quopri.decode() does. (backport from rev. 52765)
* Backport checkin:Walter Dörwald2006-11-091-1/+1
| | | | Replace C++ comment with C comment (fixes SF bug #1593525).
* Backport 52503:Neal Norwitz2006-10-281-0/+3
| | | | | Fix crash in test on HP-UX. Apparently, it's not possible to delete a lock if it's held (even by the current thread).
* Backport 52501:Neal Norwitz2006-10-281-0/+1
| | | | | | | | Add some asserts. In sysmodule, I think these were to try to silence some warnings from Klokwork. They verify the assumptions of the format of svn version output. The assert in the thread module helped debug a problem on HP-UX.
* Get DBL_MAX from float.h not values.h.Martin v. Löwis2006-10-271-3/+1
|
* Check for values.h.Martin v. Löwis2006-10-271-0/+2
|
* [Backport of r52452]Martin v. Löwis2006-10-271-8/+121
| | | | | | | Patch #1549049: Rewrite type conversion in structmember. Fixes #1545696 and #1566140. The new warnings have been omitted in the backport.
* - Patch #1560695: Add .note.GNU-stack to ctypes' sysv.S so thatMartin v. Löwis2006-10-221-0/+4
| | | | ctypes isn't considered as requiring executable stacks.
* C:\Code\python>type c.txtTim Peters2006-10-181-1/+1
| | | | | | Merge rev 52377 from trunk: newIobject(): repaired incorrect cast to quiet MSVC warning.
* ctypes callback functions only support 'fundamental' result types.Thomas Heller2006-10-171-2/+5
| | | | | | | | Check this and raise an error when something else is used - before this change ctypes would hang or crash when such a callback was called. This is a partial fix for #1574584. Backported from trunk.
* Bug #1567666: Emulate GetFileAttributesExA for Win95.Martin v. Löwis2006-10-151-2/+103
|
* Bug #1548891: The cStringIO.StringIO() constructor now encodes unicodeGeorg Brandl2006-10-121-4/+2
| | | | | | arguments with the system default encoding just like the write() method does, instead of converting it to a raw buffer. (backport from rev. 52301)
* Bug #1565150: Fix subsecond processing for os.utime on Windows.Martin v. Löwis2006-10-091-3/+3
|
* List gc.get_count() in the module docstring.Barry Warsaw2006-10-091-0/+1
|
* Backport from trunk r52223:Hye-Shik Chang2006-10-081-14/+22
| | | | | Bug #1572832: fix a bug in ISO-2022 codecs which may cause segfault when encoding non-BMP unicode characters. (Submitted by Ray Chason)
* Backport the .sln and .vcproj files for PCBuild8 from the python trunk to ↵Kristján Valur Jónsson2006-10-071-2/+2
| | | | the 2.5 maintainance branch. This fixes build problems with visual studio 2005, and cleans up profile guided optimization.
* [Backport to 2-5maint of r52147 | andrew.kuchling ; the buildbots seem OKAndrew M. Kuchling2006-10-051-2/+21
| | | | | | | | with this change.] Cause a PyObject_Malloc() failure to trigger a MemoryError, and then add 'if (PyErr_Occurred())' checks to various places so that NULL is returned properly.