]>
granicus.if.org Git - python/log
Ronald Oussoren [Sun, 17 Jan 2010 19:32:00 +0000 (19:32 +0000)]
Explicitly use /usr/bin/arch on OSX, fixes issue 7715
Ronald Oussoren [Sun, 17 Jan 2010 19:27:57 +0000 (19:27 +0000)]
This patch ensures that the configure-script mentions checking for --enable-universalsdk
and that it doesn't default to the 10.4u SDK when that SDK does not exist.
(This affects OSX)
This patch should fix most of issue 4834, although I haven't gotten enough
information from the user to be sure.
Ronald Oussoren [Sun, 17 Jan 2010 16:25:57 +0000 (16:25 +0000)]
- Issue #7658: Ensure that the new pythonw executable works on OSX 10.4
- Issue #7714: Use ``gcc -dumpversion`` to detect the version of GCC on
MacOSX.
- Make configure look for util.h as well as libutil.h. The former
is the header file that on OSX contains the defition of openpty.
(Needed to compile for OSX 10.4 on OSX 10.6)
- Use the correct definition of CC to compile the pythonw executable
Antoine Pitrou [Sun, 17 Jan 2010 15:55:45 +0000 (15:55 +0000)]
Use PyAPI_DATA.
Mark Dickinson [Sun, 17 Jan 2010 13:37:57 +0000 (13:37 +0000)]
Issue #7632: Fix a memory leak in _Py_dg_strtod.
Ronald Oussoren [Sun, 17 Jan 2010 12:38:11 +0000 (12:38 +0000)]
Add text to Mac/README to warn about non-universal libraries when
building a universal Python. Based on issue7679.
Antoine Pitrou [Sun, 17 Jan 2010 12:26:20 +0000 (12:26 +0000)]
Issue #7561: Operations on empty bytearrays (such as `int(bytearray())`)
could crash in many places because of the PyByteArray_AS_STRING() macro
returning NULL. The macro now returns a statically allocated empty
string instead.
Georg Brandl [Sun, 17 Jan 2010 12:14:42 +0000 (12:14 +0000)]
Add note about usage of STRINGLIB_EMPTY.
Mark Dickinson [Sun, 17 Jan 2010 11:10:03 +0000 (11:10 +0000)]
Increase number of strtod tests slightly, to make it more likely that a memory leak is detected.
Georg Brandl [Sun, 17 Jan 2010 08:42:30 +0000 (08:42 +0000)]
#7699: improve datetime docs: straightforward linking to strftime/strptime section, mark classmethods as such.
Mark Dickinson [Sat, 16 Jan 2010 20:33:02 +0000 (20:33 +0000)]
Add better error reporting for MemoryErrors caused by str->float conversions.
Ezio Melotti [Sat, 16 Jan 2010 19:36:42 +0000 (19:36 +0000)]
remove wrong markup
Ezio Melotti [Sat, 16 Jan 2010 18:38:01 +0000 (18:38 +0000)]
typo: use one instead instead of two
Mark Dickinson [Sat, 16 Jan 2010 18:06:17 +0000 (18:06 +0000)]
Fix multiple uses of variable 'L' in _Py_dg_strtod, where one use requires an unsigned long and the other a signed long. See also r77421.
Mark Dickinson [Sat, 16 Jan 2010 17:57:49 +0000 (17:57 +0000)]
Issue #7632: Fix one more case of incorrect rounding for str -> float
conversion (see bug 5 in the issue tracker).
Antoine Pitrou [Sat, 16 Jan 2010 17:45:56 +0000 (17:45 +0000)]
Followup to #7703: a2b_hqx() didn't follow the new buffer API (neither in trunk
nor in py3k). Patch by Florent Xicluna as well as additional tests.
R. David Murray [Sat, 16 Jan 2010 16:08:32 +0000 (16:08 +0000)]
Fix issue number in comment.
Mark Dickinson [Sat, 16 Jan 2010 10:44:00 +0000 (10:44 +0000)]
Issue #7632: Fix a serious wrong output bug for string -> float conversion.
Also remove some now unused variables, and add comments clarifying the
possible outputs of the parsing section of _Py_dg_strtod. Thanks
Eric Smith for reviewing.
R. David Murray [Sat, 16 Jan 2010 05:15:17 +0000 (05:15 +0000)]
Issue #
1670765 : Prevent email.generator.Generator from re-wrapping
headers in multipart/signed MIME parts, which fixes one of the sources of
invalid modifications to such parts by Generator. Patch and tests by
Martin von Gagern.
Sean Reifscheider [Sat, 16 Jan 2010 04:27:58 +0000 (04:27 +0000)]
issue5063: Fixes for building RPM on CentOS plus misc .spec file enhancements.
Vinay Sajip [Fri, 15 Jan 2010 23:27:05 +0000 (23:27 +0000)]
Fixed issue-number mistake in NEWS update.
Benjamin Peterson [Fri, 15 Jan 2010 02:26:07 +0000 (02:26 +0000)]
try to fix for windows
Brett Cannon [Fri, 15 Jan 2010 01:31:45 +0000 (01:31 +0000)]
Remove C++/C99-style comments.
Antoine Pitrou [Fri, 15 Jan 2010 00:18:00 +0000 (00:18 +0000)]
Issue #7701: Fix crash in binascii.b2a_uu() in debug mode when given a
1-byte argument. Patch by Victor Stinner.
Brett Cannon [Thu, 14 Jan 2010 20:00:28 +0000 (20:00 +0000)]
The silencing of DeprecationWarning was not taking -3 into consideration. Since
Py3K warnings are DeprecationWarning by default this was causing -3 to
essentially be a no-op. Now DeprecationWarning is only silenced if -3 is not
used.
Closes issue #7700. Thanks Ezio Melotti and Florent Xicluna for patch help.
Antoine Pitrou [Thu, 14 Jan 2010 17:25:24 +0000 (17:25 +0000)]
Issue #3299: Fix possible crash in the _sre module when given bad
argument values in debug mode. Patch by Victor Stinner.
Antoine Pitrou [Thu, 14 Jan 2010 16:27:09 +0000 (16:27 +0000)]
Issue #7703: Add support for the new buffer API to functions of the
binascii module. Backported from py3k by Florent Xicluna, with some
additional tests.
Mark Dickinson [Thu, 14 Jan 2010 15:22:33 +0000 (15:22 +0000)]
Issue #7632: add tests for bugs fixed so far.
Mark Dickinson [Thu, 14 Jan 2010 14:40:20 +0000 (14:40 +0000)]
Issue 7632: fix incorrect rounding for long input strings with values very close to a power of 2. (See Bug 4 in the tracker discussion.)
Mark Dickinson [Thu, 14 Jan 2010 13:14:49 +0000 (13:14 +0000)]
Issue 7632: fix a dtoa.c bug (bug 6) causing incorrect rounding. Tests to follow.
Mark Dickinson [Thu, 14 Jan 2010 13:02:36 +0000 (13:02 +0000)]
Fix off-by-one error introduced in r77483. I have a test for this, but it currently fails due to a different dtoa.c bug; I'll add the test once that bug is fixed.
Ezio Melotti [Thu, 14 Jan 2010 11:34:10 +0000 (11:34 +0000)]
Fixed typo
Benjamin Peterson [Thu, 14 Jan 2010 02:40:10 +0000 (02:40 +0000)]
use more robust quoting
Skip Montanaro [Thu, 14 Jan 2010 01:12:34 +0000 (01:12 +0000)]
Update PyEval_EvalFrame to PyEval_EvalFrameEx. This looks to have been done
partially before. Also add a comment describing how this might have to work
with different versions of the interpreter.
Mark Dickinson [Wed, 13 Jan 2010 22:20:10 +0000 (22:20 +0000)]
More dtoa.c cleanup; remove the need for bc.dplen, bc.dp0 and bc.dp1.
Mark Dickinson [Wed, 13 Jan 2010 22:15:53 +0000 (22:15 +0000)]
Fix buggy comparison: LHS of comparison was being treated as unsigned.
Mark Dickinson [Wed, 13 Jan 2010 20:55:03 +0000 (20:55 +0000)]
Simplify and annotate the bigcomp function, removing unused special cases.
Mark Dickinson [Wed, 13 Jan 2010 19:02:37 +0000 (19:02 +0000)]
Clarify that sulp expects a nonnegative input, but that +0.0 is fine.
Mark Dickinson [Wed, 13 Jan 2010 18:21:53 +0000 (18:21 +0000)]
Add comments explaining the role of the bigcomp function in dtoa.c.
Antoine Pitrou [Wed, 13 Jan 2010 15:02:13 +0000 (15:02 +0000)]
Issue #7625: Add more tests that bytearray methods return new objects,
even if identical. Patch by Florent Xicluna (again).
Antoine Pitrou [Wed, 13 Jan 2010 14:32:51 +0000 (14:32 +0000)]
Add ACKS entry for r77472.
Antoine Pitrou [Wed, 13 Jan 2010 14:32:10 +0000 (14:32 +0000)]
Issue #2846: Add support for gzip.GzipFile reading zero-padded files.
Patch by Brian Curtin.
Antoine Pitrou [Wed, 13 Jan 2010 14:01:26 +0000 (14:01 +0000)]
Sanitize bloom filter macros
Antoine Pitrou [Wed, 13 Jan 2010 13:43:37 +0000 (13:43 +0000)]
Test commit to try to diagnose failures of the IA-64 buildbot
Antoine Pitrou [Wed, 13 Jan 2010 11:57:42 +0000 (11:57 +0000)]
Use `with`
Antoine Pitrou [Wed, 13 Jan 2010 11:47:49 +0000 (11:47 +0000)]
Issue #7661: Allow ctypes to be built from a non-ASCII directory path.
Patch by Florent Xicluna.
Antoine Pitrou [Wed, 13 Jan 2010 08:55:20 +0000 (08:55 +0000)]
Fix Windows build (re r77461)
Antoine Pitrou [Wed, 13 Jan 2010 07:55:48 +0000 (07:55 +0000)]
Issue #7622: Improve the split(), rsplit(), splitlines() and replace()
methods of bytes, bytearray and unicode objects by using a common
implementation based on stringlib's fast search. Patch by Florent Xicluna.
Ezio Melotti [Wed, 13 Jan 2010 00:25:03 +0000 (00:25 +0000)]
#7685: typo
Mark Dickinson [Tue, 12 Jan 2010 22:55:51 +0000 (22:55 +0000)]
Issue #7632: Fix a bug in dtoa.c that could lead to incorrectly-rounded results.
Mark Dickinson [Tue, 12 Jan 2010 22:23:56 +0000 (22:23 +0000)]
Issue #7632: Fix a problem with _Py_dg_strtod that could lead to
crashes in debug builds, for certain long numeric strings
corresponding to subnormal values.
Antoine Pitrou [Tue, 12 Jan 2010 22:02:10 +0000 (22:02 +0000)]
Issue #7654: enable additional bytes/bytearray tests. Patch by Florent Xicluna.
Alexandre Vassalotti [Tue, 12 Jan 2010 18:25:33 +0000 (18:25 +0000)]
Added documentation for dictionary views fixer.
Ezio Melotti [Tue, 12 Jan 2010 03:32:05 +0000 (03:32 +0000)]
#5827: make sure that normpath preserves unicode
Alexandre Vassalotti [Tue, 12 Jan 2010 01:34:43 +0000 (01:34 +0000)]
Fixed repr of dictionary views.
Tarek Ziadé [Mon, 11 Jan 2010 23:41:32 +0000 (23:41 +0000)]
module cleanup
Alexandre Vassalotti [Mon, 11 Jan 2010 23:17:10 +0000 (23:17 +0000)]
Issue #1967: Backport dictionary views.
Alexandre Vassalotti [Mon, 11 Jan 2010 23:13:49 +0000 (23:13 +0000)]
Add missing NEWS entry for r77422.
Tarek Ziadé [Mon, 11 Jan 2010 22:50:29 +0000 (22:50 +0000)]
Fixed #5372: .o files are now always rebuilt because file age test don't work in some case
Alexandre Vassalotti [Mon, 11 Jan 2010 22:46:43 +0000 (22:46 +0000)]
Update version information for AST changes in r77422.
Alexandre Vassalotti [Mon, 11 Jan 2010 22:36:12 +0000 (22:36 +0000)]
Issue #2333: Backport set and dict comprehensions syntax.
Mark Dickinson [Mon, 11 Jan 2010 17:15:13 +0000 (17:15 +0000)]
Change a variable type to avoid signed overflow; replace repeated '19999' constant by a define.
Benjamin Peterson [Sun, 10 Jan 2010 20:42:03 +0000 (20:42 +0000)]
fix test_popen when the path to python has spaces #7671
R. David Murray [Sun, 10 Jan 2010 17:41:28 +0000 (17:41 +0000)]
Issue #7119: document that a program-generated Message object
tree may be mutated when serialized.
Senthil Kumaran [Sun, 10 Jan 2010 17:35:05 +0000 (17:35 +0000)]
Fixed issue7648 - test_urllib2 fails on Windows if not run from C:
Mark Dickinson [Sun, 10 Jan 2010 13:06:31 +0000 (13:06 +0000)]
Remove unused BCinfo fields and an unused macro.
Martin v. Löwis [Sun, 10 Jan 2010 10:29:54 +0000 (10:29 +0000)]
Update root certificate to CAcert.
Brett Cannon [Sun, 10 Jan 2010 02:56:19 +0000 (02:56 +0000)]
DeprecationWarning is now silent by default.
This was originally suggested by Guido, discussed on the stdlib-sig mailing
list, and given the OK by Guido directly to me. What this change essentially
means is that Python has taken a policy of silencing warnings that are only
of interest to developers by default. This should prevent users from seeing
warnings which are triggered by an application being run against a new
interpreter before the app developer has a chance to update their code.
Closes issue #7319. Thanks to Antoine Pitrou, Ezio Melotti, and Brian Curtin
for helping with the issue.
Brett Cannon [Sun, 10 Jan 2010 02:48:50 +0000 (02:48 +0000)]
Update the version # of Python-ast.c based on the backport of set literals from
r77400.
Alexandre Vassalotti [Sat, 9 Jan 2010 23:35:54 +0000 (23:35 +0000)]
Issue #2335: Backport set literals syntax from Python 3.x.
Mark Dickinson [Sat, 9 Jan 2010 18:50:50 +0000 (18:50 +0000)]
Issue #7532: Add additional slicing test cases for new- and old-style
classes. Patch by Florent Xicluna.
Benjamin Peterson [Sat, 9 Jan 2010 17:30:31 +0000 (17:30 +0000)]
post release version adjustment
Benjamin Peterson [Sat, 9 Jan 2010 16:36:09 +0000 (16:36 +0000)]
tag 2.7 alpha 2
Benjamin Peterson [Sat, 9 Jan 2010 16:34:06 +0000 (16:34 +0000)]
bump version to 2.7a2
Georg Brandl [Sat, 9 Jan 2010 09:47:11 +0000 (09:47 +0000)]
#7422: make it clear that getargspec() only works on Python functions.
Tarek Ziadé [Fri, 8 Jan 2010 23:42:23 +0000 (23:42 +0000)]
Fixed #7617: all flavors of gcc should be recognized now
Antoine Pitrou [Fri, 8 Jan 2010 19:39:04 +0000 (19:39 +0000)]
Remove obsolete warning filters in regrtest.py (from issue #7092 -- patch by
Florent Xicluna).
Senthil Kumaran [Fri, 8 Jan 2010 19:20:25 +0000 (19:20 +0000)]
Fix for Issue7026. For the Error - RuntimeError: dictionary changed size during iteration
Antoine Pitrou [Fri, 8 Jan 2010 19:20:17 +0000 (19:20 +0000)]
Issue #7092: Remove py3k warning when importing cPickle. 2to3 handles
renaming of `cPickle` to `pickle`. The warning was annoying since there's
no alternative to cPickle if you care about performance. Patch by Florent
Xicluna.
Senthil Kumaran [Fri, 8 Jan 2010 19:04:16 +0000 (19:04 +0000)]
Reverting the Revision: 77368. I committed Flox's big patch for tests by
mistake. ( It may come in for sure tough)
Senthil Kumaran [Fri, 8 Jan 2010 18:41:40 +0000 (18:41 +0000)]
Fixing - Issue7026 - RuntimeError: dictionary changed size during iteration. Patch by flox
Mark Dickinson [Fri, 8 Jan 2010 16:53:56 +0000 (16:53 +0000)]
Backport some float repr tests that were missed in issue 7117.
Georg Brandl [Thu, 7 Jan 2010 21:48:47 +0000 (21:48 +0000)]
#7653: clarify how the PythonPath registry key should look like.
Georg Brandl [Thu, 7 Jan 2010 20:54:45 +0000 (20:54 +0000)]
Fix description for Py_GetPath(); it sounded like it always returned sys.path.
Antoine Pitrou [Thu, 7 Jan 2010 17:54:10 +0000 (17:54 +0000)]
Fix reattribution mistake when fixing attribution mistake!
Antoine Pitrou [Thu, 7 Jan 2010 17:49:37 +0000 (17:49 +0000)]
Fix attribution. Florent actually repackaged and reviewed Victor's patch (sorry!).
Antoine Pitrou [Thu, 7 Jan 2010 17:46:49 +0000 (17:46 +0000)]
Issue #7455: Fix possible crash in cPickle on invalid input. Patch by
Florent Xicluna.
Mark Dickinson [Thu, 7 Jan 2010 09:28:29 +0000 (09:28 +0000)]
Eric Smith was missing fro m the issue 7117 whatsnew attribution.
R. David Murray [Thu, 7 Jan 2010 04:04:28 +0000 (04:04 +0000)]
Fix inadvertent checkin of debug line.
R. David Murray [Thu, 7 Jan 2010 03:09:08 +0000 (03:09 +0000)]
Add -W to the 'basics', 'opt', and 'all' test runs so that we get verbose
information if a failure happens.
Georg Brandl [Wed, 6 Jan 2010 18:26:08 +0000 (18:26 +0000)]
#5950: document that zip files with comments are unsupported in zipimport.
Georg Brandl [Wed, 6 Jan 2010 18:02:16 +0000 (18:02 +0000)]
#5991: let completion for the "help" command include help topics.
This also simplifies the Cmd.get_names() method implementation; it was written
at a time where dir() didn't consider base class attributes.
Georg Brandl [Wed, 6 Jan 2010 17:43:06 +0000 (17:43 +0000)]
Small fixes to test_cmd: fix signature of do_shell, remove duplicate import, add option to run the custom Cmd class.
Mark Dickinson [Wed, 6 Jan 2010 16:20:22 +0000 (16:20 +0000)]
Add missing docstring for Context.divmod. Thanks Juan José Conti.
Georg Brandl [Tue, 5 Jan 2010 18:14:52 +0000 (18:14 +0000)]
Add Stefan.
Benjamin Peterson [Tue, 5 Jan 2010 00:04:19 +0000 (00:04 +0000)]
add a test about hashing array.array
Antoine Pitrou [Mon, 4 Jan 2010 23:28:16 +0000 (23:28 +0000)]
Kill a couple of "<>"
Antoine Pitrou [Mon, 4 Jan 2010 23:22:44 +0000 (23:22 +0000)]
Issue #7092: Fix the DeprecationWarnings emitted by the standard library
when using the -3 flag. Patch by Florent Xicluna.
Ezio Melotti [Mon, 4 Jan 2010 21:43:02 +0000 (21:43 +0000)]
#3340: document print/get_usage and print/get_version
Mark Dickinson [Mon, 4 Jan 2010 21:32:02 +0000 (21:32 +0000)]
Fix typo in comment.