]>
granicus.if.org Git - python/log
Andrew M. Kuchling [Fri, 27 Oct 2006 16:57:44 +0000 (16:57 +0000)]
[Bug #
1575506 ] The _singlefileMailbox class was using the wrong file object in its flush() method, causing an error
Andrew M. Kuchling [Fri, 27 Oct 2006 16:42:19 +0000 (16:42 +0000)]
[Bug #
1576241 ] Let functools.wraps work with built-in functions
Andrew M. Kuchling [Fri, 27 Oct 2006 14:54:43 +0000 (14:54 +0000)]
Point users to the subprocess module in the docs for os.system, os.spawn*, os.popen2, and the popen2 and commands modules
Andrew M. Kuchling [Fri, 27 Oct 2006 13:29:41 +0000 (13:29 +0000)]
[Bug #
1542016 ] Report PCALL_POP value. This makes the return value of sys.callstats() match its docstring.
Backport candidate. Though it's an API change, this is a pretty obscure
portion of the API.
Andrew M. Kuchling [Fri, 27 Oct 2006 13:06:41 +0000 (13:06 +0000)]
[Bug #
1562583 ] Mention the set_reuse_addr() method
Andrew M. Kuchling [Fri, 27 Oct 2006 12:50:55 +0000 (12:50 +0000)]
[Bug #
1583946 ] Reword description of server and issuer
Andrew M. Kuchling [Fri, 27 Oct 2006 12:18:58 +0000 (12:18 +0000)]
[Bug #
1585690 ] Note that line_num was added in Python 2.5
Martin v. Löwis [Fri, 27 Oct 2006 07:06:59 +0000 (07:06 +0000)]
Get DBL_MAX from float.h not values.h.
Martin v. Löwis [Fri, 27 Oct 2006 06:43:00 +0000 (06:43 +0000)]
Check for values.h.
Martin v. Löwis [Fri, 27 Oct 2006 06:17:21 +0000 (06:17 +0000)]
[Backport of r52452]
Patch #
1549049 : Rewrite type conversion in structmember.
Fixes #
1545696 and #
1566140 .
The new warnings have been omitted in the backport.
Andrew M. Kuchling [Thu, 26 Oct 2006 19:11:06 +0000 (19:11 +0000)]
[Bug #
1579796 ] Wrong syntax for PyDateTime_IMPORT in documentation. Reported by David Faure.
Georg Brandl [Tue, 24 Oct 2006 16:54:23 +0000 (16:54 +0000)]
Patch [
1583506 ] tarfile.py: 100-char filenames are truncated
(backport from rev. 52431)
Martin v. Löwis [Sun, 22 Oct 2006 13:46:23 +0000 (13:46 +0000)]
Remove passwd.adjunct.byname from list of maps
for test_nis.
Martin v. Löwis [Sun, 22 Oct 2006 10:55:25 +0000 (10:55 +0000)]
- Patch #
1560695 : Add .note.GNU-stack to ctypes' sysv.S so that
ctypes isn't considered as requiring executable stacks.
Martin v. Löwis [Sun, 22 Oct 2006 10:47:28 +0000 (10:47 +0000)]
Patch #
1580872 : Remove duplicate declaration of PyCallable_Check.
Thomas Heller [Fri, 20 Oct 2006 19:59:33 +0000 (19:59 +0000)]
Recorded merge of revisions 51379-51603,51606-52365 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk/Modules/_ctypes
........
r51379 | thomas.heller | 2006-08-18 16:38:46 +0200 (Fr, 18 Aug 2006) | 6 lines
Add asserts to check for 'impossible' NULL values, with comments.
In one place where I'n not 1000% sure about the non-NULL, raise
a RuntimeError for safety.
This should fix the klocwork issues that Neal sent me. If so,
it should be applied to the release25-maint branch also.
........
r51401 | neal.norwitz | 2006-08-19 06:23:04 +0200 (Sa, 19 Aug 2006) | 4 lines
Move assert to after NULL check, otherwise we deref NULL in the assert.
Klocwork #307
........
r51819 | thomas.heller | 2006-09-07 20:56:28 +0200 (Do, 07 Sep 2006) | 5 lines
Anonymous structure fields that have a bit-width specified did not work,
and they gave a strange error message from PyArg_ParseTuple:
function takes exactly 2 arguments (3 given).
With tests.
........
r51820 | thomas.heller | 2006-09-07 21:09:54 +0200 (Do, 07 Sep 2006) | 4 lines
The cast function did not accept c_char_p or c_wchar_p instances
as first argument, and failed with a 'bad argument to internal function'
error message.
........
r52365 | thomas.heller | 2006-10-17 21:30:48 +0200 (Di, 17 Okt 2006) | 6 lines
ctypes callback functions only support 'fundamental' result types.
Check this and raise an error when something else is used - before
this change ctypes would hang or crash when such a callback was
called. This is a partial fix for #
1574584 .
Will backport to release25-maint.
........
Thomas Heller [Fri, 20 Oct 2006 07:21:26 +0000 (07:21 +0000)]
Initialized merge tracking via "svnmerge" with revisions "1-51333" from
svn+ssh://pythondev@svn.python.org/python/trunk/Modules/_ctypes
(This had to be done with the command line:
svnmerge init -r 1:51333 -F c:\svn\trunk\Modules\_ctypes
because svnmerge isn't able to deduce the branch point r51333 and the
HEAD URL automatically in a subdirectory.)
Andrew M. Kuchling [Thu, 19 Oct 2006 21:56:14 +0000 (21:56 +0000)]
[Bug #
1576348 ] Fix typo in example
Tim Peters [Wed, 18 Oct 2006 05:30:25 +0000 (05:30 +0000)]
C:\Code\python>type c.txt
Merge rev 52377 from trunk:
newIobject(): repaired incorrect cast to quiet MSVC warning.
Thomas Heller [Tue, 17 Oct 2006 19:41:10 +0000 (19:41 +0000)]
ctypes callback functions only support 'fundamental' result types.
Check this and raise an error when something else is used - before
this change ctypes would hang or crash when such a callback was
called. This is a partial fix for #
1574584 .
Backported from trunk.
Martin v. Löwis [Tue, 17 Oct 2006 18:59:06 +0000 (18:59 +0000)]
Forward-port r52358:
- Bug #
1578513 : Cross compilation was broken by a change to configure.
Repair so that it's back to how it was in 2.4.3.
Martin v. Löwis [Tue, 17 Oct 2006 18:10:09 +0000 (18:10 +0000)]
Remove obsolete file.
Martin v. Löwis [Tue, 17 Oct 2006 15:22:20 +0000 (15:22 +0000)]
Patch #
1457736 : Update VC6 to use current PCbuild settings.
Martin v. Löwis [Sun, 15 Oct 2006 14:30:49 +0000 (14:30 +0000)]
Mention the bdist_msi module.
Martin v. Löwis [Sun, 15 Oct 2006 12:04:07 +0000 (12:04 +0000)]
Remove binary property on project files, set eol-style
to CRLF instead.
Martin v. Löwis [Sun, 15 Oct 2006 09:44:02 +0000 (09:44 +0000)]
Bug #
1567666 : Emulate GetFileAttributesExA for Win95.
Martin v. Löwis [Sun, 15 Oct 2006 08:51:47 +0000 (08:51 +0000)]
Patch #
1577551 : Add ctypes and ET build support for VC6.
Martin v. Löwis [Sun, 15 Oct 2006 07:55:42 +0000 (07:55 +0000)]
Patch #
1576954 : Update VC6 build directory; remove redundant
files in VC7.1 pythoncore.vcproj.
Georg Brandl [Thu, 12 Oct 2006 12:03:11 +0000 (12:03 +0000)]
Fix tarfile depending on buggy int('1\0', base) behavior.
(backport from rev. 52313)
Georg Brandl [Thu, 12 Oct 2006 11:59:29 +0000 (11:59 +0000)]
Small grammar fix, thanks Sjoerd.
(backport from rev. 52311)
Georg Brandl [Thu, 12 Oct 2006 11:47:00 +0000 (11:47 +0000)]
Bug #
1560114 : the Mac filesystem does have accurate information
about the case of filenames.
(backport from rev. 52309)
Georg Brandl [Thu, 12 Oct 2006 11:41:15 +0000 (11:41 +0000)]
Add a note to fpectl docs that it's not built by default
(bug #
1556261 ).
(backport from rev. 52307)
Georg Brandl [Thu, 12 Oct 2006 11:28:04 +0000 (11:28 +0000)]
Bug #
1545497 : when given an explicit base, int() did ignore NULs
embedded in the string to convert.
(backport from rev. 52305)
Georg Brandl [Thu, 12 Oct 2006 11:14:44 +0000 (11:14 +0000)]
Bug #
1546628 : add a note about urlparse.urljoin() and absolute paths.
(backport from rev. 52303)
Georg Brandl [Thu, 12 Oct 2006 09:47:17 +0000 (09:47 +0000)]
Bug #
1548891 : The cStringIO.StringIO() constructor now encodes unicode
arguments with the system default encoding just like the write()
method does, instead of converting it to a raw buffer.
(backport from rev. 52301)
Georg Brandl [Thu, 12 Oct 2006 09:20:36 +0000 (09:20 +0000)]
Bug #
1550524 : better heuristics to find correct class definition
in inspect.findsource().
(backport from rev. 52299)
Georg Brandl [Thu, 12 Oct 2006 08:22:57 +0000 (08:22 +0000)]
Bug #
1565919 : document set types in the Language Reference.
(backport from rev. 52297)
Georg Brandl [Thu, 12 Oct 2006 07:57:24 +0000 (07:57 +0000)]
Bug #813342: Start the IDLE subprocess with -Qnew if the parent
is started with that option.
(backport from rev. 52295)
Georg Brandl [Thu, 12 Oct 2006 07:38:08 +0000 (07:38 +0000)]
Bug #
1575746 : fix typo in property() docs.
(backport from rev. 52293)
Ronald Oussoren [Tue, 10 Oct 2006 07:54:24 +0000 (07:54 +0000)]
Macosx: fix permission problem in generated installer
Martin v. Löwis [Mon, 9 Oct 2006 20:44:50 +0000 (20:44 +0000)]
Bug #
1565150 : Fix subsecond processing for os.utime on Windows.
Barry Warsaw [Mon, 9 Oct 2006 19:42:33 +0000 (19:42 +0000)]
List gc.get_count() in the module docstring.
Georg Brandl [Mon, 9 Oct 2006 19:03:12 +0000 (19:03 +0000)]
Patch #
1572724 : fix typo ('=' instead of '==') in _msi.c.
(backport from rev. 52251)
Andrew M. Kuchling [Mon, 9 Oct 2006 17:13:26 +0000 (17:13 +0000)]
[Bug #
1545341 ] Let the 'classifiers' parameter be a tuple as well as a list.
Ronald Oussoren [Sun, 8 Oct 2006 18:19:28 +0000 (18:19 +0000)]
Backport of r52238
Ronald Oussoren [Sun, 8 Oct 2006 17:52:37 +0000 (17:52 +0000)]
Backport of r52236
Skip Montanaro [Sun, 8 Oct 2006 17:51:24 +0000 (17:51 +0000)]
Backport libcsv.tex bugfix from rev 52218. (SF ticket
1572471 )
Ronald Oussoren [Sun, 8 Oct 2006 17:50:26 +0000 (17:50 +0000)]
Backport of r52233
Ronald Oussoren [Sun, 8 Oct 2006 17:40:52 +0000 (17:40 +0000)]
Backport of r52229
Ronald Oussoren [Sun, 8 Oct 2006 17:38:48 +0000 (17:38 +0000)]
Backport of r52227.
Hye-Shik Chang [Sun, 8 Oct 2006 14:01:45 +0000 (14:01 +0000)]
Backport from trunk r52223:
Bug #
1572832 : fix a bug in ISO-2022 codecs which may cause segfault
when encoding non-BMP unicode characters. (Submitted by Ray Chason)
Georg Brandl [Sun, 8 Oct 2006 07:12:23 +0000 (07:12 +0000)]
Fix #
1569998 : no break inside try statement (outside loop) allowed.
(backport from rev. 52129)
Georg Brandl [Sun, 8 Oct 2006 07:06:29 +0000 (07:06 +0000)]
Patch #
1542451 : fix crash with continue in nested try/finally
(backport from rev. 51439)
Kristján Valur Jónsson [Sat, 7 Oct 2006 14:56:30 +0000 (14:56 +0000)]
Backport the .sln and .vcproj files for PCBuild8 from the python trunk to the 2.5 maintainance branch. This fixes build problems with visual studio 2005, and cleans up profile guided optimization.
Georg Brandl [Fri, 6 Oct 2006 12:46:33 +0000 (12:46 +0000)]
Fix name.
Andrew M. Kuchling [Fri, 6 Oct 2006 10:39:51 +0000 (10:39 +0000)]
Case fixes
Fred Drake [Fri, 6 Oct 2006 00:03:17 +0000 (00:03 +0000)]
- update links
- remove Sleepycat name now that they have been bought
Andrew M. Kuchling [Thu, 5 Oct 2006 17:26:33 +0000 (17:26 +0000)]
[Backport to 2-5maint of r52147 | andrew.kuchling ; the buildbots seem OK
with this change.]
Cause a PyObject_Malloc() failure to trigger a MemoryError, and then
add 'if (PyErr_Occurred())' checks to various places so that NULL is
returned properly.
Armin Rigo [Wed, 4 Oct 2006 11:44:06 +0000 (11:44 +0000)]
Forward-port of r52136: a review of overflow-detecting code.
* unified the way intobject, longobject and mystrtoul handle
values around -sys.maxint-1.
* in general, trying to entierely avoid overflows in any computation
involving signed ints or longs is extremely involved. Fixed a few
simple cases where a compiler might be too clever (but that's all
guesswork).
* more overflow checks against bad data in marshal.c.
* 2.5 specific: fixed a number of places that were still confusing int
and Py_ssize_t. Some of them could potentially have caused
"real-world" breakage.
* list.pop(x): fixing overflow issues on x was messy. I just reverted
to PyArg_ParseTuple("n"), which does the right thing. (An obscure
test was trying to give a Decimal to list.pop()... doesn't make
sense any more IMHO)
* trying to write a few tests...
Armin Rigo [Wed, 4 Oct 2006 10:23:57 +0000 (10:23 +0000)]
Compilation problem caused by conflicting typedefs for uint32_t
(unsigned long vs. unsigned int).
Martin v. Löwis [Wed, 4 Oct 2006 05:47:47 +0000 (05:47 +0000)]
Fix integer negation and absolute value to not rely
on undefined behaviour of the C compiler anymore.
Barry Warsaw [Wed, 4 Oct 2006 01:28:43 +0000 (01:28 +0000)]
decode_rfc2231(): As Christian Robottom Reis points out, it makes no sense to
test for parts > 3 when we use .split(..., 2).
Martin v. Löwis [Mon, 2 Oct 2006 15:24:01 +0000 (15:24 +0000)]
Guard uintptr_t test with HAVE_STDINT_H, test for
stdint.h.
Martin v. Löwis [Mon, 2 Oct 2006 14:56:15 +0000 (14:56 +0000)]
Fix test for uintptr_t. Fixes #
1568842 .
Georg Brandl [Sat, 30 Sep 2006 12:03:02 +0000 (12:03 +0000)]
Bug #
1546052 : clarify that PyString_FromString(AndSize) copies the
string pointed to by its parameter.
(backport from rev. 52078)
Georg Brandl [Sat, 30 Sep 2006 11:22:35 +0000 (11:22 +0000)]
Bug #
1446043 : correctly raise a LookupError if an encoding name given
to encodings.search_function() contains a dot.
(backport from rev. 52075)
Georg Brandl [Sat, 30 Sep 2006 11:17:43 +0000 (11:17 +0000)]
Bug #
1556784 : allow format strings longer than 127 characters in
datetime's strftime function.
(backport from rev. 52072)
Georg Brandl [Sat, 30 Sep 2006 11:06:55 +0000 (11:06 +0000)]
Bug #
1560617 : in pyclbr, return full module name not only for classes,
but also for functions.
(backport from rev. 52069)
Georg Brandl [Sat, 30 Sep 2006 09:13:29 +0000 (09:13 +0000)]
Bug #
1566602 : correct failure of posixpath unittest when $HOME ends
with a slash.
(backport from rev. 52065)
Georg Brandl [Sat, 30 Sep 2006 09:06:49 +0000 (09:06 +0000)]
Bug #
1566663 : remove obsolete example from datetime docs.
(backport from rev. 52063)
Georg Brandl [Sat, 30 Sep 2006 09:03:45 +0000 (09:03 +0000)]
Bug #
1566800 : make sure that EnvironmentError can be called with any
number of arguments, as was the case in Python 2.4.
(backport from rev. 52061)
Georg Brandl [Sat, 30 Sep 2006 08:43:50 +0000 (08:43 +0000)]
Patch #
1567691 : super() and new.instancemethod() now don't accept
keyword arguments any more (previously they accepted them, but didn't
use them).
(backport from rev. 52058)
Georg Brandl [Sat, 30 Sep 2006 07:32:00 +0000 (07:32 +0000)]
Bug #
1565661 : in webbrowser, split() the command for the default
GNOME browser in case it is a command with args.
(backport from rev. 52056)
Georg Brandl [Sat, 30 Sep 2006 07:24:56 +0000 (07:24 +0000)]
Bug #
1567375 : a minor logical glitch in example description.
(backport from rev. 52053)
Gregory P. Smith [Sat, 30 Sep 2006 06:05:07 +0000 (06:05 +0000)]
fix: DB.stat flags and txn keyword arguments were backwards.
George Yoshida [Sat, 30 Sep 2006 05:22:23 +0000 (05:22 +0000)]
SF bug #
1567976 : fix typo(backport from r52048)
Since this paragraph is about exception's message attribute(2.5 feature),
I will not backport to 2.4 branch.
Andrew M. Kuchling [Wed, 27 Sep 2006 19:24:27 +0000 (19:24 +0000)]
Make examples do error checking on Py_InitModule
Georg Brandl [Mon, 25 Sep 2006 07:04:10 +0000 (07:04 +0000)]
Backport rev. 51972:
Bug #
1557232 : fix seg fault with def f((((x)))) and def f(((x),)).
These tests should be improved. Hopefully this fixes variations when
flipping back and forth between fpdef and fplist.
Georg Brandl [Mon, 25 Sep 2006 06:58:00 +0000 (06:58 +0000)]
Backport rev. 51971:
Fix %zd string formatting on Mac OS X so it prints negative numbers.
In addition to testing positive numbers, verify negative numbers work in configure.
In order to avoid compiler warnings on OS X 10.4, also change the order of the check
for the format character to use (PY_FORMAT_SIZE_T) in the sprintf format
for Py_ssize_t. This patch changes PY_FORMAT_SIZE_T from "" to "l" if it wasn't
defined at configure time. Need to verify the buildbot results.
Georg Brandl [Mon, 25 Sep 2006 06:53:42 +0000 (06:53 +0000)]
Backport rev. 51987: superfluous semicola.
Georg Brandl [Sun, 24 Sep 2006 12:50:28 +0000 (12:50 +0000)]
Fix a bug in traceback.format_exception_only() that led to an error
being raised when print_exc() was called without an exception set.
In version 2.4, this printed "None", restored that behavior.
(backport from rev. 51995)
Georg Brandl [Sun, 24 Sep 2006 12:35:40 +0000 (12:35 +0000)]
Fix a bug in the parser's future statement handling that led to "with"
not being recognized as a keyword after, e.g., this statement:
from __future__ import division, with_statement
(backport from rev. 51993)
Georg Brandl [Sun, 24 Sep 2006 10:36:08 +0000 (10:36 +0000)]
Fix webbrowser.BackgroundBrowser on Windows.
(backport from rev. 51991)
Neal Norwitz [Sat, 23 Sep 2006 18:10:12 +0000 (18:10 +0000)]
SF Bug #
1563963 , add missing word and cleanup first sentance
Jack Diederich [Thu, 21 Sep 2006 20:38:39 +0000 (20:38 +0000)]
added itertools.count(-n) fix
Jack Diederich [Thu, 21 Sep 2006 18:32:11 +0000 (18:32 +0000)]
backport of r51950
* regression bug, count_next was coercing a Py_ssize_t to an unsigned Py_size_t
which breaks negative counts
* added test for negative numbers
Brett Cannon [Thu, 21 Sep 2006 18:12:15 +0000 (18:12 +0000)]
Backport of fix to allow exception instances to be sliced once again.
Anthony Baxter [Tue, 19 Sep 2006 01:05:18 +0000 (01:05 +0000)]
Tagging for release of Python 2.5
Anthony Baxter [Mon, 18 Sep 2006 06:51:50 +0000 (06:51 +0000)]
Preparing for 2.5 final.
(damn, it's nice to see the line
#define PY_VERSION "2.5"
in patchlevel.h)
Anthony Baxter [Mon, 18 Sep 2006 06:45:59 +0000 (06:45 +0000)]
better wording
Martin v. Löwis [Mon, 18 Sep 2006 06:23:06 +0000 (06:23 +0000)]
Mention that GCC 4.1 is also affected, and that
adding -fwrapv helps.
Martin v. Löwis [Mon, 18 Sep 2006 06:00:52 +0000 (06:00 +0000)]
Discourage using GCC 4.2 for Python.
Ronald Oussoren [Sun, 17 Sep 2006 18:40:15 +0000 (18:40 +0000)]
Workaround for bug #
1558983
There is an issue with custom icons on directories in the 2.5c2 installer,
don't set a custom icon on "/Applications/MacPython 2.5" for now.
Also make sure that the installer doesn't crap out when the Makefile in the
system's python installation has other customizations than we expect.
Fred Drake [Fri, 15 Sep 2006 16:10:25 +0000 (16:10 +0000)]
revise explanation of returns_unicode to reflect bool values
and to include the default value
Fred Drake [Fri, 15 Sep 2006 14:14:55 +0000 (14:14 +0000)]
- fix module name in links in formatted documentation
- minor markup cleanup
Georg Brandl [Fri, 15 Sep 2006 05:26:17 +0000 (05:26 +0000)]
Backport uuid doc cleanup from rev. 51883.
Georg Brandl [Fri, 15 Sep 2006 05:20:57 +0000 (05:20 +0000)]
Correct elementtree module index entry.
(backport)
Georg Brandl [Thu, 14 Sep 2006 05:05:42 +0000 (05:05 +0000)]
Backport rev 51866-51868 from trunk (sqlite3 documentation fixes).
Martin v. Löwis [Tue, 12 Sep 2006 09:16:28 +0000 (09:16 +0000)]
Add sgml_input.html.
Anthony Baxter [Tue, 12 Sep 2006 01:00:45 +0000 (01:00 +0000)]
Tagging for release of Python 2.5c2