Commit graph

75856 commits

Author SHA1 Message Date
Mark Dickinson
c63be46b23 Remove overeager test (don't depend on the sign of a nan; cf. issue #14521) 2012-08-24 20:26:23 +01:00
Mark Dickinson
088cec3ab7 Issue #15544: Fix Decimal.__float__ to work with payload-carrying NaNs. 2012-08-24 20:06:30 +01:00
Vinay Sajip
a6894ba3c9 Reverted change to venv initialisation. 2012-08-24 20:01:02 +01:00
Mark Dickinson
3bb6318ac6 Null merge 2012-08-24 19:51:32 +01:00
Mark Dickinson
448f57762d Remove incorrect lines (meant for cdecimal) from recently added Decimal tests. 2012-08-24 19:51:00 +01:00
Mark Dickinson
451097737b Null merge from 3.2. 2012-08-24 19:40:25 +01:00
Mark Dickinson
e4204bcfb7 Issue #15544: Fix Decimal.__float__ to work with payload-carrying NaNs. 2012-08-24 19:32:13 +01:00
Stefan Krah
029780be09 Issue #13072: The array module's 'u' format code is now deprecated and
will be removed in Python 4.0.
2012-08-24 20:14:12 +02:00
Antoine Pitrou
8d649ef951 Merge 2012-08-24 19:51:09 +02:00
Mark Dickinson
fc33d4ce0a Issue #15544: Fix Decimal.__float__ to work with payload-carrying NaNs. 2012-08-24 18:53:10 +01:00
Antoine Pitrou
0ac0b11ec1 Add glossary references 2012-08-24 19:50:43 +02:00
Antoine Pitrou
85ede8da00 Add glossary references 2012-08-24 19:49:08 +02:00
Antoine Pitrou
15251a99bb Add glossary references 2012-08-24 19:49:08 +02:00
Antoine Pitrou
cb0ec7dc42 Merge 2012-08-24 19:47:02 +02:00
Brett Cannon
ba0a3edd26 Issue #2051: Tweak last commit for this issue to pass in mode instead
of source path to set_data() and make the new argument private until
possible API changes can be discussed more thoroughly in Python 3.4.
2012-08-24 13:48:39 -04:00
Antoine Pitrou
f3e0a69d88 Issue #14674: Add a discussion of the json module's standard compliance.
Patch by Chris Rebert.
2012-08-24 19:46:17 +02:00
Antoine Pitrou
cbf9d5f6cd Issue #14674: Add a discussion of the json module's standard compliance.
Patch by Chris Rebert.
2012-08-24 19:39:47 +02:00
Antoine Pitrou
331624b67d Issue #14674: Add a discussion of the json module's standard compliance.
Patch by Chris Rebert.
2012-08-24 19:37:23 +02:00
Brett Cannon
07c6e71689 Issue #15778: Coerce ImportError.args to a string when it isn't
already one.

Patch by Dave Malcolm.
2012-08-24 13:05:09 -04:00
Georg Brandl
e991236b4d Closes #9374: add back now-unused module attributes; removing them is a backward compatibility issue, since they have a public-seeming name. 2012-08-24 18:17:28 +02:00
Georg Brandl
491b1dc79e Closes #9374: merge with 3.2 2012-08-24 18:15:46 +02:00
Georg Brandl
a61b09f406 Closes #9374: add back now-unused module attributes; removing them is a backward compatibility issue, since they have a public-seeming name. 2012-08-24 18:15:29 +02:00
Andrew Svetlov
82649f3b87 Issue #15776: Allow pyvenv to work in existing directory with --clean.
Patch by Vinay Sajip.
2012-08-24 19:00:15 +03:00
R David Murray
ad2a7d528a Merge #15249: Mangle From lines correctly when body contains invalid bytes.
Fix by Colin Su.  Test by me, based on a test written by Petri Lehtinen.
2012-08-24 11:23:50 -04:00
R David Murray
638d40b433 #15249: Mangle From lines correctly when body contains invalid bytes.
Fix by Colin Su.  Test by me, based on a test written by Petri Lehtinen.
2012-08-24 11:14:13 -04:00
Martin v. Löwis
4784e0267e Output lib files for PGO build into PGO directory. 2012-08-24 16:12:28 +02:00
Martin v. Löwis
5951ec0fdd Pick up 32-bit launcher from PGO directory on 64-bit PGO build. 2012-08-24 16:06:10 +02:00
Martin v. Löwis
bddf7244f0 Drop PC\python_nt.h as it's not used.
Add input dependency on custom build step.
2012-08-24 15:47:53 +02:00
Martin v. Löwis
b4b92becf1 Issue #15511: Drop explicit dependency on pythonxy.lib from amd64 configuration. 2012-08-24 15:21:24 +02:00
Martin v. Löwis
3234cc808c Add missing PGI/PGO configurations for pywlauncher. 2012-08-24 15:06:50 +02:00
Ross Lagerwall
a4b070102a Merge with 3.2 2012-08-24 13:32:14 +02:00
Ross Lagerwall
f2b34b8b96 Issue 15777: Fix a refleak in _posixsubprocess.
It was exposed by 03c98d05b140 and dbbf3ccf72e8.
2012-08-24 13:25:59 +02:00
Nick Coghlan
ffffa8e8b2 Close #2051: Oops, transposed the digits in the issue number in the previous commit 2012-08-24 18:36:31 +10:00
Nick Coghlan
a508770e20 Close #2501: Permission bits are once again correctly copied from the source file to the cached bytecode file. Test by Eric Snow. 2012-08-24 18:32:40 +10:00
Ned Deily
36d188c7f7 Issue #15037: Use correct path to system terminfo database. 2012-08-24 00:44:01 -07:00
Stefan Krah
66e63170d9 Issue #15770: Check invalid arguments in test function. Patch by Victor Stinner. 2012-08-23 15:53:45 +02:00
Stefan Krah
f21587e3a8 mpd_qpowmod(): calculate result with zero-exponent for compatibility with
decimal.py. The hack to remove the ideal exponent is no longer required.
2012-08-23 15:05:29 +02:00
Ned Deily
bbd3437c27 Issue #14292: Ensure that the OS X installer build configures the CXX
environment variable to a value comparable to what it sets for CC for
the benefit of C++ extension modules.
(Patch by Ronald Oussoren)
2012-08-22 23:34:50 -07:00
Ned Deily
6fc81d7eec Issue #15645: Ensure 2to3 grammar pickles are properly installed.
(Patch by Ronald Oussoren)
2012-08-22 23:34:13 -07:00
Ned Deily
12d1f67be4 issue #15645: null merge 2012-08-22 23:32:29 -07:00
Ned Deily
01d183732e Issue #15645: Ensure 2to3 grammar pickles are properly installed.
(Patch by Ronald Oussoren)
2012-08-22 23:27:26 -07:00
Ned Deily
8622f09d98 Issue #15645: Ensure 2to3 grammar pickles are properly installed.
(Patch by Ronald Oussoren)
2012-08-22 23:26:06 -07:00
Alexander Belopolsky
35d600cbb5 Suggested a whatsnew item 2012-08-22 23:14:29 -04:00
Alexander Belopolsky
f9bd9141c5 Issue #665194: Added a small optimization 2012-08-22 23:02:36 -04:00
Alexander Belopolsky
1f924d21d3 Added test for a bug fixed in issue #665194. 2012-08-22 22:06:37 -04:00
R David Murray
097a1208bc #665194: fix variable name in exception code path.
It was correct in the original patch and I foobared it
when I restructured part of the code.
2012-08-22 21:52:31 -04:00
R David Murray
b8687df653 #665194: Update email.utils.localtime to use astimezone, and fix bug.
The new code correctly handles historic changes in UTC offsets.
A test for this should follow.

Original patch by Alexander Belopolsky.
2012-08-22 21:34:00 -04:00
Stefan Krah
17183a2972 Use zero bottom margin. 2012-08-22 19:28:12 +02:00
Stefan Krah
ad5b43995e In the 32-bit build, dec_hash() raised InvalidOperation if the operand
had a coefficient with MAX_PREC=425000000 digits and a negative exponent.
Increasing the context limits above the official values fixes the issue
and is safe (in this case!).
2012-08-22 19:11:50 +02:00
Stefan Krah
2fd502f6a1 1) Use _mpd_basedivmod() regardless of the length of the dividend. This is
required for a corner case in dec_hash() in the following commit and also
   usually faster. dec_hash() needs some extra precision above MPD_MAX_PREC,
   and _mpd_base_ndivmod() is not audited for that.

2) Use _mpd_basemul() if the length of the smaller operand is less than
   or equal to 256. While this is technically an optimization, it is
   required for *testing* corner cases in dec_hash() in reasonable time.
2012-08-22 18:54:37 +02:00