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
Serhiy Storchaka
c89533f72f
Issue #18184 : PyUnicode_FromFormat() and PyUnicode_FromFormatV() now raise
...
OverflowError when an argument of %c format is out of range.
2013-06-23 20:21:16 +03:00
Serhiy Storchaka
8eeae2126c
Issue #18184 : PyUnicode_FromFormat() and PyUnicode_FromFormatV() now raise
...
OverflowError when an argument of %c format is out of range.
2013-06-23 20:12:14 +03:00
Łukasz Langa
82276964c8
Merged fix for issue #18260 from 3.3
2013-06-23 19:12:12 +02:00
Łukasz Langa
f9b4eb4d04
Fixed issue #18260 : configparser TypeError on source name specified as bytes
2013-06-23 19:10:25 +02:00
Christian Heimes
fcce2024ea
Solaris' /dev/null is a symlink. The device test now uses stat instead of lstat to compensate
...
for symlinks.
2013-06-23 16:11:37 +02:00
Christian Heimes
36a7e4f74a
Solaris' /dev/null is a symlink. The device test now uses stat instead of lstat to compensate
...
for symlinks.
2013-06-23 16:10:29 +02:00
Christian Heimes
582cfbbf74
import.c does neither need mode_t nor _mkdir() anymore
2013-06-23 15:53:09 +02:00
Christian Heimes
59b2401070
Add _stat module to VS project file -- this time with the GUI instead of manually.
2013-06-23 15:50:45 +02:00
Christian Heimes
c44ff863b8
add _stat to list of builtin Windows modules
2013-06-23 15:46:56 +02:00
Victor Stinner
8cfd67cfe7
(Merge 3.3) Issue #18135 : Fix a possible integer overflow in
...
ssl.SSLSocket.write() and in ssl.SSLContext.load_cert_chain() for strings and
passwords longer than 2 gigabytes.
2013-06-23 15:09:26 +02:00
Victor Stinner
9ee0203057
Issue #18135 : Fix a possible integer overflow in ssl.SSLSocket.write()
...
and in ssl.SSLContext.load_cert_chain() for strings and passwords longer
than 2 gigabytes.
2013-06-23 15:08:23 +02:00
Victor Stinner
4569cd5eab
_ssl.c: strip trailing spaces
2013-06-23 14:58:43 +02:00
Victor Stinner
2ab07f01a4
(Merge 3.3) Issue #18137 : Detect integer overflow on precision in
...
float.__format__() and complex.__format__().
2013-06-23 14:55:43 +02:00
Victor Stinner
2f084ecfe7
Issue #18137 : Detect integer overflow on precision in float.__format__() and
...
complex.__format__().
2013-06-23 14:54:30 +02:00
Victor Stinner
c6ebd16a20
Issue #11016 : Try to fix compilaton of the new _stat.c module on Windows
2013-06-23 01:49:42 +02:00
Andrew Kuchling
0e03d6f2e9
Merge from 3.3
2013-06-22 19:27:59 -04:00
Andrew Kuchling
da30acf50b
Closes #18220 : expand itertools.islice docstring to 2 lines
2013-06-22 19:20:54 -04:00
Andrew Kuchling
446a39f78f
Close #18285 : add 'repeat' parameter to docstring for product
2013-06-22 19:04:11 -04:00
Terry Jan Reedy
b54b0ca02a
#18151 Merge from 3.3
2013-06-22 18:37:34 -04:00
Terry Jan Reedy
de3beb2617
#18151 , part 2: Silence debug build resource warning for each file opened by
...
'Find in files' by replacing 'open with implicit close' by 'with open' in
GrepDialog method grep_it. Streamline code with enumerate(), direct file
iteration, and output tweak. Add test for this method, including output format.
2013-06-22 18:26:51 -04:00
Christian Heimes
c77d9f38c2
Issue #11016 : Add C implementation of the stat module as _stat
2013-06-22 21:05:02 +02:00
Andrew Kuchling
6ce8d17d02
Merge from 3.3
2013-06-22 14:57:45 -04:00