Alexander Belopolsky
c142bba2a7
Issue #1667546 : On platforms supporting tm_zone and tm_gmtoff fields
...
in struct tm, time.struct_time objects returned by time.gmtime(),
time.localtime() and time.strptime() functions now have tm_zone and
tm_gmtoff attributes. Original patch by Paul Boddie.
2012-06-13 22:15:26 -04:00
Sandro Tosi
f6a899fe6d
Issue #15060 : merge with 3.2
2012-06-14 00:37:25 +02:00
Sandro Tosi
27b130e702
Issue #15060 : better fix, thanks to review on #python-dev
2012-06-14 00:37:09 +02:00
Sandro Tosi
9994b096d1
Issue #15060 : merge with 3.2
2012-06-13 23:59:21 +02:00
Sandro Tosi
56692f5722
Issue #15060 : fix typo in socket doc; Patch by anatoly techtonik
2012-06-13 23:58:54 +02:00
Victor Stinner
2b89fdf7eb
PEP 418: Rename adjusted attribute to adjustable in time.get_clock_info() result
...
Fix also its value on Windows and Linux according to its documentation:
"adjustable" indicates if the clock *can be* adjusted, not if it is or was
adjusted.
In most cases, it is not possible to indicate if a clock is or was adjusted.
2012-06-12 22:46:37 +02:00
Victor Stinner
bda4b8802c
time.get_clock_info() uses a namespace instead of structseq
2012-06-12 22:11:44 +02:00
Richard Oudkerk
f0604fddc3
Issue #3518 : Remove references to non-existent BaseManager.from_address()
...
method
2012-06-11 17:56:08 +01:00
Nick Coghlan
4fae8cdaea
Close #13857 : Added textwrap.indent() function (initial patch by Ezra
...
Berch)
2012-06-11 23:07:51 +10:00
Raymond Hettinger
3c4acd8bf9
merge
2012-06-11 00:42:17 -07:00
Raymond Hettinger
6fed9fdf22
Fix indentation of method and attribute examples.
2012-06-11 00:38:14 -07:00
Michael Foord
911fd327f1
unittest.mock minor doc update
2012-06-10 20:38:54 +01:00
Michael Foord
f7c4158057
Adding patch.stopall method to unittest.mock
2012-06-10 20:36:32 +01:00
Raymond Hettinger
bfcb42936b
Expand examples for ChainMap(). Improve markup.
2012-06-10 11:39:44 -07:00
Raymond Hettinger
7929cfb18c
Note that the _asdict() method is outdated
2012-06-09 19:15:26 -07:00
Alexander Belopolsky
a4415141da
Issue #2736 : Added datetime.timestamp() method.
2012-06-08 12:33:09 -04: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
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
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
7f671338de
backport c4bd68be5fc6 to 3.2
2012-06-02 23:41:19 +02: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
Sandro Tosi
3f7d1d3303
Issue #14968 : set 'Inplace Operators' as subsection; patch by Lars Buitinck
2012-06-01 20:23:20 +02:00
Eli Bendersky
1bf239446f
fix trailing whitespace
2012-06-01 07:15:00 +03:00
Eli Bendersky
52467b167e
Issue #14007 : make XMLParser a real subclassable type exported from _elementtree. +cleanups
2012-06-01 07:13:08 +03:00
Nick Coghlan
b7a455f326
Typo fix
2012-05-31 22:34:59 +10:00
Nick Coghlan
2722827071
Additional ExitStack examples, and a few other cleanups for the ExitStack docs
2012-05-31 22:17:08 +10:00