| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Specialcase extended slices that amount to a shallow copy the same way as
is done for simple slices, in the tuple, string and unicode case.
- Specialcase step-1 extended slices to optimize the common case for all
involved types.
- For lists, allow extended slice assignment of differing lengths as long
as the step is 1. (Previously, 'l[:2:1] = []' failed even though
'l[:2] = []' and 'l[:2:None] = []' do not.)
- Implement extended slicing for buffer, array, structseq, mmap and
UserString.UserString.
- Implement slice-object support (but not non-step-1 slice assignment) for
UserString.MutableString.
- Add tests for all new functionality.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
> returning NULL, and other pieces of the code call PySSL_SetError,
> which creates the error string. I think some of the places which set
> the string directly probably shouldn't; instead, they should call
> PySSL_SetError to cons up the error name directly from the err code.
> However, PySSL_SetError only works after the construction of an ssl
> object, which means it can't be used there... I'll take a longer look
> at it and see if there's a reasonable fix.
Here's a patch which addresses this. It also fixes the indentation in
PySSL_SetError, bringing it into line with PEP 7, fixes a compile warning
about one of the OpenSSL macros, and makes the namespace a bit more
consistent. I've tested it on FC 7 and OS X 10.4.
% ./python ./Lib/test/regrtest.py -R :1: -u all test_ssl
test_ssl
beginning 6 repetitions
123456
......
1 test OK.
[29244 refs]
%
[GvR: slightly edited to enforce 79-char line length, even if it required
violating the style guide.]
|
| |
|
|
|
|
| |
declarations to the beginning of a scope.
|
|
|
|
|
| |
While cleaning up Bill's C style, I may have cleaned up some code
he didn't touch as well (in _ssl.c).
|
|
|
|
| |
switch
|
| |
|
| |
|
| |
|
|
|
|
| |
in PythonCmd().
|
| |
|
|
|
|
|
|
| |
read buffers.
Fixes #1730114.
|
|
|
|
| |
GB18030 extension in encoding. (bug reported by Bjorn Stabell)
|
|
|
|
| |
represent the result in a single character.
|
|
|
|
|
| |
backwards compatibility. Add Py_Refcnt, Py_Type, Py_Size, and
PyVarObject_HEAD_INIT.
|
|
|
|
| |
(fixes SF bug #1754453).
|
|
|
|
| |
Py_DECREF'd.
|
| |
|
|
|
|
|
| |
the methods and docstring after the type creation does not work, they
must be in the dictionary before creating the type.
|
|
|
|
|
|
|
|
|
|
| |
Calls using METH_OLDARGS unpack this tuple; calls using METH_VARARG
don't. Tcl's concatenation of args was affected; IDLE doesn't start.
Modify Tkapp_Call() to unpack single tuple arglists.
Bug 1733943
Ref http://mail.python.org/pipermail/python-checkins/2007-May/060454.html
|
|
|
|
| |
or "K" codes.
|
|
|
|
| |
Will backport to 2.5.
|
| |
|
| |
|
|
|
|
| |
with small modifications.
|
| |
|
| |
|
|
|
|
|
| |
reads a file that ends with incomplete sequence and sizehint argument
for .read() is specified.
|
|
|
|
|
| |
from Linux's. Just fix the build for now but the code doesn't
support the complete capability of HCI on FreeBSD yet.
|
|
|
|
|
|
|
|
|
|
|
| |
Different versions of Berkeley DB handle this differently.
The comments and bug report should have the details. Memory is allocated
in 4.4 (and presumably earlier), but not in 4.5. Thus
4.5 has the free error, but not earlier versions.
Mostly update comments, plus make the free conditional.
This fix was already applied to the 2.5 branch.
|
| |
|
|
|
|
|
|
|
| |
deprecated and will be changed/removed in Python 3.0.
This patch is mostly from Anthony. I tweaked some format and added
a little doc.
|
| |
|
| |
|
| |
|
|
|
|
| |
Move the clear to *before* the first use, not after.
|
| |
|
|
|
|
|
| |
Fix a segfault when b"" was passed to b2a_qp() -- it was using strchr()
instead of memchr().
|
|
|
|
| |
Fixes SF #1703286, will backport to release25-maint.
|
|
|
|
|
| |
remaining crashes in the ctypes tests, when functions return float or
double types.
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Reenable modules on x64 that had been disabled aeons ago for Itanium.
- Cleared up confusion about compilers for 64 bit windows. There is only Itanium and x64. Added macros MS_WINI64 and MS_WINX64 for those rare cases where it matters, such as the disabling of modules above.
- Set target platform (_WIN32_WINNT and WINVER) to 0x0501 (XP) for x64, and 0x0400 (NT 4.0) otherwise, which are the targeted minimum platforms.
- Fixed thread_nt.h. The emulated InterlockedCompareExchange function didn´t work on x64, probaby due to the lack of a "volatile" specifier. Anyway, win95 is no longer a target platform.
- Itertools module used wrong constant to check for overflow in count()
- PyInt_AsSsize_t couldn't deal with attribute error when accessing the __long__ member.
- PyLong_FromSsize_t() incorrectly specified that the operand were unsigned.
With these changes, the x64 passes the testsuite, for those modules present.
|
| |
|
|
|
|
| |
http://mail.python.org/pipermail/python-dev/2007-May/072896.html
|
|
|
|
|
|
|
|
|
| |
instance does not point to a valid wchar_t zero-terminated string,
raise a ValueError. c_char_p does this already.
The ValueError message now contains the correct pointer address.
Will backport to release25-maint.
|
|
|
|
|
|
| |
PyMem_Malloc() could potentially fail.
Will backport to the release25-maint branch.
|
|
|
|
| |
under the main pcbuild solution. Now make extensive use of property sheets to simplify project configuration. x64 build fully supported, and the process for building PGO version (Profiler Guided Optimization) simplified. All projects are now present, except _ssl, which needs to be reimplemented. Also, some of the projects that require external libraries need extra work to fully compile on x64.
|
| |
|
|
|
|
| |
_PyFile_SanitizeMode(). Use this function in posixmodule.c when implementing fdopen(). This fixes test_subprocess.py for a VisualStudio 2005 compile.
|
|
|
|
| |
typecast to get a 64 bit integer, and undefined the Yield macro that conflicts with winbase.h
|
|
|
|
| |
discovered using code analysis in VisualStudio 2005 Team Edition
|