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.
14 years ago
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.
14 years ago
Victor Stinner
034d0aa217
Issue #14711 : os.stat_float_times() has been deprecated.
14 years ago
Nadeem Vawda
e860404eb7
Add a function lzma.open(), to match gzip.open() and bz2.open().
14 years ago
Nadeem Vawda
6cbb20cdf6
Allow LZMAFile to accept modes with a "b" suffix.
14 years ago
Nadeem Vawda
33c34da574
Simplify usage of LZMAFile's fileobj support, like with BZ2File.
14 years ago
Nadeem Vawda
af518c198e
Add a function bz2.open(), to match gzip.open().
14 years ago
Nadeem Vawda
50cb936bd0
Clarify acceptable values for BZ2File.__init__'s mode argument.
14 years ago
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.
14 years ago
Nadeem Vawda
68721019ef
Add fileobj support to gzip.open().
14 years ago
Victor Stinner
d7b7c7472b
Issue #14993 : Use standard "unsigned char" instead of a unsigned char bitfield
14 years ago
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.
14 years ago
Richard Oudkerk
bd7b5dd816
Prevent handle leak if CreateProcess() fails in multiprocessing
14 years ago
Richard Oudkerk
86eb7e97ae
Fix potential NameError in multiprocessing.Condition.wait()
14 years ago
Richard Oudkerk
ad06444d6c
Make Finalize reserve a reference to os.getpid in case called at shutdown
14 years ago
Richard Oudkerk
9650d36498
Add namespaceobject.h and namespaceobject.c to pythoncore.vcxproj
14 years ago
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.
14 years ago
Barry Warsaw
efce00c537
Whitespace normalization
14 years ago
Barry Warsaw
028b37c941
PEP 421 requires that .name be lower case.
14 years ago
Barry Warsaw
9b10e1fbb9
A few documentation improvements, spurred on by Brett's review.
14 years ago
Barry Warsaw
90ca5c2aa1
Add NEWS entry.
14 years ago
Barry Warsaw
c58c392da7
Trunk merge.
14 years ago
Hynek Schlawack
bcd304480f
#14814 : Use correct comparison for IP addresses
ipaddress._BaseV4.is_unspecified() compared IP addresses using "in" which
fails.
14 years ago
Raymond Hettinger
7d74effc67
Add usage note.
14 years ago
Raymond Hettinger
0c9050c25d
Separate key creation logic from the sequence class that memoizes its hash value.
14 years ago
Benjamin Peterson
ca75b00069
__GNUC__ does not imply gcc version is present, so just check for version ( closes #14994 )
14 years ago
Gregory P. Smith
8df1397a83
null merge (not removing the new feature in 3.3)
14 years ago
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.
14 years ago
Gregory P. Smith
5f0e5269ec
null merge from 3.2
14 years ago
Gregory P. Smith
61ed804cd7
Move the 14992 note to the correct section.
14 years ago
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.
14 years ago
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.
14 years ago
Barry Warsaw
409da157d7
Eric Snow's implementation of PEP 421.
Issue 14673: Add sys.implementation
14 years ago
R David Murray
82ffabdfa4
#2658 : Add test for issue fixed by fix for #1079 .
14 years ago
Martin v. Löwis
f20940792d
merge 3.2
14 years ago
Martin v. Löwis
9f44a66abc
PEP 3131: support non-ASCII characters in auto-completion of identifiers.
14 years ago
Martin v. Löwis
97aa21b46a
Do not try to insert control characters.
14 years ago
Martin v. Löwis
428d161b57
Drop unused constant.
14 years ago
Martin v. Löwis
156989aa79
Merge 3.2: issue #14937 .
14 years ago
Martin v. Löwis
862d13a30f
Issue #14937 : Perform auto-completion of filenames in strings even for non-ASCII filenames.
14 years ago
Senthil Kumaran
fe4dfd2b65
merge heads
14 years ago
Senthil Kumaran
1251fafcc5
Issue 14989: http.server --cgi option can enable the CGI http server.
14 years ago
Eli Bendersky
2168b31cac
merge
14 years ago
Eli Bendersky
0813168e94
Issue #14090 : fix some minor C API problems in default branch (3.3)
14 years ago
Terry Jan Reedy
a317eef897
Merge with 3.2 #12510
14 years ago
Terry Jan Reedy
e606e238ab
Issue 12510: Expand 2 bare excepts. Improve comments. Change deceptive name
'name' to 'expression' as the latter is what the string actually represents.
The bug in this issue was only catching NameError and AttributeError when
evaluating an expression that was not necessarily a name.
14 years ago
Eli Bendersky
11cfea9295
Issue #14424 : Document PyType_GenericAlloc, and fix the documentation of PyType_GenericNew
14 years ago
Eli Bendersky
c68e1368b5
Fix unterminated keyword array passed to PyArg_ParseTupleAndKeywords
14 years ago
Brett Cannon
2b88fcf693
Issue #14987 : Add a missing import statement
14 years ago
Terry Jan Reedy
361baaddcf
Merge with 3.2 #10365
14 years ago