]>
granicus.if.org Git - python/log
Thomas Heller [Mon, 20 Mar 2006 14:22:05 +0000 (14:22 +0000)]
Avoid a potential double-free bug.
Thomas Heller [Mon, 20 Mar 2006 10:22:42 +0000 (10:22 +0000)]
Apply patch from Martin v. Loewis: Avoid function pointer casts.
https://sourceforge.net/tracker/?func=detail&atid=532156&aid=
1453037 &group_id=71702
Georg Brandl [Mon, 20 Mar 2006 09:38:58 +0000 (09:38 +0000)]
Remove mention of fpectl in README.
Neal Norwitz [Mon, 20 Mar 2006 08:47:12 +0000 (08:47 +0000)]
Damn Coverity. I can't even sneak in a leak any more. :-)
Thomas Heller [Mon, 20 Mar 2006 08:29:28 +0000 (08:29 +0000)]
Fix another bug found by Coverty.
Thomas Heller [Mon, 20 Mar 2006 08:28:19 +0000 (08:28 +0000)]
Fix bug found by Coverty.
Thomas Heller [Mon, 20 Mar 2006 08:11:56 +0000 (08:11 +0000)]
Plug a leak in the ctypes test suite when tests are run repeatedly.
Thomas Heller [Mon, 20 Mar 2006 07:54:01 +0000 (07:54 +0000)]
Accessing unaligned structure fields works now on all architectures.
Including unittest.
Neal Norwitz [Mon, 20 Mar 2006 07:25:26 +0000 (07:25 +0000)]
The helper is only necessary for wait3/4.
Anthony Baxter [Mon, 20 Mar 2006 07:10:01 +0000 (07:10 +0000)]
whitespace n11n
Neal Norwitz [Mon, 20 Mar 2006 06:48:34 +0000 (06:48 +0000)]
Try to cleanup a lot of boilerplate #ifdef wrt wait types and make the code
more consistent (and smaller by 85 lines or so).
Neal Norwitz [Mon, 20 Mar 2006 06:34:06 +0000 (06:34 +0000)]
Make some functions static, reformat function decl to be consistent and check for error from PyModule_GetDict()
Neal Norwitz [Mon, 20 Mar 2006 06:33:01 +0000 (06:33 +0000)]
Get Py_DEPRECATED to work with gcc 4.x too
Anthony Baxter [Mon, 20 Mar 2006 06:30:41 +0000 (06:30 +0000)]
moved older releases into HISTORY
Neal Norwitz [Mon, 20 Mar 2006 06:30:08 +0000 (06:30 +0000)]
Patch #
1309579 : wait3 and wait4 were added to the posix module by Chad J. Schroeder.
This was a fair amount of rework of the patch. Refactored test_fork1 so it
could be reused by the new tests for wait3/4. Also made them into new style
unittests (derive from unittest.TestCase).
Anthony Baxter [Mon, 20 Mar 2006 06:25:04 +0000 (06:25 +0000)]
experimenting with release stuff. please ignore
Anthony Baxter [Mon, 20 Mar 2006 05:58:21 +0000 (05:58 +0000)]
replace use of int16_t with a (typedef'd) short, to fix Windows buildbots.
expand tabs.
Anthony Baxter [Mon, 20 Mar 2006 05:29:26 +0000 (05:29 +0000)]
ignore the fetched NormalizationTest.txt file
Anthony Baxter [Mon, 20 Mar 2006 05:21:58 +0000 (05:21 +0000)]
SF [
1231053 ] audioop - alaw encoding/decoding added, code updated
This patch adds a-LAW encoding to audioop and replaces the old
u-LAW encoding/decoding code with the current code from sox.
Possible issues: the code from sox uses int16_t.
Code by Lars Immisch
Neal Norwitz [Mon, 20 Mar 2006 04:08:12 +0000 (04:08 +0000)]
SF #
1445431 , fix some leaks in error conditions.
Neal Norwitz [Mon, 20 Mar 2006 02:04:23 +0000 (02:04 +0000)]
Get rid of some warnings.
Neal Norwitz [Mon, 20 Mar 2006 01:58:39 +0000 (01:58 +0000)]
Fix problem spotted by Coverity that occurs if tzinfo.tzname().replace()
returns a non-string when converting %Z.
Will backport.
Neal Norwitz [Mon, 20 Mar 2006 01:55:26 +0000 (01:55 +0000)]
Update function name to reflect params and stop casting to long to avoid losing data
Neal Norwitz [Mon, 20 Mar 2006 01:53:23 +0000 (01:53 +0000)]
Use macro versions instead of function versions when we already know the type.
This will hopefully get rid of some Coverity warnings, be a hint to
developers, and be marginally faster.
Some asserts were added when the type is currently known, but depends
on values from another function.
Kurt B. Kaiser [Sun, 19 Mar 2006 20:40:05 +0000 (20:40 +0000)]
Source file f.flush() after writing; trying to avoid lossage if user
kills GUI. Report from B. Sherwood. Backport to 2.3.4.
Georg Brandl [Sun, 19 Mar 2006 11:20:29 +0000 (11:20 +0000)]
Update tutorial wrt PEP 341 try-except-finally statement
Barry Warsaw [Sat, 18 Mar 2006 18:12:26 +0000 (18:12 +0000)]
Ignore api.{dvi,idx,ind,l2h,log,toc} and modapi.ind, via suffix
wildcards.
Hye-Shik Chang [Sat, 18 Mar 2006 18:07:35 +0000 (18:07 +0000)]
Ignore *.pyc and *.pyo
Walter Dörwald [Sat, 18 Mar 2006 16:35:17 +0000 (16:35 +0000)]
Change raise statement to PEP 8 style.
Barry Warsaw [Sat, 18 Mar 2006 16:17:17 +0000 (16:17 +0000)]
Shim for test_email_renamed.py tests.
Barry Warsaw [Sat, 18 Mar 2006 15:41:53 +0000 (15:41 +0000)]
Merge email package 4.0 from the sandbox, including documentation, test cases,
and NEWS updates.
Walter Dörwald [Sat, 18 Mar 2006 14:22:26 +0000 (14:22 +0000)]
Add tests for the C APIs PyCodec_IncrementalEncoder() and
PyCodec_IncrementalDecoder().
Walter Dörwald [Sat, 18 Mar 2006 14:05:43 +0000 (14:05 +0000)]
Release codecs variable earlier.
Thomas Heller [Sat, 18 Mar 2006 12:52:54 +0000 (12:52 +0000)]
Fix compiler warning.
Georg Brandl [Sat, 18 Mar 2006 11:35:18 +0000 (11:35 +0000)]
Bug #
1353433 : be conciliant with spaces in redirect URLs
Georg Brandl [Sat, 18 Mar 2006 07:59:59 +0000 (07:59 +0000)]
Previously, Python code had no easy way to access the contents of a
cell object. Now, a ``cell_contents`` attribute has been added
(closes patch #
1170323 ).
Andrew M. Kuchling [Fri, 17 Mar 2006 22:25:15 +0000 (22:25 +0000)]
You need at least one \item
Andrew M. Kuchling [Fri, 17 Mar 2006 21:48:46 +0000 (21:48 +0000)]
Write section
Georg Brandl [Fri, 17 Mar 2006 19:17:34 +0000 (19:17 +0000)]
RFE #567972: Socket objects' family, type and proto properties are
now exposed via new get...() methods.
Georg Brandl [Fri, 17 Mar 2006 19:03:25 +0000 (19:03 +0000)]
Fix some missing checks after PyTuple_New, PyList_New, PyDict_New
Georg Brandl [Fri, 17 Mar 2006 18:47:14 +0000 (18:47 +0000)]
Remove the lib-old modules from Doc/lib/libundoc.tex.
Now only Modules/timingmodule.c is left. Should that be removed, too?
(dito for clmodule and svmodule)
Nick Coghlan [Fri, 17 Mar 2006 17:59:10 +0000 (17:59 +0000)]
Fix bug
1441408 where a double colon didn't trigger extended slice semantics (applies patch
1452332 )
Georg Brandl [Fri, 17 Mar 2006 16:26:31 +0000 (16:26 +0000)]
More \exception fixes.
Andrew M. Kuchling [Fri, 17 Mar 2006 15:56:41 +0000 (15:56 +0000)]
Add two items
Andrew M. Kuchling [Fri, 17 Mar 2006 15:56:13 +0000 (15:56 +0000)]
Markup fix
Thomas Heller [Fri, 17 Mar 2006 15:52:58 +0000 (15:52 +0000)]
Merge changes from the upstream version:
- cast is implemented as a foreign function now
- On Windows, it is now possible to access functions exported by ordinal only
Andrew M. Kuchling [Fri, 17 Mar 2006 15:39:52 +0000 (15:39 +0000)]
Remove mention of lib-old, and list more deleted modules
Andrew M. Kuchling [Fri, 17 Mar 2006 15:38:39 +0000 (15:38 +0000)]
Add some items
Neal Norwitz [Fri, 17 Mar 2006 08:55:46 +0000 (08:55 +0000)]
as is on the road to keyword-hood, use a different var name.
Neal Norwitz [Fri, 17 Mar 2006 07:15:59 +0000 (07:15 +0000)]
Oops, copied the wrong code from keeprefs. Get the right code
this time and call gc.collect(), since there is some garbage.
The original code didn't really leak (if gc.collect() was called).
Neal Norwitz [Fri, 17 Mar 2006 04:52:38 +0000 (04:52 +0000)]
Update/expand on comments about leaking tests.
Neal Norwitz [Fri, 17 Mar 2006 04:45:38 +0000 (04:45 +0000)]
Ignore ctypes leaks, but add a test case so we do not forget.
Neal Norwitz [Fri, 17 Mar 2006 04:37:34 +0000 (04:37 +0000)]
Try to find a host that responds slower from python.org so this test does not fail on macteagle (G4 OSX.4 in buildbot)
Tim Peters [Fri, 17 Mar 2006 03:29:34 +0000 (03:29 +0000)]
Introduced symbol PY_FORMAT_SIZE_T. See the new comments
in pyport.h. Changed PyString_FromFormatV() to use it
instead of inlining its own maze of #if'ery.
Walter Dörwald [Thu, 16 Mar 2006 21:46:40 +0000 (21:46 +0000)]
Fix wrong argument format in PyCodec_IncrementalEncoder() and
PyCodec_IncrementalDecoder().
Factor out common code from PyCodec_Encoder()/PyCodec_Decoder(),
PyCodec_IncrementalEncoder()/PyCodec_IncrementalDecoder() and
PyCodec_StreamReader()/PyCodec_StreamWriter().
Thomas Heller [Thu, 16 Mar 2006 20:09:22 +0000 (20:09 +0000)]
Fix a test that fails when libGL.so and libGLU.so are not installed (on posix systems).
Thomas Heller [Thu, 16 Mar 2006 20:02:36 +0000 (20:02 +0000)]
Fix a leak that would happen under error conditions (found by Coverty).
Thomas Heller [Thu, 16 Mar 2006 19:56:24 +0000 (19:56 +0000)]
Use int 0 as default defval for LCID if nothing has been supplied.
Thomas Heller [Thu, 16 Mar 2006 19:34:56 +0000 (19:34 +0000)]
Fix compiler warning.
Thomas Heller [Thu, 16 Mar 2006 19:26:21 +0000 (19:26 +0000)]
Fixes from Neal Norwitz, plus other small fixes.
Thomas Heller [Thu, 16 Mar 2006 19:24:27 +0000 (19:24 +0000)]
Rewrite the AllocFunctionCallback function for better error handling.
Hope that fixes one or two Coverty warnings.
Tim Peters [Thu, 16 Mar 2006 18:55:20 +0000 (18:55 +0000)]
Set eol-style to native.
Trent Mick [Thu, 16 Mar 2006 17:34:41 +0000 (17:34 +0000)]
Update test_winsound to check for a configured sound card (using a VBScript
helper written by Roger Upole and Mark Hammond) and adjust the expected
PlaySoundTest case results accordingly.
Neal Norwitz [Thu, 16 Mar 2006 08:20:19 +0000 (08:20 +0000)]
Make mktuple consistent with mklist to get rid of Coverity warnings. Also use macro version of SetItem since we know everything is setup.
Neal Norwitz [Thu, 16 Mar 2006 07:49:19 +0000 (07:49 +0000)]
Add some versionadded info to new incremental codec docs and fix doco nits.
Thomas Heller [Thu, 16 Mar 2006 07:33:49 +0000 (07:33 +0000)]
Don't delete non-autogenerated source files when cleaning up.
Neal Norwitz [Thu, 16 Mar 2006 07:05:59 +0000 (07:05 +0000)]
Remove some more references to regex that I missed.
Neal Norwitz [Thu, 16 Mar 2006 06:50:13 +0000 (06:50 +0000)]
Remove regsub, reconvert, regex, regex_syntax and everything under lib-old.
Neal Norwitz [Thu, 16 Mar 2006 06:40:39 +0000 (06:40 +0000)]
Add a news entry about the sre/re swap.
Neal Norwitz [Thu, 16 Mar 2006 06:33:21 +0000 (06:33 +0000)]
Spel compatibility write.
Neal Norwitz [Thu, 16 Mar 2006 06:31:02 +0000 (06:31 +0000)]
Add back an sre.py that should be backwards compatible except for the warning.
Neal Norwitz [Thu, 16 Mar 2006 06:30:02 +0000 (06:30 +0000)]
Rename sre.py -> re.py
Neal Norwitz [Thu, 16 Mar 2006 06:27:37 +0000 (06:27 +0000)]
Remove re.py, in order to rename sre.py -> re.py (svn seems to require 2 steps).
Neal Norwitz [Thu, 16 Mar 2006 06:21:19 +0000 (06:21 +0000)]
The pre module has been gone for a while. Need to go through and find other modules that no longer exists, since errors are silently ignored.
Tim Peters [Thu, 16 Mar 2006 02:31:36 +0000 (02:31 +0000)]
Oops! Use python_d.exe _before_ it's destroyed :-)
Tim Peters [Thu, 16 Mar 2006 01:54:16 +0000 (01:54 +0000)]
Change the Windows buildbot "clean" step to remove
stale .pyc files.
Tim Peters [Thu, 16 Mar 2006 01:14:46 +0000 (01:14 +0000)]
Merge the tim-obmalloc branch to the trunk.
This is a heavily altered derivative of SF patch
1123430 , Evan
Jones's heroic effort to make obmalloc return unused arenas to
the system free(), with some heuristic strategies to make it
more likley that arenas eventually _can_ be freed.
Guido van Rossum [Wed, 15 Mar 2006 23:08:13 +0000 (23:08 +0000)]
Instead of relative imports, use (implicitly) absolute ones.
Walter Dörwald [Wed, 15 Mar 2006 22:17:27 +0000 (22:17 +0000)]
Document the other change from patch #
1359365 .
Walter Dörwald [Wed, 15 Mar 2006 22:13:13 +0000 (22:13 +0000)]
SF patch #
1359365 : cStringIO.StringIO.isatty() will raise a ValueError
now if close() has been called before (like file and StringIO.StringIO do)
Thomas Heller [Wed, 15 Mar 2006 21:49:52 +0000 (21:49 +0000)]
Backport from upstream version: compatibility with older Python
versions.
Tim Peters [Wed, 15 Mar 2006 18:08:37 +0000 (18:08 +0000)]
Whitespace normalization.
Walter Dörwald [Wed, 15 Mar 2006 13:36:50 +0000 (13:36 +0000)]
Fix typo.
Nick Coghlan [Wed, 15 Mar 2006 13:29:19 +0000 (13:29 +0000)]
Don't try to explicitly set path in runpy package tests (tests were broken on Windows)
Nick Coghlan [Wed, 15 Mar 2006 13:11:54 +0000 (13:11 +0000)]
Don't let cleanup errors mask real errors in the runpy tests
Vinay Sajip [Wed, 15 Mar 2006 12:45:07 +0000 (12:45 +0000)]
Catch situations where currentframe() returns None. See SF patch #
1447410 , this is a different implementation.
Nick Coghlan [Wed, 15 Mar 2006 12:40:38 +0000 (12:40 +0000)]
Make test_runpy close all references to test modules before trying to delete the underlying files
Andrew M. Kuchling [Wed, 15 Mar 2006 11:53:09 +0000 (11:53 +0000)]
Add section
Walter Dörwald [Wed, 15 Mar 2006 11:35:15 +0000 (11:35 +0000)]
Patch #
1436130 : codecs.lookup() now returns a CodecInfo object (a subclass
of tuple) that provides incremental decoders and encoders (a way to use
stateful codecs without the stream API). Functions
codecs.getincrementaldecoder() and codecs.getincrementalencoder() have
been added.
Nick Coghlan [Wed, 15 Mar 2006 11:00:26 +0000 (11:00 +0000)]
Implement PEP 338 which has been marked as accepted by GvR
Tim Peters [Wed, 15 Mar 2006 09:17:20 +0000 (09:17 +0000)]
Revert rev 43041, which introduced the "z" format qualifier
unique to Python 2.5.
Tim Peters [Wed, 15 Mar 2006 08:41:15 +0000 (08:41 +0000)]
CField_repr(): PyString_FromFormat() understands the
C99 "z" qualifier on all platforms.
Thomas Heller [Wed, 15 Mar 2006 08:34:38 +0000 (08:34 +0000)]
In 'make clean', delete some files that are generated by the _ctypes/libffi
configure step.
Walter Dörwald [Wed, 15 Mar 2006 08:23:53 +0000 (08:23 +0000)]
SF patch #
1359365 : file and cStringIO raise a ValueError when next() is called
after calling close(). Change StringIO, so that it behaves the same way.
Neal Norwitz [Wed, 15 Mar 2006 05:43:10 +0000 (05:43 +0000)]
Move test code out of xxmodule and into _testcapimodule.c where it belongs.
Will backport.
Guido van Rossum [Wed, 15 Mar 2006 04:33:54 +0000 (04:33 +0000)]
Use relative imports in a few places where I noticed the need.
(Ideally, all packages in Python 2.5 will use the relative import
syntax for all their relative import needs.)
Tim Peters [Tue, 14 Mar 2006 22:48:56 +0000 (22:48 +0000)]
Renamed test_hashlib_speed.py to time_hashlib.py.
Since it's never intended that this script be run by
regrtest.py, it shouldn't have been named with a "test_"
prefix to begin with. A consequence is that we shouldn't
see useless:
test_hashlib_speed skipped -- not a unit test (stand alone benchmark)
lines in regrtest output anymore.
Thomas Heller [Tue, 14 Mar 2006 20:52:24 +0000 (20:52 +0000)]
Try to avoid many of the compiler warnings when compiling libffi by
using a proper function prototype.
Thomas Heller [Tue, 14 Mar 2006 20:39:27 +0000 (20:39 +0000)]
Cast an Py_ssize_t to int, to avoid a compiler warning.
Thomas Heller [Tue, 14 Mar 2006 20:22:47 +0000 (20:22 +0000)]
For x86 Release and Debug builds, remove the /Wp64 compiler flag, it
is responsible for most (all?) of the warnings we get.