Neal Norwitz
dc988119b5
Fix a few more variables to try to get this to compile with Visual Studio.
2007-08-25 16:58:09 +00:00
Neal Norwitz
049da9e1cf
Try to get this to build with Visual Studio by moving all the variable
...
declarations to the beginning of a scope.
2007-08-25 16:41:36 +00:00
Guido van Rossum
4f2c3ddca4
Server-side SSL and certificate validation, by Bill Janssen.
...
While cleaning up Bill's C style, I may have cleaned up some code
he didn't touch as well (in _ssl.c).
2007-08-25 15:08:43 +00:00
Nick Coghlan
1a42ece0c7
Fix bug 1764407 - the -i switch now does the right thing when using the -m switch
2007-08-25 10:50:41 +00:00
Hye-Shik Chang
2390104d81
Add cheot-ga-keut composed make-up sequence support in EUC-KR codec.
2007-08-20 06:49:18 +00:00
Walter Dörwald
6e39080649
Backport r57105 and r57145 from the py3k branch: UTF-32 codecs.
2007-08-17 16:41:28 +00:00
Neal Norwitz
91a57216c9
Fix memory leak in os.readlink
2007-08-12 17:11:13 +00:00
Guido van Rossum
b5e81aa53e
Backport r56875 from py3k; double LEAVE_PYTHON when AsString() fails
...
in PythonCmd().
2007-08-09 21:47:11 +00:00
Georg Brandl
95d94947f0
Fix compilation warning.
2007-08-08 13:50:02 +00:00
Georg Brandl
9616444427
Revert the fix for #1548891 , it broke backwards compatibility with arbitrary read buffers.
...
Fixes #1730114 .
2007-08-08 13:03:41 +00:00
Hye-Shik Chang
f3e93a0268
Fix gb18030 codec's bug that doesn't map two-byte characters on
...
GB18030 extension in encoding. (bug reported by Bjorn Stabell)
2007-08-04 04:10:18 +00:00
Martin v. Löwis
f1e0b3f630
Bug #1704793 : Return UTF-16 pair if unicodedata.lookup cannot
...
represent the result in a single character.
2007-07-28 07:03:05 +00:00
Martin v. Löwis
6819210b9e
PEP 3123: Provide forward compatibility with Python 3.0, while keeping
...
backwards compatibility. Add Py_Refcnt, Py_Type, Py_Size, and
PyVarObject_HEAD_INIT.
2007-07-21 06:55:02 +00:00
Walter Dörwald
219336af82
Document that codecs.lookup() returns a CodecInfo object.
...
(fixes SF bug #1754453 ).
2007-07-19 13:04:38 +00:00
Thomas Heller
fe31d77dc0
PyType_stgdict() returns a borrowed reference which must not be
...
Py_DECREF'd.
2007-07-13 19:51:55 +00:00
Thomas Heller
ef4fff3435
Fix for SF# 1649098: avoid zero-sized array declaration in structure.
2007-07-13 17:46:54 +00:00
Thomas Heller
1421b00162
Repair COMError. Since exceptions are new style classes now, setting
...
the methods and docstring after the type creation does not work, they
must be in the dictionary before creating the type.
2007-07-13 13:59:39 +00:00
Kurt B. Kaiser
d67a3b9503
Many calls to tk.call involve an arglist containing a single tuple.
...
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
2007-07-05 22:03:39 +00:00
Thomas Heller
410c3b58c9
Use "O&" in calls to PyArg_Parse when we need a 'void*' instead of "k"
...
or "K" codes.
2007-06-11 15:58:33 +00:00
Martin v. Löwis
6371cd8177
Patch #1733960 : Allow T_LONGLONG to accept ints.
...
Will backport to 2.5.
2007-06-09 07:42:52 +00:00
Thomas Heller
ea7f88e3d9
Fix warnings by using proper function prototype.
2007-06-08 19:14:23 +00:00
Thomas Heller
6088f24df2
Fix gcc warnings intruduced by passing Py_ssize_t to PyErr_Format calls.
2007-06-08 19:01:06 +00:00
Thomas Heller
e81c9f6d5e
[ 1715718 ] x64 clean compile patch for _ctypes, by Kristj?n Valur
...
with small modifications.
2007-06-08 18:20:09 +00:00
Kristján Valur Jónsson
b53940f238
Fixing changes to getbuildinfo.c that broke linux builds
2007-06-07 23:53:49 +00:00
Guido van Rossum
956f0f71f9
Patch by Tim Delany (missing DECREF). SF #1731330 .
2007-06-05 21:24:47 +00:00
Hye-Shik Chang
9b5414090b
Bug #1728403 : Fix a bug that CJKCodecs StreamReader hangs when it
...
reads a file that ends with incomplete sequence and sizehint argument
for .read() is specified.
2007-06-05 18:58:51 +00:00
Hye-Shik Chang
82958f0d3b
Fix build on FreeBSD. Bluetooth HCI API in FreeBSD is quite different
...
from Linux's. Just fix the build for now but the code doesn't
support the complete capability of HCI on FreeBSD yet.
2007-06-05 18:16:52 +00:00
Neal Norwitz
994ebed50c
Backout the original 'fix' to 1721309 which had no effect.
...
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.
2007-06-03 20:32:50 +00:00
Thomas Heller
601aa414b2
Fix compiler warnings.
2007-05-30 06:58:30 +00:00
Neal Norwitz
8b2bfbc198
Add -3 option to the interpreter to warn about features that are
...
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.
2007-05-23 06:35:32 +00:00
Neal Norwitz
a84dcd7546
Stop using METH_OLDARGS implicitly
2007-05-22 07:16:44 +00:00
Neal Norwitz
e2e447b6fb
Stop using METH_OLDARGS
2007-05-22 07:16:10 +00:00
Brett Cannon
dc48b74497
Remove the rgbimg module. It has been deprecated since Python 2.5.
2007-05-20 07:09:50 +00:00
Neal Norwitz
4868ef8832
Whoops, need to pay attention to those test failures.
...
Move the clear to *before* the first use, not after.
2007-05-19 04:34:55 +00:00
Neal Norwitz
59f58aaeed
Clear data so random memory does not get freed. Will backport.
2007-05-19 03:48:47 +00:00
Walter Dörwald
3ebc45d602
Backport checkin:
...
Fix a segfault when b"" was passed to b2a_qp() -- it was using strchr()
instead of memchr().
2007-05-09 18:10:47 +00:00
Thomas Heller
1ad576c267
Do not truncate 64-bit pointers to 32-bit integers.
...
Fixes SF #1703286 , will backport to release25-maint.
2007-05-04 19:54:22 +00:00
Thomas Heller
db3bfdf141
On 64-bit Windows, ffi_arg must be 8 bytes long. This fixes the
...
remaining crashes in the ctypes tests, when functions return float or
double types.
2007-05-04 08:20:41 +00:00
Kristján Valur Jónsson
f030394de3
Fix problems in x64 build that were discovered by the testsuite:
...
- 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.
2007-05-03 20:27:03 +00:00
Thomas Heller
9b73d0aed5
Don't truncate pointers to integers (on win64 platform).
2007-05-03 12:05:20 +00:00
Neal Norwitz
d83eb316dc
Stop using PyMem_FREE while the GIL is not held. For details see:
...
http://mail.python.org/pipermail/python-dev/2007-May/072896.html
2007-05-02 04:47:55 +00:00
Thomas Heller
68bb9a1418
When accessing the .value attribute of a c_wchar_p instance, and the
...
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.
2007-04-30 16:04:57 +00:00
Thomas Heller
5a901bd3cc
Make sure to call PyErr_NoMemory() in several places where
...
PyMem_Malloc() could potentially fail.
Will backport to the release25-maint branch.
2007-04-30 15:44:17 +00:00
Kristján Valur Jónsson
7a0da19087
Complete revamp of PCBuild8 directory. Use subdirectories for each project 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.
2007-04-30 15:17:46 +00:00
Kristján Valur Jónsson
bd77c037ed
Accomodate 64 bit time_t in the _bsddb module.
2007-04-26 15:24:54 +00:00
Kristján Valur Jónsson
0a440d4184
Export function sanitize_the_mode from fileobject.c as _PyFile_SanitizeMode(). Use this function in posixmodule.c when implementing fdopen(). This fixes test_subprocess.py for a VisualStudio 2005 compile.
2007-04-26 09:15:08 +00:00
Kristján Valur Jónsson
67387fb4aa
Make pythoncore compile cleanly with VisualStudio 2005. Used an explicit typecast to get a 64 bit integer, and undefined the Yield macro that conflicts with winbase.h
2007-04-25 00:17:39 +00:00
Kristján Valur Jónsson
17b8e97e2e
Merge change 54909 from release25-maint: Fix several minor issues discovered using code analysis in VisualStudio 2005 Team Edition
2007-04-25 00:10:50 +00:00
Neal Norwitz
bd53870d89
SF #1703270 , add missing declaration in readline.c to avoid compiler warning.
2007-04-19 05:52:37 +00:00
Andrew M. Kuchling
a6fbc1eabb
Point readers at the patch submission instructions
2007-04-11 13:42:25 +00:00