Commit Graph

43709 Commits

Author SHA1 Message Date
Vinay Sajip 334ffe8cc8 Fixed issue-number mistake in NEWS update. 2010-01-15 23:27:05 +00:00
Benjamin Peterson 667dc19130 try to fix for windows 2010-01-15 02:26:07 +00:00
Brett Cannon 0bc77474aa Remove C++/C99-style comments. 2010-01-15 01:31:45 +00:00
Antoine Pitrou c391ad007b Issue #7701: Fix crash in binascii.b2a_uu() in debug mode when given a
1-byte argument.  Patch by Victor Stinner.
2010-01-15 00:18:00 +00:00
Brett Cannon 3ffa43db48 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.
2010-01-14 20:00:28 +00:00
Antoine Pitrou efdddd3370 Issue #3299: Fix possible crash in the _sre module when given bad
argument values in debug mode.  Patch by Victor Stinner.
2010-01-14 17:25:24 +00:00
Antoine Pitrou fd3a60d5ef 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.
2010-01-14 16:27:09 +00:00
Mark Dickinson 647ed91d5c Issue #7632: add tests for bugs fixed so far. 2010-01-14 15:22:33 +00:00
Mark Dickinson f8747c1f12 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.) 2010-01-14 14:40:20 +00:00
Mark Dickinson 50b60c612e Issue 7632: fix a dtoa.c bug (bug 6) causing incorrect rounding. Tests to follow. 2010-01-14 13:14:49 +00:00
Mark Dickinson 03774fac62 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. 2010-01-14 13:02:36 +00:00
Ezio Melotti d234208588 Fixed typo 2010-01-14 11:34:10 +00:00
Benjamin Peterson 7a1b435297 use more robust quoting 2010-01-14 02:40:10 +00:00
Skip Montanaro 852a27db96 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.
2010-01-14 01:12:34 +00:00
Mark Dickinson d2a9940acb More dtoa.c cleanup; remove the need for bc.dplen, bc.dp0 and bc.dp1. 2010-01-13 22:20:10 +00:00
Mark Dickinson 02139d74ba Fix buggy comparison: LHS of comparison was being treated as unsigned. 2010-01-13 22:15:53 +00:00
Mark Dickinson 6e0d3d67fb Simplify and annotate the bigcomp function, removing unused special cases. 2010-01-13 20:55:03 +00:00
Mark Dickinson 5818e01253 Clarify that sulp expects a nonnegative input, but that +0.0 is fine. 2010-01-13 19:02:37 +00:00
Mark Dickinson b26d56ac18 Add comments explaining the role of the bigcomp function in dtoa.c. 2010-01-13 18:21:53 +00:00
Antoine Pitrou 5f76d132a5 Issue #7625: Add more tests that bytearray methods return new objects,
even if identical.  Patch by Florent Xicluna (again).
2010-01-13 15:02:13 +00:00
Antoine Pitrou f58021f7c3 Add ACKS entry for r77472. 2010-01-13 14:32:51 +00:00
Antoine Pitrou 5a9112c0cc Issue #2846: Add support for gzip.GzipFile reading zero-padded files.
Patch by Brian Curtin.
2010-01-13 14:32:10 +00:00
Antoine Pitrou 10042922d9 Sanitize bloom filter macros 2010-01-13 14:01:26 +00:00
Antoine Pitrou a913a20c91 Test commit to try to diagnose failures of the IA-64 buildbot 2010-01-13 13:43:37 +00:00
Antoine Pitrou 1379b8404a Use `with` 2010-01-13 11:57:42 +00:00
Antoine Pitrou 8c510e704e Issue #7661: Allow ctypes to be built from a non-ASCII directory path.
Patch by Florent Xicluna.
2010-01-13 11:47:49 +00:00
Antoine Pitrou 5c767c2f87 Fix Windows build (re r77461) 2010-01-13 08:55:20 +00:00
Antoine Pitrou 6467213bfd 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.
2010-01-13 07:55:48 +00:00
Ezio Melotti d0ff51c43f #7685: typo 2010-01-13 00:25:03 +00:00
Mark Dickinson 5ff4f279e6 Issue #7632: Fix a bug in dtoa.c that could lead to incorrectly-rounded results. 2010-01-12 22:55:51 +00:00
Mark Dickinson 8efef5ce9f 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.
2010-01-12 22:23:56 +00:00
Antoine Pitrou efa45f35b5 Issue #7654: enable additional bytes/bytearray tests. Patch by Florent Xicluna. 2010-01-12 22:02:10 +00:00
Alexandre Vassalotti b227f47b2b Added documentation for dictionary views fixer. 2010-01-12 18:25:33 +00:00
Ezio Melotti b5689de044 #5827: make sure that normpath preserves unicode 2010-01-12 03:32:05 +00:00
Alexandre Vassalotti 58a96efde5 Fixed repr of dictionary views. 2010-01-12 01:34:43 +00:00
Tarek Ziadé ae7731af45 module cleanup 2010-01-11 23:41:32 +00:00
Alexandre Vassalotti 69eb51697c Issue #1967: Backport dictionary views. 2010-01-11 23:17:10 +00:00
Alexandre Vassalotti 7a8df80285 Add missing NEWS entry for r77422. 2010-01-11 23:13:49 +00:00
Tarek Ziadé dc0f487c3b Fixed #5372: .o files are now always rebuilt because file age test don't work in some case 2010-01-11 22:50:29 +00:00
Alexandre Vassalotti 102d70e06c Update version information for AST changes in r77422. 2010-01-11 22:46:43 +00:00
Alexandre Vassalotti b646547bb4 Issue #2333: Backport set and dict comprehensions syntax. 2010-01-11 22:36:12 +00:00
Mark Dickinson 0ca7452794 Change a variable type to avoid signed overflow; replace repeated '19999' constant by a define. 2010-01-11 17:15:13 +00:00
Benjamin Peterson e822ab0166 fix test_popen when the path to python has spaces #7671 2010-01-10 20:42:03 +00:00
R. David Murray 0e207dff31 Issue #7119: document that a program-generated Message object
tree may be mutated when serialized.
2010-01-10 17:41:28 +00:00
Senthil Kumaran 2e3da14d8b Fixed issue7648 - test_urllib2 fails on Windows if not run from C: 2010-01-10 17:35:05 +00:00
Mark Dickinson 5a0b399aa9 Remove unused BCinfo fields and an unused macro. 2010-01-10 13:06:31 +00:00
Martin v. Löwis 9d87323445 Update root certificate to CAcert. 2010-01-10 10:29:54 +00:00
Brett Cannon 6fdd3dcb6a 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.
2010-01-10 02:56:19 +00:00
Brett Cannon 3ad57e2625 Update the version # of Python-ast.c based on the backport of set literals from
r77400.
2010-01-10 02:48:50 +00:00
Alexandre Vassalotti ee936a2130 Issue #2335: Backport set literals syntax from Python 3.x. 2010-01-09 23:35:54 +00:00