| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
the md5 and sha modules, so add it in Modules/Setup.dist too.
|
|
|
|
|
| |
Passing float arguments to struct.pack when integers are expected
now triggers a DeprecationWarning.
|
| |
|
|
|
|
| |
for stream decoder, but final=True for the decode function.
|
|
|
|
|
| |
a socket operation on a socket with a timeout, the exception will be
caught correctly. Previously, the exception was not caught.
|
| |
|
| |
|
|
|
|
| |
Reported by Klocwork #36
|
| |
|
| |
|
|
|
|
| |
in the cast() function.
|
|
|
|
|
|
| |
This provides the proper warning for struct.pack().
PyErr_Warn() is now deprecated in favor of PyErr_WarnEx().
As mentioned by Tim Peters on python-dev.
|
| |
|
|
|
|
|
|
| |
Regenerated Modules/_ctypes/libffi/configure with autoconf 2.59.
Approved by Neal.
|
|
|
|
|
| |
Cosmetic changes to the code so that the #ifdef _UNICODE block
doesn't mess emacs code formatting.
|
| |
|
|
|
|
| |
differs from both Linux and FreeBSD. Accepted by Neal Norwitz.
|
|
|
|
|
|
|
| |
methods now allow their database parameter to be None as the
sleepycat API allows.
Also adds an appropriate test case for DBEnv.dbrename and dbremove.
|
|
|
|
|
|
|
| |
We didn't notice these before because test_defaultdict didn't
actually do anything before Georg fixed that earlier today.
Neal's next refleak run then showed test_defaultdict leaking
9 references on each run. That's repaired by this checkin.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
inspect.py, and pydoc.py. Specifically, this allows for querying the type of
an object against these built-in C types and more importantly, for getting
their docstrings printed in the interactive interpreter's help() function.
This patch includes a new built-in module called _types which provides
definitions of getset and member descriptors for use by the types.py module.
These types are exposed as types.GetSetDescriptorType and
types.MemberDescriptorType. Query functions are provided as
inspect.isgetsetdescriptor() and inspect.ismemberdescriptor(). The
implementations of these are robust enough to work with Python implementations
other than CPython, which may not have these fundamental types.
The patch also includes documentation and test suite updates.
I commit these changes now under these guiding principles:
1. Silence is assent. The release manager has not said "no", and of the few
people that cared enough to respond to the thread, the worst vote was "0".
2. It's easier to ask for forgiveness than permission.
3. It's so dang easy to revert stuff in svn, that you could view this as a
forcing function. :)
Windows build patches will follow.
|
|
|
|
| |
be overflow which was reported by Klocwork. Discussed on python-dev
|
| |
|
|
|
|
| |
mvwgetnstr(); it was conditionalized a few lines below. Fix from Paul Eggert. I also tried out the STRICT_SYSV_CURSES case and am therefore removing the 'untested' comment.
|
|
|
|
|
| |
Also add a guard against NULL in converttuple and add a test case
(that previously would have crashed).
|
|
|
|
| |
Will backport to 2.4.
|
|
|
|
|
|
|
|
|
| |
it definitely could use some review to ensure I'm not off by one
and there's no possible overflow/wrap-around of bytes_left.
Reported by Klocwork #1.
Fix a problem if there is a failure allocating self->db.
Found with failmalloc.
|
|
|
|
|
|
| |
Ensure that dataobj is never NULL.
Reported by Klocwork #102
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Also fix a few memory leaks in other failure scenarios.
It seems that if b_objects == Py_None, we will have an extra ref to
b_objects. Add XXX comment so hopefully someone documents why the
else isn't necessary or adds it in.
Reported by Klocwork #20
|
| |
|
| |
|
|
|
|
|
| |
not defined on Windows, even if that configuration is probably not
supported at all.
|
|
|
|
|
|
|
| |
of values in the time tuple passed in. Unfortunately people came to rely on
undocumented behaviour of setting unneeded values to 0, regardless of if it was
within the valid range. Now those values force the value internally to the
minimum value when 0 is passed in.
|
|
|
|
| |
Reported by Klocwork #152.
|
|
|
|
| |
Reported by Klocwork, #39.
|
|
|
|
|
|
| |
func is returned from PyArg_ParseTuple and also dereffed.
Reported by Klocwork, #30 (self one at least).
|
|
|
|
| |
exactly one element is enabled again.
|
|
|
|
|
| |
PyUnicode_AsWideChar replacement functions compatible to the official
functions by using Py_ssize_t instead of int.
|
|
|
|
| |
without thread support. Replaced WITH_THREADS with WITH_THREAD.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
means that select() on sockets > FD_SETSIZE (typically 1024) work again.
The patch makes sockets use poll() internally where available.
|
|
|
|
| |
wrong fields.
|
|
|
|
| |
non-Windows machines.
|
|
|
|
| |
ctypes.c_void_p constructor.
|
| |
|
|
|
|
|
|
| |
foreign function argtypes sequence as long as they provide a
from_param method, no longer is it required that the object is a
ctypes type.
|
|
|
|
|
|
| |
Add a new function uses_seh() to the _ctypes extension module. This
will return True if Windows Structured Exception handling (SEH) is
used when calling functions, False otherwise.
|
|
|
|
|
| |
- change the pyexpat wrapper to not be so sensitive to this detail of the
Expat implementation (the ex-crasher test still passes)
|