Victor Stinner
93037498d1
Fix time.mktime() and datetime.datetime.timestamp() on AIX
...
On AIX, the C function mktime() alwaysd sets tm_wday, even on error. So tm_wday
cannot be used as a sentinel to detect an error, we can only check if the
result is (time_t)-1.
2013-06-25 22:54:35 +02:00
Victor Stinner
5ac1b936ef
test_gdb.py: ignore also "warning: Source file is more recent than executable." pattern
2013-06-25 21:54:32 +02:00
Victor Stinner
ef8115e5eb
Issue #17206 : Fix test_cmd_line and test_faulthandler for my previous change
...
(test.regrtest and test.script_helper enable faulthandler module in
subprocesses).
2013-06-25 21:54:17 +02:00
Victor Stinner
383a820e0d
Issue #17206 : test.regrtest and test.script_helper enable faulthandler module
...
in subprocesses.
2013-06-25 21:24:36 +02:00
R David Murray
4af6898dbd
#11390 : fix test failures due to readline and windows lineneds.
2013-06-25 08:11:22 -04:00
Raymond Hettinger
4d6018fe45
Issue 18111: Add a default argument to min() and max()
2013-06-24 22:43:02 -07:00
Victor Stinner
d7a034bd75
(Merge 3.3) Fix time.strftime("%Y") on AIX: raise a ValueError for year > 9999
...
time.strtime("%Y") returned "2345" when formatting year 12345.
2013-06-25 02:34:13 +02:00
Victor Stinner
36b82d85a3
Fix time.strftime("%Y") on AIX: raise a ValueError for year > 9999
...
time.strtime("%Y") returned "2345" when formatting year 12345.
2013-06-25 02:33:53 +02:00
Victor Stinner
7e00151e1f
_ssl.c: strip trailing spaces
2013-06-25 00:44:31 +02:00
Victor Stinner
86073dc3c2
(Merge 3.3) Issue #18135 : ssl.SSLSocket.write() now raises an OverflowError if
...
the input string in longer than 2 gigabytes, and
ssl.SSLContext.load_cert_chain() raises a ValueError if the password is longer
than 2 gigabytes. The ssl module does not support partial write.
2013-06-25 00:43:47 +02:00
Victor Stinner
6efa965a27
Issue #18135 : ssl.SSLSocket.write() now raises an OverflowError if the input
...
string in longer than 2 gigabytes, and ssl.SSLContext.load_cert_chain() raises
a ValueError if the password is longer than 2 gigabytes. The ssl module does
not support partial write.
2013-06-25 00:42:31 +02:00
Victor Stinner
14b9b11098
If MS_WIN64 is defined, MS_WINDOWS is also defined: #ifdef can be simplified.
2013-06-25 00:37:25 +02:00
Victor Stinner
b28a375f2f
Issue #18081 : Workaround "./python -m test_idle test_logging" failure
...
"import idlelib" should not install hooks on the warning modules, hooks should
only be installed when IDLE is started.
2013-06-25 00:17:37 +02:00
Victor Stinner
7660b880a5
Issue #9566 : More long/Py_ssize_t fixes in tuple and list iterators (it_index)
2013-06-24 23:59:24 +02:00
Victor Stinner
9a644b23cc
Issue #9566 : recv(), recvfrom(), send(), sendall() and sendto() methods
...
of socket.socket objects now truncate the input buffer to INT_MAX bytes on
Windows to avoid an integer overflow.
(sendall() still send the whole buffer.)
2013-06-24 23:47:41 +02:00
Victor Stinner
7b2513589f
Issue #9566 : pystrtod.c: Fix a compiler warnings on Windows x64
2013-06-24 23:37:40 +02:00
Victor Stinner
76d38502e4
Issue #9566 : Fix a compiler warning on Windows x64
2013-06-24 23:34:15 +02:00
Victor Stinner
2199c38729
Issue #9566 : Fix a compiler warning in tupleiter_setstate() on Windows x64
2013-06-24 23:31:48 +02:00
Ned Deily
2c72b51c44
Issue #18164 : merge from 3.3
2013-06-24 14:23:35 -07:00
Ned Deily
51cee7d24a
Issue #18164 : Clarify the embedding docs regarding link options.
2013-06-24 14:22:09 -07:00
Victor Stinner
71765770a4
Issue #9566 : _winapi.WriteFile() now truncates length to DWORD_MAX (4294967295)
2013-06-24 23:13:24 +02:00
Victor Stinner
bc8ccce729
Issue #9566 : zlib: Explicit cast to unsigned int to fix a compiler warning on Windows x64
2013-06-24 23:02:51 +02:00
Victor Stinner
9a282975ef
Issue #9566 : _io: Use Py_SAFE_DOWNCAST for fix a compiler warning on Windows x64
2013-06-24 23:01:33 +02:00
Richard Oudkerk
9d89ae64b9
Merge.
2013-06-24 20:39:28 +01:00
Richard Oudkerk
2b310dd8b9
Fix typo.
2013-06-24 20:38:46 +01:00
Richard Oudkerk
93b736ee15
Merge.
2013-06-24 18:13:54 +01:00
Richard Oudkerk
7b69da72b8
Clarify note and fix typo.
2013-06-24 18:12:57 +01:00
Richard Oudkerk
71e7dbd11d
Issue #15818 : Merge.
2013-06-24 15:43:35 +01:00
Richard Oudkerk
64c25b4282
Issue #15818 : Typo in docs.
2013-06-24 15:42:00 +01:00
Richard Oudkerk
35d05537fc
Issue #18277 : Merge.
2013-06-24 14:52:14 +01:00
Richard Oudkerk
95fe1a793f
Issue #18277 : Document quirks of multiprocessing queue.
2013-06-24 14:48:07 +01:00
Christian Heimes
b3cc7eb74a
Fix test for GCC 3.1+ but not strict ANSI C
2013-06-24 15:39:58 +02:00
Christian Heimes
e0a2d12ee5
Fix test for GCC 3.1+ but not strict ANSI C
2013-06-24 15:39:41 +02:00
Raymond Hettinger
b4f39eea49
merge
2013-06-23 15:47:03 -07:00
Raymond Hettinger
20b0f87e1d
Misc improvements to collections.deque()
...
* Clarified comment on the impact of BLOCKLEN on deque_index
(with a power-of-two, the division and modulo
computations are done with a right-shift and bitwise-and).
* Clarified comment on the overflow check to note that
it is general and not just applicable the 64-bit builds.
* In deque._rotate(), the "deque->" indirections are
factored-out of the loop (loop invariant code motion),
leaving the code cleaner looking and slightly faster.
* In deque._rotate(), replaced the memcpy() with an
equivalent loop. That saved the memcpy setup time
and allowed the pointers to move in their natural
leftward and rightward directions.
See comparative timings at: http://pastebin.com/p0RJnT5N
2013-06-23 15:44:33 -07:00
Christian Heimes
5b2f18411b
Issue #11016 : Don't define macros and constants that are already set by pyport.h
2013-06-24 00:13:14 +02:00
Christian Heimes
99d6135a15
Define S_IFMT and S_IFLNK in pyport.h so posixmodule.c can use named constants instead
...
of arbitrary looking numbers.
2013-06-23 23:56:05 +02:00
Christian Heimes
9975877f46
Check for correct macro, code uses S_ISDIR().
2013-06-23 23:52:40 +02:00
Christian Heimes
91e8b8180d
Check for correct macro, code uses S_ISDIR().
2013-06-23 23:51:44 +02:00
Victor Stinner
1ce46d99db
Issue #11016 : Detect integer conversion on conversion from Python int to C mode_t
2013-06-23 22:57:43 +02:00
Christian Heimes
42471ad7dd
merge
2013-06-23 22:57:22 +02:00
Christian Heimes
858c947155
Fix a typo in S_ISDIR, S_ISCHR, S_ISBLK and S_ISREG.
...
Add extra braces to S_IS*() macros
2013-06-23 22:57:02 +02:00
R David Murray
9dac840e3c
Merge #18179 : reflow paragraphs.
2013-06-23 16:06:13 -04:00
R David Murray
021362dbd4
#18179 : reflow paragraphs.
2013-06-23 16:05:44 -04:00
R David Murray
ec94eac4c9
Merge #18179 : document the local_hostname parameter.
...
Original patch by Berker Peksag.
2013-06-23 15:52:08 -04:00
R David Murray
36beb66be9
#18179 : document the local_hostname parameter.
...
Original patch by Berker Peksag.
2013-06-23 15:47:50 -04:00
R David Murray
5707d508e1
#11390 : convert doctest CLI to argparse and add -o and -f options.
...
This provides a way to specify arbitrary doctest options when using
the CLI interface to process test files, just as one can when calling
testmod or testfile programmatically.
2013-06-23 14:24:13 -04:00
Serhiy Storchaka
c00fffb659
Merge heads
2013-06-23 20:27:40 +03:00
Serhiy Storchaka
07d22e5e4b
Merge heads
2013-06-23 20:25:57 +03:00
Serhiy Storchaka
e19ee8595d
Merge heads
2013-06-23 20:25:40 +03:00