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
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
Barry Warsaw
9b10e1fbb9
A few documentation improvements, spurred on by Brett's review.
2012-06-04 11:06:45 -04:00
Barry Warsaw
c58c392da7
Trunk merge.
2012-06-04 09:41:48 -04:00
Raymond Hettinger
7d74effc67
Add usage note.
2012-06-04 00:32:15 -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
Senthil Kumaran
fe4dfd2b65
merge heads
2012-06-03 16:16:39 +08:00
Senthil Kumaran
1251fafcc5
Issue 14989: http.server --cgi option can enable the CGI http server.
2012-06-03 16:15:54 +08:00
Eli Bendersky
0813168e94
Issue #14090 : fix some minor C API problems in default branch (3.3)
2012-06-03 08:07:47 +03:00
Eli Bendersky
11cfea9295
Issue #14424 : Document PyType_GenericAlloc, and fix the documentation of PyType_GenericNew
2012-06-03 06:47:53 +03:00
Sandro Tosi
a894cbfa61
merge with 3.2
2012-06-02 18:22:31 +02:00
Sandro Tosi
964f205a34
refer to time.strftime
2012-06-02 18:22:02 +02:00
R David Murray
f4b26ef250
#14957 : fix doc typo.
2012-06-02 11:20:53 -04:00
R David Murray
554b3481fa
#14957 : fix doc typo.
2012-06-02 11:20:29 -04:00
Sandro Tosi
c816290059
Issue #14814 : use print() function
2012-06-02 17:16:33 +02:00
R David Murray
5a0d439126
#14957 : clarify splitlines docs.
...
Initial patch by Michael Driscoll, I added the example.
2012-06-01 16:20:26 -04:00
R David Murray
ae1b94b6e4
#14957 : clarify splitlines docs.
...
Initial patch by Michael Driscoll, I added the example.
2012-06-01 16:19:36 -04:00
Sandro Tosi
c10584a0d9
Issue #14968 : merge with 3.2
2012-06-01 20:23:46 +02:00