Stefan Krah
7bda265662
1) The overflow detection in mpd_qln() has a surprising number of case splits.
...
List all of them in the comment.
2) Use the recently stated relative error of _mpd_qln() to generate the
interval for the exact value of ln(x). See also the comment in mpd_qexp().
2012-06-07 17:48:47 +02:00
Nick Coghlan
cbc203e655
Merge from 3.2
2012-06-07 22:42:29 +10:00
Nick Coghlan
a3a164a03c
Nudge readers towards a more accurate mental model for loop else clauses
2012-06-07 22:41:34 +10:00
Kristján Valur Jónsson
55e5dc8371
Rearrange code to beat an optimizer bug affecting Release x64 on windows
...
with VS2010sp1
2012-06-06 21:58:08 +00:00
Richard Oudkerk
29471de459
Issue #13854 : Properly handle non-integer, non-string arg to SystemExit
...
Previously multiprocessing only expected int or str. It also wrongly
used an exit code of 1 when the argument was a string instead of zero.
2012-06-06 19:04:57 +01:00
Richard Oudkerk
e41682b994
Issue #12157 : pool.map() does not handle empty iterable correctly
...
Initial patch by mouad
2012-06-06 19:04:57 +01:00
Stefan Krah
a3394bce33
1) Add error analysis comments to mpd_qln10() and _mpd_qln().
...
2) Simplify the precision adjustment code for values in [0.900, 1.15].
2012-06-06 15:57:18 +02:00
Victor Stinner
a01f1adb87
Close #6203 : Document that Python 3 sets LC_CTYPE at startup to the user's preferred locale encoding
2012-06-06 01:37:37 +02:00
Kristján Valur Jónsson
187aa54516
Signal condition variables with the mutex held. Destroy condition variables
...
before their mutexes.
2012-06-05 22:17:42 +00:00
Gregory P. Smith
902274e948
Fixes issue #15000 : support the odd x32 abi on posixsubprocess's system call.
2012-06-05 13:30:24 -07:00
Gregory P. Smith
58f07a9d6d
Fixes issue #15000 : support the odd x32 abi on posixsubprocess's system call.
2012-06-05 13:26:39 -07:00
Richard Oudkerk
9844993cde
Add test for multiprocessing.Conditon.wait() and changset 3baeb5e13dd2
2012-06-05 13:15:29 +01:00
Victor Stinner
f86a5e8a93
Close #11022 : TextIOWrapper doesn't call locale.setlocale() anymore
...
open() and io.TextIOWrapper are now calling locale.getpreferredencoding(False)
instead of locale.getpreferredencoding() in text mode if the encoding is not
specified. Don't change temporary the locale encoding using locale.setlocale(),
use the current locale encoding instead of the user preferred encoding.
Explain also in open() documentation that locale.getpreferredencoding(False) is
called if the encoding is not specified.
2012-06-05 13:43:22 +02:00
Hynek Schlawack
91c5a34613
#14814 : ipaddress: refactor dup code, minor janitoring, bump coverage
...
- remove duplicate netmask/hostmask code
- make two ifs more pythonic
- remove packed property for networks
- some minor pep8 stuff
- Test coverage is now at 97%, the rest are mostly unreachable safeguards.
2012-06-05 11:55:58 +02:00
Victor Stinner
034d0aa217
Issue #14711 : os.stat_float_times() has been deprecated.
2012-06-05 01:22:15 +02:00
Nadeem Vawda
e860404eb7
Add a function lzma.open(), to match gzip.open() and bz2.open().
2012-06-04 23:38:12 +02:00
Nadeem Vawda
6cbb20cdf6
Allow LZMAFile to accept modes with a "b" suffix.
2012-06-04 23:36:24 +02:00
Nadeem Vawda
33c34da574
Simplify usage of LZMAFile's fileobj support, like with BZ2File.
2012-06-04 23:34:07 +02:00
Nadeem Vawda
af518c198e
Add a function bz2.open(), to match gzip.open().
2012-06-04 23:32:38 +02:00
Nadeem Vawda
50cb936bd0
Clarify acceptable values for BZ2File.__init__'s mode argument.
2012-06-04 23:31:22 +02:00
Nadeem Vawda
aebcdba829
Make BZ2File's fileobj support easier to use.
...
The fileobj argument was added during the 3.3 development cycle, so this change
does not break backward compatibility with 3.2.
2012-06-04 23:31:20 +02:00
Nadeem Vawda
68721019ef
Add fileobj support to gzip.open().
2012-06-04 23:21:38 +02:00
Victor Stinner
d7b7c7472b
Issue #14993 : Use standard "unsigned char" instead of a unsigned char bitfield
2012-06-04 22:52:12 +02:00
R David Murray
05cab75d59
#8739 : fix omission of DEBUGSTREAM reset in new test in test_smtpd.
...
This clears up an error in detected by refleak mode that showed up when
test_smtplib was run after test_smtpd in the same refleak run.
2012-06-04 15:55:51 -04:00
Richard Oudkerk
bd7b5dd816
Prevent handle leak if CreateProcess() fails in multiprocessing
2012-06-04 18:59:10 +01:00
Richard Oudkerk
86eb7e97ae
Fix potential NameError in multiprocessing.Condition.wait()
2012-06-04 18:59:07 +01:00
Richard Oudkerk
ad06444d6c
Make Finalize reserve a reference to os.getpid in case called at shutdown
2012-06-04 18:58:59 +01:00
Richard Oudkerk
9650d36498
Add namespaceobject.h and namespaceobject.c to pythoncore.vcxproj
2012-06-04 18:24:44 +01:00
Hynek Schlawack
454a74df23
#14814 : Remove dead code from ipaddress
...
_BaseNetwork contained (faulty) methods for creating string representations.
I've fixed them and put them to use by eliminating identical overrides.
2012-06-04 18:14:02 +02:00
Barry Warsaw
efce00c537
Whitespace normalization
2012-06-04 12:02:42 -04:00
Barry Warsaw
028b37c941
PEP 421 requires that .name be lower case.
2012-06-04 12:01:56 -04:00
Barry Warsaw
9b10e1fbb9
A few documentation improvements, spurred on by Brett's review.
2012-06-04 11:06:45 -04:00
Barry Warsaw
90ca5c2aa1
Add NEWS entry.
2012-06-04 09:51:53 -04:00
Barry Warsaw
c58c392da7
Trunk merge.
2012-06-04 09:41:48 -04:00
Hynek Schlawack
bcd304480f
#14814 : Use correct comparison for IP addresses
...
ipaddress._BaseV4.is_unspecified() compared IP addresses using "in" which
fails.
2012-06-04 14:19:39 +02:00
Raymond Hettinger
7d74effc67
Add usage note.
2012-06-04 00:32:15 -07:00
Raymond Hettinger
0c9050c25d
Separate key creation logic from the sequence class that memoizes its hash value.
2012-06-04 00:21:14 -07:00
Benjamin Peterson
ca75b00069
__GNUC__ does not imply gcc version is present, so just check for version ( closes #14994 )
2012-06-03 18:15:15 -07:00
Gregory P. Smith
8df1397a83
null merge (not removing the new feature in 3.3)
2012-06-03 14:40:32 -07:00
Gregory P. Smith
2d7d56abf8
Revert the modification of e.strerror in 3.2 as that kind of change could
...
break someone's over specified test that depends on the exact error message.
2012-06-03 14:39:26 -07:00
Gregory P. Smith
5f0e5269ec
null merge from 3.2
2012-06-03 14:36:38 -07:00
Gregory P. Smith
61ed804cd7
Move the 14992 note to the correct section.
2012-06-03 14:36:01 -07:00
Gregory P. Smith
f0a9a9b502
Fixes Issue #14992 : os.makedirs(path, exist_ok=True) would raise an OSError
...
when the path existed and had the S_ISGID mode bit set when it was
not explicitly asked for. This is no longer an exception as mkdir
cannot control if the OS sets that bit for it or not.
2012-06-03 14:35:09 -07:00
Gregory P. Smith
a81c856436
Fixes Issue #14992 : os.makedirs(path, exist_ok=True) would raise an OSError
...
when the path existed and had the S_ISGID mode bit set when it was not
explicitly asked for. This is no longer an exception as mkdir cannot control
if the OS sets that bit for it or not.
2012-06-03 14:30:44 -07:00
Barry Warsaw
409da157d7
Eric Snow's implementation of PEP 421.
...
Issue 14673: Add sys.implementation
2012-06-03 16:18:47 -04:00
R David Murray
82ffabdfa4
#2658 : Add test for issue fixed by fix for #1079 .
2012-06-03 12:27:07 -04:00
Martin v. Löwis
f20940792d
merge 3.2
2012-06-03 12:33:23 +02:00
Martin v. Löwis
9f44a66abc
PEP 3131: support non-ASCII characters in auto-completion of identifiers.
2012-06-03 12:32:42 +02:00
Martin v. Löwis
97aa21b46a
Do not try to insert control characters.
2012-06-03 12:26:09 +02:00
Martin v. Löwis
428d161b57
Drop unused constant.
2012-06-03 12:03:29 +02:00