]>
granicus.if.org Git - python/log
Neal Norwitz [Mon, 17 Jul 2006 00:59:04 +0000 (00:59 +0000)]
Reported by Klocwork #151.
v2 can be NULL if exception2 is NULL. I don't think that condition can happen,
but I'm not sure it can't either. Now the code will protect against either
being NULL.
Neal Norwitz [Mon, 17 Jul 2006 00:57:15 +0000 (00:57 +0000)]
otherset is known to be non-NULL based on checks before and DECREF after.
DECREF otherset rather than XDECREF in error conditions too.
Reported by Klockwork #154.
Neal Norwitz [Mon, 17 Jul 2006 00:55:45 +0000 (00:55 +0000)]
Stop INCREFing name, then checking if it's NULL. name (f_name) should never
be NULL so assert it. Fix one place where we could have passed NULL.
Reported by Klocwork #66.
Neal Norwitz [Sun, 16 Jul 2006 02:35:47 +0000 (02:35 +0000)]
PyFunction_SetDefaults() is documented as taking None or a tuple.
A NULL would crash the PyTuple_Check(). Now make NULL return a SystemError.
Reported by Klocwork #73.
Neal Norwitz [Sun, 16 Jul 2006 02:32:03 +0000 (02:32 +0000)]
Handle a NULL name properly.
Reported by Klocwork #67
Neal Norwitz [Sun, 16 Jul 2006 02:22:30 +0000 (02:22 +0000)]
Use sizeof(buffer) instead of duplicating the constants to ensure they won't
be wrong.
The real change is to pass (bufsz - 1) to PyOS_ascii_formatd and 1
to strncat. strncat copies n+1 bytes from src (not dest).
Reported by Klocwork #58.
Neal Norwitz [Sun, 16 Jul 2006 02:17:36 +0000 (02:17 +0000)]
Fix memory leak under some conditions.
Reported by Klocwork, #98.
Neal Norwitz [Sun, 16 Jul 2006 02:15:27 +0000 (02:15 +0000)]
Fix memory leaks in some conditions.
Reported by Klocwork #152.
Neal Norwitz [Sun, 16 Jul 2006 02:05:35 +0000 (02:05 +0000)]
proto was dereffed above and is known to be good. No need for X.
Reported by Klocwork, #39.
Neal Norwitz [Sun, 16 Jul 2006 02:02:57 +0000 (02:02 +0000)]
self is dereffed (and passed as first arg), so it's known to be good.
func is returned from PyArg_ParseTuple and also dereffed.
Reported by Klocwork, #30 (self one at least).
Neal Norwitz [Sun, 16 Jul 2006 02:00:32 +0000 (02:00 +0000)]
a & b were dereffed above, so they are known to be valid pointers.
z is known to be NULL, nothing to DECREF.
Reported by Klockwork, #107.
Neal Norwitz [Sun, 16 Jul 2006 01:50:38 +0000 (01:50 +0000)]
Bug #
1512814 , Fix incorrect lineno's when code within a function
had more than 255 blank lines. Byte codes need to go first, line #s second.
Fred Drake [Sun, 16 Jul 2006 01:21:20 +0000 (01:21 +0000)]
clean up some link markup
Bob Ippolito [Sat, 15 Jul 2006 16:53:15 +0000 (16:53 +0000)]
Patch #
1220874 : Update the binhex module for Mach-O.
George Yoshida [Sat, 15 Jul 2006 16:03:49 +0000 (16:03 +0000)]
Bug #
15187702 : ext/win-cookbook.html has a broken link to distutils
Fredrik Lundh [Fri, 14 Jul 2006 21:45:48 +0000 (21:45 +0000)]
typo
Thomas Heller [Fri, 14 Jul 2006 18:22:50 +0000 (18:22 +0000)]
Updates for the ctypes documentation.
Thomas Heller [Fri, 14 Jul 2006 17:51:14 +0000 (17:51 +0000)]
Patch #
1521817 : The index range checking on ctypes arrays containing
exactly one element is enabled again.
Thomas Heller [Fri, 14 Jul 2006 15:01:05 +0000 (15:01 +0000)]
Make the prototypes of our private PyUnicode_FromWideChar and
PyUnicode_AsWideChar replacement functions compatible to the official
functions by using Py_ssize_t instead of int.
Peter Astrand [Fri, 14 Jul 2006 14:04:45 +0000 (14:04 +0000)]
Bug #
1223937 : CalledProcessError.errno -> CalledProcessError.returncode.
Andrew M. Kuchling [Fri, 14 Jul 2006 13:32:38 +0000 (13:32 +0000)]
Mention new options
Martin v. Löwis [Fri, 14 Jul 2006 12:31:05 +0000 (12:31 +0000)]
Fix Debug build of _ssl.
Martin v. Löwis [Fri, 14 Jul 2006 12:10:09 +0000 (12:10 +0000)]
Add debug output to analyse buildbot failure.
Martin v. Löwis [Fri, 14 Jul 2006 09:58:55 +0000 (09:58 +0000)]
Extend build_ssl to Win64, using VSExtComp.
Neal Norwitz [Fri, 14 Jul 2006 07:20:04 +0000 (07:20 +0000)]
Try to improve grammar further.
Georg Brandl [Fri, 14 Jul 2006 07:12:54 +0000 (07:12 +0000)]
Patch #
1521874 : grammar errors in doanddont.tex.
Andrew M. Kuchling [Thu, 13 Jul 2006 17:37:26 +0000 (17:37 +0000)]
Typo fix
Thomas Heller [Thu, 13 Jul 2006 17:05:13 +0000 (17:05 +0000)]
Fix misleading words.
Thomas Heller [Thu, 13 Jul 2006 17:01:14 +0000 (17:01 +0000)]
Fix #
1521375 . When running with root priviledges, 'gcc -o /dev/null'
did overwrite /dev/null. Use a temporary file instead of /dev/null.
Thomas Heller [Thu, 13 Jul 2006 09:53:47 +0000 (09:53 +0000)]
A misspelled preprocessor symbol caused ctypes to be always compiled
without thread support. Replaced WITH_THREADS with WITH_THREAD.
Georg Brandl [Wed, 12 Jul 2006 15:31:17 +0000 (15:31 +0000)]
Accept long options "--help" and "--version".
Thomas Heller [Wed, 12 Jul 2006 14:25:18 +0000 (14:25 +0000)]
Fix the wrong description of LibraryLoader.LoadLibrary, and document
the DEFAULT_MODE constant.
Thomas Heller [Wed, 12 Jul 2006 08:43:47 +0000 (08:43 +0000)]
Fix #
1467450 : ctypes now uses RTLD_GLOBAL by default on OSX 10.3 to
load shared libraries.
Neal Norwitz [Wed, 12 Jul 2006 07:28:29 +0000 (07:28 +0000)]
Actually change the MAGIC #. Create a new section for 2.5c1 and mention the impact of changing the MAGIC #.
Neal Norwitz [Wed, 12 Jul 2006 05:27:46 +0000 (05:27 +0000)]
Fix uninitialized memory read reported by Valgrind when running doctest.
This could happen if size == 0.
Neal Norwitz [Wed, 12 Jul 2006 05:26:35 +0000 (05:26 +0000)]
Fix function name in error msg
Neal Norwitz [Wed, 12 Jul 2006 05:26:17 +0000 (05:26 +0000)]
Bug #
1520864 : unpacking singleton tuples in for loop (for x, in) work again.
Thomas Heller [Tue, 11 Jul 2006 18:40:50 +0000 (18:40 +0000)]
Change the ctypes version number to 1.0.0.
Thomas Heller [Tue, 11 Jul 2006 18:28:35 +0000 (18:28 +0000)]
When a foreign function is retrived by calling __getitem__ on a ctypes
library instance, do not set it as attribute.
Andrew M. Kuchling [Tue, 11 Jul 2006 17:20:16 +0000 (17:20 +0000)]
Bump version number; add sys._current_frames
Thomas Heller [Tue, 11 Jul 2006 16:44:25 +0000 (16:44 +0000)]
Add missing Py_DECREFs.
Thomas Heller [Tue, 11 Jul 2006 16:42:05 +0000 (16:42 +0000)]
Add missing Py_DECREF.
Anthony Baxter [Tue, 11 Jul 2006 03:35:09 +0000 (03:35 +0000)]
Tagging for release of Python 2.5b2
Tim Peters [Tue, 11 Jul 2006 02:17:48 +0000 (02:17 +0000)]
Whitespace normalization.
Anthony Baxter [Tue, 11 Jul 2006 02:04:09 +0000 (02:04 +0000)]
#
1494314 : Fix a regression with high-numbered sockets in 2.4.3. This
means that select() on sockets > FD_SETSIZE (typically 1024) work again.
The patch makes sockets use poll() internally where available.
Martin v. Löwis [Mon, 10 Jul 2006 22:11:28 +0000 (22:11 +0000)]
Patch #
1519566 : Remove unused _tofill member.
Make begin_fill idempotent.
Update demo2 to demonstrate filling of concave shapes.
Tim Peters [Mon, 10 Jul 2006 21:11:49 +0000 (21:11 +0000)]
Whitespace normalization.
Tim Peters [Mon, 10 Jul 2006 21:08:24 +0000 (21:08 +0000)]
After approval from Anthony, merge the tim-current_frames
branch into the trunk. This adds a new sys._current_frames()
function, which returns a dict mapping thread id to topmost
thread stack frame.
Peter Astrand [Mon, 10 Jul 2006 20:39:49 +0000 (20:39 +0000)]
Make it possible to run test_subprocess.py with Python 2.2, which lacks test_support.reap_children().
Phillip J. Eby [Mon, 10 Jul 2006 19:18:35 +0000 (19:18 +0000)]
Fix SF#
1457312 : bad socket error handling in distutils "upload" command.
Phillip J. Eby [Mon, 10 Jul 2006 19:03:29 +0000 (19:03 +0000)]
Fix SF#
1516184 and add a test to prevent regression.
Thomas Heller [Mon, 10 Jul 2006 11:17:37 +0000 (11:17 +0000)]
Moved the ctypes news entries from the 'Library' section into the
'Extension Modules' section where they belong, probably.
This destroyes the original order of the news entries, don't know
if that is important or not.
Thomas Heller [Mon, 10 Jul 2006 11:11:10 +0000 (11:11 +0000)]
Assigning None to pointer type structure fields possible overwrote
wrong fields.
Thomas Heller [Mon, 10 Jul 2006 09:31:06 +0000 (09:31 +0000)]
Fixed a segfault when ctypes.wintypes were imported on
non-Windows machines.
Thomas Heller [Mon, 10 Jul 2006 09:10:28 +0000 (09:10 +0000)]
Fix bug #
1518190 : accept any integer or long value in the
ctypes.c_void_p constructor.
Anthony Baxter [Mon, 10 Jul 2006 07:41:04 +0000 (07:41 +0000)]
preparing for 2.5b2
Martin v. Löwis [Mon, 10 Jul 2006 07:29:41 +0000 (07:29 +0000)]
Add svn:ignore.
Martin v. Löwis [Mon, 10 Jul 2006 07:26:41 +0000 (07:26 +0000)]
Change error message to indicate that VS2003 is necessary to build extension modules, not the .NET SDK.
Martin v. Löwis [Mon, 10 Jul 2006 07:23:48 +0000 (07:23 +0000)]
Introduce DISTUTILS_USE_SDK as a flag to determine whether the
SDK environment should be used. Fixes #
1508010 .
Neal Norwitz [Mon, 10 Jul 2006 02:36:41 +0000 (02:36 +0000)]
Patch #
1504046 : Add documentation for xml.etree.
/F wrote the text docs, Englebert Gruber massaged it to latex and I
did some more massaging to try and improve the consistency and
fix some name mismatches between the declaration and text.
Neal Norwitz [Mon, 10 Jul 2006 01:18:57 +0000 (01:18 +0000)]
Patch #
1516912 : improve Modules support for OpenVMS.
Neal Norwitz [Mon, 10 Jul 2006 00:23:17 +0000 (00:23 +0000)]
Part of SF patch #
1484695 . This removes dead code. The chksum was
already verified in .frombuf() on the lines above. If there was
a problem an exception is raised, so there was no way this condition
could have been true.
Neal Norwitz [Mon, 10 Jul 2006 00:05:34 +0000 (00:05 +0000)]
Fix doco. Backport candidate.
Neal Norwitz [Mon, 10 Jul 2006 00:04:44 +0000 (00:04 +0000)]
Bug #
1512814 , Fix incorrect lineno's when code at module scope
started after line 256.
Neal Norwitz [Sun, 9 Jul 2006 22:14:42 +0000 (22:14 +0000)]
On 64 bit systems, int literals that use less than 64 bits are now ints
rather than longs. This also fixes the test for eval(-sys.maxint - 1).
Neil Schemenauer [Sun, 9 Jul 2006 21:19:29 +0000 (21:19 +0000)]
Fix SF bug
1441486 : bad unary minus folding in compiler.
Neil Schemenauer [Sun, 9 Jul 2006 16:16:34 +0000 (16:16 +0000)]
Fix AST compiler bug #
1501934 : incorrect LOAD/STORE_GLOBAL generation.
Tim Peters [Sat, 8 Jul 2006 19:55:05 +0000 (19:55 +0000)]
Whitespace normalization.
Georg Brandl [Sat, 8 Jul 2006 12:15:27 +0000 (12:15 +0000)]
Add an additional test for bug #
1519018 .
Neal Norwitz [Sat, 8 Jul 2006 05:31:37 +0000 (05:31 +0000)]
Fix SF bug #
1519018 : 'as' is now validated properly in import statements
Georg Brandl [Fri, 7 Jul 2006 08:15:12 +0000 (08:15 +0000)]
Fix RFC number.
Neal Norwitz [Fri, 7 Jul 2006 06:03:15 +0000 (06:03 +0000)]
Restore rev 47014:
The hppa ubuntu box sometimes hangs forever in these tests. My guess
is that the wait is failing for some reason. Use WNOHANG, so we won't
wait until the buildbot kills the test suite.
I haven't been able to reproduce the failure, so I'm not sure if
this will help or not. Hopefully, this change will cause the test
to fail, rather than hang. That will be better since we will get
the rest of the test results. It may also help us debug the real problem.
*** The reason this originally failed was because there were many
zombie children outstanding before rev 47158 cleaned them up.
There are still hangs in test_subprocess that need to be addressed,
but that will take more work. This should close some holes.
Martin v. Löwis [Thu, 6 Jul 2006 19:28:03 +0000 (19:28 +0000)]
Properly generate logical file ids. Fixes #
1515998 .
Also correct typo in Control.mapping.
Hye-Shik Chang [Thu, 6 Jul 2006 15:39:24 +0000 (15:39 +0000)]
Test using all CJK encodings for the testcases which don't require
specific encodings.
Hye-Shik Chang [Thu, 6 Jul 2006 15:21:52 +0000 (15:21 +0000)]
Add a testcase for r47086 which fixed a bug in codec_getstreamcodec().
Thomas Heller [Thu, 6 Jul 2006 15:06:05 +0000 (15:06 +0000)]
Document the correct return type of PyLong_AsUnsignedLongLongMask.
Andrew M. Kuchling [Thu, 6 Jul 2006 13:57:28 +0000 (13:57 +0000)]
ImportWarning is now silent by default
Nick Coghlan [Thu, 6 Jul 2006 13:47:18 +0000 (13:47 +0000)]
Add NEWS entries for the ImportWarning change and documentation update
Nick Coghlan [Thu, 6 Jul 2006 13:41:34 +0000 (13:41 +0000)]
Cover ImportWarning, PendingDeprecationWarning and simplefilter() in the warnings module docs
Nick Coghlan [Thu, 6 Jul 2006 13:35:27 +0000 (13:35 +0000)]
Ignore ImportWarning by default
Nick Coghlan [Thu, 6 Jul 2006 13:04:56 +0000 (13:04 +0000)]
Update the tutorial section on relative imports
Nick Coghlan [Thu, 6 Jul 2006 12:53:04 +0000 (12:53 +0000)]
Revert the __module_name__ changes made in rev 47142. We'll revisit this in Python 2.6
Fredrik Lundh [Thu, 6 Jul 2006 12:29:24 +0000 (12:29 +0000)]
added XMLParser alias for cElementTree compatibility
Thomas Wouters [Thu, 6 Jul 2006 10:48:28 +0000 (10:48 +0000)]
NEWS entry for r47267: fixing configure's zlib probing.
Ronald Oussoren [Thu, 6 Jul 2006 10:13:35 +0000 (10:13 +0000)]
This patch solves the problem Skip was seeing with zlib, this patch ensures that
configure uses similar compiler flags as setup.py when doing the zlib test.
Without this patch configure would use the first shared library on the linker
path, with this patch it uses the first shared or static library on that path
just like setup.py.
Thomas Heller [Thu, 6 Jul 2006 09:11:22 +0000 (09:11 +0000)]
Document the changes in svn revision 47263, from patch #
1517790 .
Thomas Heller [Thu, 6 Jul 2006 08:58:40 +0000 (08:58 +0000)]
Document the Struture and Union constructors.
Thomas Heller [Thu, 6 Jul 2006 08:48:35 +0000 (08:48 +0000)]
Patch #
1517790 : It is now possible to use custom objects in the ctypes
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.
Thomas Heller [Thu, 6 Jul 2006 08:28:14 +0000 (08:28 +0000)]
The test that calls a function with invalid arguments and catches the
resulting Windows access violation will not be run by default.
Armin Rigo [Thu, 6 Jul 2006 07:58:18 +0000 (07:58 +0000)]
A couple of examples about how to attack the fact that _PyType_Lookup()
returns a borrowed ref. Many of the calls are open to attack.
Thomas Heller [Thu, 6 Jul 2006 07:50:18 +0000 (07:50 +0000)]
Revert the change done in svn revision 47206:
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.
Martin v. Löwis [Thu, 6 Jul 2006 07:05:21 +0000 (07:05 +0000)]
Properly quote compileall and Lib paths in case TARGETDIR has a space.
Martin v. Löwis [Thu, 6 Jul 2006 06:55:58 +0000 (06:55 +0000)]
Add sqlite3.dll to the DLLs component, not to the TkDLLs component.
Fixes #
1517388 .
Neal Norwitz [Thu, 6 Jul 2006 06:45:08 +0000 (06:45 +0000)]
Add a NEWS entry for a recent pyexpat fix
Fred Drake [Thu, 6 Jul 2006 05:13:22 +0000 (05:13 +0000)]
- back out Expat change; the final fix to Expat will be different
- change the pyexpat wrapper to not be so sensitive to this detail of the
Expat implementation (the ex-crasher test still passes)
Neal Norwitz [Thu, 6 Jul 2006 04:28:59 +0000 (04:28 +0000)]
Fix refleaks reported by Shane Hathaway in SF patch #
1515361 . This change
contains only the changes related to leaking the copy variable.
Georg Brandl [Wed, 5 Jul 2006 15:50:05 +0000 (15:50 +0000)]
no need to elaborate "string".
Georg Brandl [Wed, 5 Jul 2006 14:18:45 +0000 (14:18 +0000)]
Patch #
1517490 : fix glitches in filter() docs.
Thomas Wouters [Wed, 5 Jul 2006 11:03:49 +0000 (11:03 +0000)]
Fix bug in passing tuples to string.Template. All other values (with working
str() or repr()) would work, just not multi-value tuples. Probably not a
backport candidate, since it changes the behaviour of passing a
single-element tuple:
>>> string.Template("$foo").substitute(dict(foo=(1,)))
'(1,)'
versus
'1'
Thomas Heller [Wed, 5 Jul 2006 09:13:56 +0000 (09:13 +0000)]
Fix the bitfield test when _ctypes is compiled with MingW. Structures
containing bitfields may have different layout on MSVC and MingW .