Mark Dickinson
294d6acb89
Additional testcases for strtod.
2010-01-21 17:02:53 +00:00
Mark Dickinson
4141d65fb7
Various dtoa.c cleanups. 1. Despagghetify _Py_dg_strtod parsing code
...
and exit points. 2. Simplify bigcomp comparison loop. 3. Don't set
ERANGE on _Py_dg_strtod underflow (it was set inconsistently anyway).
4. Remove unused dsign field from BCinfo struct.
2010-01-20 17:36:31 +00:00
Gregory P. Smith
8926108bfb
Revert debugprint code in r77607.
2010-01-19 08:25:26 +00:00
Gregory P. Smith
8f6f42621a
Add a pydebug mode only debug print to help debug the errors in
...
http://www.python.org/dev/buildbot/all/builders/x86%20gentoo%20trunk/builds/5700/
Will be removed shortly.
2010-01-19 08:01:00 +00:00
Benjamin Peterson
9179dab3f4
data descriptors do not override the class dictionary if __get__ is not defined
...
Adjust documentation and add a test to verify this behavior.
See http://mail.python.org/pipermail/python-dev/2010-January/095637.html for
discussion.
2010-01-18 23:07:56 +00:00
Ezio Melotti
b01f5e6f84
#7730 : remove spaces after functions names
2010-01-18 09:10:26 +00:00
Antoine Pitrou
e80a6a4ead
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.
2010-01-17 12:26:20 +00:00
Mark Dickinson
ab6ee7a042
Increase number of strtod tests slightly, to make it more likely that a memory leak is detected.
2010-01-17 11:10:03 +00:00
Mark Dickinson
d87f22cec8
Add better error reporting for MemoryErrors caused by str->float conversions.
2010-01-16 20:33:02 +00:00
Mark Dickinson
811ff822f8
Issue #7632 : Fix one more case of incorrect rounding for str -> float
...
conversion (see bug 5 in the issue tracker).
2010-01-16 17:57:49 +00:00
Antoine Pitrou
db983a7c38
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.
2010-01-16 17:45:56 +00:00
R. David Murray
c755dba906
Fix issue number in comment.
2010-01-16 16:08:32 +00:00
Mark Dickinson
476279f18b
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.
2010-01-16 10:44:00 +00:00
R. David Murray
ed44dfa4c7
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.
2010-01-16 05:15:17 +00:00
Benjamin Peterson
667dc19130
try to fix for windows
2010-01-15 02:26:07 +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
Benjamin Peterson
7a1b435297
use more robust quoting
2010-01-14 02:40:10 +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
5a9112c0cc
Issue #2846 : Add support for gzip.GzipFile reading zero-padded files.
...
Patch by Brian Curtin.
2010-01-13 14:32:10 +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
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
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
b646547bb4
Issue #2333 : Backport set and dict comprehensions syntax.
2010-01-11 22:36:12 +00:00
Benjamin Peterson
e822ab0166
fix test_popen when the path to python has spaces #7671
2010-01-10 20:42:03 +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
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
Alexandre Vassalotti
ee936a2130
Issue #2335 : Backport set literals syntax from Python 3.x.
2010-01-09 23:35:54 +00:00
Mark Dickinson
e365613528
Issue #7532 : Add additional slicing test cases for new- and old-style
...
classes. Patch by Florent Xicluna.
2010-01-09 18:50:50 +00:00
Benjamin Peterson
aa7e51f006
bump version to 2.7a2
2010-01-09 16:34:06 +00:00
Tarek Ziadé
c25417f644
Fixed #7617 : all flavors of gcc should be recognized now
2010-01-08 23:42:23 +00:00
Antoine Pitrou
5b77d6dfa3
Remove obsolete warning filters in regrtest.py (from issue #7092 -- patch by
...
Florent Xicluna).
2010-01-08 19:39:04 +00:00
Senthil Kumaran
7a2ee0b460
Fix for Issue7026. For the Error - RuntimeError: dictionary changed size during iteration
2010-01-08 19:20:25 +00:00
Antoine Pitrou
8015725d4f
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.
2010-01-08 19:20:17 +00:00
Senthil Kumaran
ce8e33a095
Reverting the Revision: 77368. I committed Flox's big patch for tests by
...
mistake. ( It may come in for sure tough)
2010-01-08 19:04:16 +00:00
Senthil Kumaran
3ddc435af6
Fixing - Issue7026 - RuntimeError: dictionary changed size during iteration. Patch by flox
2010-01-08 18:41:40 +00:00
Mark Dickinson
3194d1454c
Backport some float repr tests that were missed in issue 7117.
2010-01-08 16:53:56 +00:00
Antoine Pitrou
0d423b870b
Issue #7455 : Fix possible crash in cPickle on invalid input. Patch by
...
Florent Xicluna.
2010-01-07 17:46:49 +00:00
Georg Brandl
8904053003
#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.
2010-01-06 18:02:16 +00:00
Georg Brandl
5089a38af2
Small fixes to test_cmd: fix signature of do_shell, remove duplicate import, add option to run the custom Cmd class.
2010-01-06 17:43:06 +00:00
Mark Dickinson
202eb9094c
Add missing docstring for Context.divmod. Thanks Juan José Conti.
2010-01-06 16:20:22 +00:00