]> granicus.if.org Git - python/log
python
9 years agoFixed test_enum for issue #15582.
Serhiy Storchaka [Sat, 4 Apr 2015 09:48:04 +0000 (12:48 +0300)]
Fixed test_enum for issue #15582.

9 years agoIssue #15133: _tkinter.tkapp.getboolean() now supports Tcl_Obj and always
Serhiy Storchaka [Sat, 4 Apr 2015 09:44:30 +0000 (12:44 +0300)]
Issue #15133: _tkinter.tkapp.getboolean() now supports Tcl_Obj and always
returns bool.  tkinter.BooleanVar now validates input values (accepted bool,
int, str, and Tcl_Obj).  tkinter.BooleanVar.get() now always returns bool.

9 years agoIssue #15133: _tkinter.tkapp.getboolean() now supports Tcl_Obj and always
Serhiy Storchaka [Sat, 4 Apr 2015 09:43:01 +0000 (12:43 +0300)]
Issue #15133: _tkinter.tkapp.getboolean() now supports Tcl_Obj and always
returns bool.  tkinter.BooleanVar now validates input values (accepted bool,
int, str, and Tcl_Obj).  tkinter.BooleanVar.get() now always returns bool.

9 years agoIssue #22831: Use "with" to avoid possible fd leaks.
Serhiy Storchaka [Sat, 4 Apr 2015 08:01:02 +0000 (11:01 +0300)]
Issue #22831: Use "with" to avoid possible fd leaks.

9 years agoOpen files in binary mode to avoid newlines transformation.
Serhiy Storchaka [Sat, 4 Apr 2015 07:36:50 +0000 (10:36 +0300)]
Open files in binary mode to avoid newlines transformation.

9 years agoOpen files in binary mode to avoid newlines transformation.
Serhiy Storchaka [Sat, 4 Apr 2015 07:36:25 +0000 (10:36 +0300)]
Open files in binary mode to avoid newlines transformation.

9 years agoIssue #10590: xml.sax.parseString() now supports string argument.
Serhiy Storchaka [Sat, 4 Apr 2015 07:12:26 +0000 (10:12 +0300)]
Issue #10590: xml.sax.parseString() now supports string argument.

9 years agoIssue #23338: Fixed formatting ctypes error messages on Cygwin.
Serhiy Storchaka [Sat, 4 Apr 2015 07:06:58 +0000 (10:06 +0300)]
Issue #23338: Fixed formatting ctypes error messages on Cygwin.
Patch by Makoto Kato.

9 years agoIssue #23338: Fixed formatting ctypes error messages on Cygwin.
Serhiy Storchaka [Sat, 4 Apr 2015 07:05:48 +0000 (10:05 +0300)]
Issue #23338: Fixed formatting ctypes error messages on Cygwin.
Patch by Makoto Kato.

9 years agoIssue #23825: Fixed test_idle under -OO.
Serhiy Storchaka [Sat, 4 Apr 2015 06:48:17 +0000 (09:48 +0300)]
Issue #23825: Fixed test_idle under -OO.

9 years agoIssue #23825: Fixed test_idle under -OO.
Serhiy Storchaka [Sat, 4 Apr 2015 06:47:31 +0000 (09:47 +0300)]
Issue #23825: Fixed test_idle under -OO.

9 years agoMoved Misc/NEWS entries not included in 3.5.0 alpha 3 to correct section.
Serhiy Storchaka [Sat, 4 Apr 2015 06:38:17 +0000 (09:38 +0300)]
Moved Misc/NEWS entries not included in 3.5.0 alpha 3 to correct section.

9 years agoIssue #23492: Argument Clinic now generates argument parsing code with
Serhiy Storchaka [Fri, 3 Apr 2015 21:12:11 +0000 (00:12 +0300)]
Issue #23492: Argument Clinic now generates argument parsing code with
PyArg_Parse instead of PyArg_ParseTuple if possible.

9 years agoIssue #23501: Argumen Clinic now generates code into separate files by default.
Serhiy Storchaka [Fri, 3 Apr 2015 20:53:51 +0000 (23:53 +0300)]
Issue #23501: Argumen Clinic now generates code into separate files by default.

9 years agoIssue #23500: Argument Clinic is now smarter about generating the "#ifndef"
Larry Hastings [Fri, 3 Apr 2015 20:09:02 +0000 (13:09 -0700)]
Issue #23500: Argument Clinic is now smarter about generating the "#ifndef"
(empty) definition of the methoddef macro: it's only generated once, even
if Argument Clinic processes the same symbol multiple times, and it's emitted
at the end of all processing rather than immediately after the first use.

9 years agoIssue #15582: inspect.getdoc() now follows inheritance chains.
Serhiy Storchaka [Fri, 3 Apr 2015 19:38:53 +0000 (22:38 +0300)]
Issue #15582: inspect.getdoc() now follows inheritance chains.

9 years agoIssue #23466: Raised OverflowError if %c argument is out of range.
Serhiy Storchaka [Fri, 3 Apr 2015 17:53:46 +0000 (20:53 +0300)]
Issue #23466: Raised OverflowError if %c argument is out of range.

9 years agoRemoved trailing whitespaces in miscalenous files.
Serhiy Storchaka [Fri, 3 Apr 2015 16:42:32 +0000 (19:42 +0300)]
Removed trailing whitespaces in miscalenous files.

9 years agoEscaped backslashes in docstrings.
Serhiy Storchaka [Fri, 3 Apr 2015 15:13:23 +0000 (18:13 +0300)]
Escaped backslashes in docstrings.

9 years agoEscaped backslashes in docstrings.
Serhiy Storchaka [Fri, 3 Apr 2015 15:12:41 +0000 (18:12 +0300)]
Escaped backslashes in docstrings.

9 years agoMerge 3.4 (asyncio doc)
Victor Stinner [Fri, 3 Apr 2015 15:10:17 +0000 (17:10 +0200)]
Merge 3.4 (asyncio doc)

9 years agoIssue #23219: Update asyncio.wait_for() documentation
Victor Stinner [Fri, 3 Apr 2015 15:08:19 +0000 (17:08 +0200)]
Issue #23219: Update asyncio.wait_for() documentation

the wait is cancelled, the future *fut* is now also cancelled.

9 years agoGot rid of warnings "suggest braces around empty body in an ‘else’ statement"
Serhiy Storchaka [Fri, 3 Apr 2015 12:24:33 +0000 (15:24 +0300)]
Got rid of warnings "suggest braces around empty body in an ‘else’ statement"
in Parser/pgen.c.

9 years agoIssue #22351. MockSslTests tests in test_nntplib now are reported if skipped.
Serhiy Storchaka [Fri, 3 Apr 2015 12:02:40 +0000 (15:02 +0300)]
Issue #22351. MockSslTests tests in test_nntplib now are reported if skipped.

9 years agoIssue #22351. MockSslTests tests in test_nntplib now are reported if skipped.
Serhiy Storchaka [Fri, 3 Apr 2015 12:02:20 +0000 (15:02 +0300)]
Issue #22351. MockSslTests tests in test_nntplib now are reported if skipped.

9 years agoIssue #22351: Fix test_nntplib if the ssl module is missing
Victor Stinner [Fri, 3 Apr 2015 09:06:40 +0000 (11:06 +0200)]
Issue #22351: Fix test_nntplib if the ssl module is missing

@unittest.skipUnless(ssl, '...') doesn't work because the class body uses the
nntplib.NNTP_SSL attribute which doesn't exist.

9 years agoIssue #10590: Added tests for xml.sax.parse() and xml.sax.parseString().
Serhiy Storchaka [Thu, 2 Apr 2015 20:05:57 +0000 (23:05 +0300)]
Issue #10590: Added tests for xml.sax.parse() and xml.sax.parseString().

9 years agoIssue #23853: Cleanup _ssl.c
Victor Stinner [Thu, 2 Apr 2015 19:28:28 +0000 (21:28 +0200)]
Issue #23853: Cleanup _ssl.c

* Rename check_socket_and_wait_for_timeout() to PySSL_select()
* PySSL_select() is now clearly splitted betwen poll() and select()
* Add empty lines for readability

9 years agoIssue #23834: Simplify timeout handling
Victor Stinner [Fri, 3 Apr 2015 11:22:27 +0000 (13:22 +0200)]
Issue #23834: Simplify timeout handling

* Use the new _PyTime_FromSeconds() function to set the timeout to -1 second
  for socket.settimeout(None). It avoids a special case in internal_select()
  because of a rounding issue: -1 nanosecond is rounded to 0 millisecond which
  means non-blocking, instead of blocking.
* Check if the interval the negative in sock_call_ex() instead of doing the
  check in internal_select(). sock_call_ex() remembers if the socket has a
  timeout or not, which avoids a race condition if the timeout is modified in a
  different thread.

9 years agoIssue #22117: Add a new _PyTime_FromSeconds() function
Victor Stinner [Fri, 3 Apr 2015 11:10:54 +0000 (13:10 +0200)]
Issue #22117: Add a new _PyTime_FromSeconds() function

Fix also _Py_InitializeEx_Private(): initialize time before initializing
import, import_init() uses the _PyTime API (for thread locks).

9 years agoMerge 3.4 (test_nntplib)
Victor Stinner [Fri, 3 Apr 2015 09:09:08 +0000 (11:09 +0200)]
Merge 3.4 (test_nntplib)

9 years agoIssue #10590: Added tests for xml.sax.parse() and xml.sax.parseString().
Serhiy Storchaka [Thu, 2 Apr 2015 20:07:19 +0000 (23:07 +0300)]
Issue #10590: Added tests for xml.sax.parse() and xml.sax.parseString().

9 years agoIssue #2175: SAX parsers now support a character stream of InputSource object.
Serhiy Storchaka [Thu, 2 Apr 2015 18:00:13 +0000 (21:00 +0300)]
Issue #2175: SAX parsers now support a character stream of InputSource object.

9 years agoIssue #2175: Added tests for xml.sax.saxutils.prepare_input_source().
Serhiy Storchaka [Thu, 2 Apr 2015 17:57:20 +0000 (20:57 +0300)]
Issue #2175: Added tests for xml.sax.saxutils.prepare_input_source().
Made test XML files non-ASCII.

9 years agoIssue #2175: Added tests for xml.sax.saxutils.prepare_input_source().
Serhiy Storchaka [Thu, 2 Apr 2015 17:55:59 +0000 (20:55 +0300)]
Issue #2175: Added tests for xml.sax.saxutils.prepare_input_source().
Made test XML files non-ASCII.

9 years agoIssue #16840: Fixed test_tcl for Tcl < 8.5.
Serhiy Storchaka [Thu, 2 Apr 2015 17:07:24 +0000 (20:07 +0300)]
Issue #16840: Fixed test_tcl for Tcl < 8.5.

9 years agoIssue #16840: Fixed test_tcl for Tcl < 8.5.
Serhiy Storchaka [Thu, 2 Apr 2015 17:07:09 +0000 (20:07 +0300)]
Issue #16840: Fixed test_tcl for Tcl < 8.5.

9 years agoIssue #21526: Skip test_booleans on Tcl < 8.5.
Serhiy Storchaka [Thu, 2 Apr 2015 16:59:34 +0000 (19:59 +0300)]
Issue #21526: Skip test_booleans on Tcl < 8.5.

9 years agoIssue #21526: Skip test_booleans on Tcl < 8.5.
Serhiy Storchaka [Thu, 2 Apr 2015 16:57:52 +0000 (19:57 +0300)]
Issue #21526: Skip test_booleans on Tcl < 8.5.

9 years agoIssue #16840: Tkinter now supports 64-bit integers added in Tcl 8.4 and
Serhiy Storchaka [Thu, 2 Apr 2015 15:49:14 +0000 (18:49 +0300)]
Issue #16840: Tkinter now supports 64-bit integers added in Tcl 8.4 and
arbitrary precision integers added in Tcl 8.5.

9 years agoIssue #16840: Tkinter now supports 64-bit integers added in Tcl 8.4 and
Serhiy Storchaka [Thu, 2 Apr 2015 15:46:50 +0000 (18:46 +0300)]
Issue #16840: Tkinter now supports 64-bit integers added in Tcl 8.4 and
arbitrary precision integers added in Tcl 8.5.

9 years ago(Merge 3.4) Issue #23834: Fix socket.sendto(), use the C Py_ssize_t type to
Victor Stinner [Thu, 2 Apr 2015 15:20:48 +0000 (17:20 +0200)]
(Merge 3.4) Issue #23834: Fix socket.sendto(), use the C Py_ssize_t type to
store the result of sendto() instead of the C int type.

(The bug was already fixed in the default branch, but differently.)

9 years agoIssue #23834: Fix socket.sendto(), use the C Py_ssize_t type to store the
Victor Stinner [Thu, 2 Apr 2015 15:16:08 +0000 (17:16 +0200)]
Issue #23834: Fix socket.sendto(), use the C Py_ssize_t type to store the
result of sendto() instead of the C int type.

9 years agoMerge 3.4 (_posixsubprocess)
Victor Stinner [Thu, 2 Apr 2015 14:25:01 +0000 (16:25 +0200)]
Merge 3.4 (_posixsubprocess)

9 years agoIssue #23851: close() must not be retried when it fails with EINTR
Victor Stinner [Thu, 2 Apr 2015 14:24:46 +0000 (16:24 +0200)]
Issue #23851: close() must not be retried when it fails with EINTR

See the PEP 475 for the rationale.

9 years agoIssue #23618: Ooops, remove abort() added for debug purpose
Victor Stinner [Thu, 2 Apr 2015 13:17:12 +0000 (15:17 +0200)]
Issue #23618: Ooops, remove abort() added for debug purpose

9 years agoIssue #23618: Fix sock_connect_impl(), set the socket error code
Victor Stinner [Thu, 2 Apr 2015 12:37:20 +0000 (14:37 +0200)]
Issue #23618: Fix sock_connect_impl(), set the socket error code

sock_call_ex() gets the socket error code when the socket function fails.
sock_connect_impl() didn't set the error correctly.

9 years agoMerge 3.4 (test_exceptions)
Victor Stinner [Thu, 2 Apr 2015 12:22:44 +0000 (14:22 +0200)]
Merge 3.4 (test_exceptions)

9 years agoIssue #22977: Fix test_exceptions
Victor Stinner [Thu, 2 Apr 2015 12:17:38 +0000 (14:17 +0200)]
Issue #22977: Fix test_exceptions

9 years agoIssue #23648: Complete the list of modified functions for the PEP 475
Victor Stinner [Thu, 2 Apr 2015 11:56:29 +0000 (13:56 +0200)]
Issue #23648: Complete the list of modified functions for the PEP 475

9 years agoIssue #23618: socket.socket.connect() now waits until the connection completes
Victor Stinner [Thu, 2 Apr 2015 09:50:57 +0000 (11:50 +0200)]
Issue #23618: socket.socket.connect() now waits until the connection completes
instead of raising InterruptedError if the connection is interrupted by
signals, signal handlers don't raise an exception and the socket is blocking or
has a timeout.

socket.socket.connect() still raise InterruptedError for non-blocking sockets.

9 years agoIssue #23618: Document EINTR changes in socket documentation
Victor Stinner [Thu, 2 Apr 2015 09:49:42 +0000 (11:49 +0200)]
Issue #23618: Document EINTR changes in socket documentation

9 years agoIssue #23618: Don't declare recvmsg/sendmsg helper functions on Windows
Victor Stinner [Thu, 2 Apr 2015 10:28:07 +0000 (12:28 +0200)]
Issue #23618: Don't declare recvmsg/sendmsg helper functions on Windows

9 years agoIssue #21526: Fixed the test_booleans test for wantobjects = 0.
Serhiy Storchaka [Thu, 2 Apr 2015 08:47:51 +0000 (11:47 +0300)]
Issue #21526: Fixed the test_booleans test for wantobjects = 0.

9 years agoIssue #21526: Fixed the test_booleans test for wantobjects = 0.
Serhiy Storchaka [Thu, 2 Apr 2015 08:46:07 +0000 (11:46 +0300)]
Issue #21526: Fixed the test_booleans test for wantobjects = 0.

9 years agoIssue #21526: Fixed support of new boolean type in Tcl 8.5.
Serhiy Storchaka [Thu, 2 Apr 2015 07:58:40 +0000 (10:58 +0300)]
Issue #21526: Fixed support of new boolean type in Tcl 8.5.

9 years agoIssue #21526: Tkinter now supports new boolean type in Tcl 8.5.
Serhiy Storchaka [Thu, 2 Apr 2015 07:35:57 +0000 (10:35 +0300)]
Issue #21526: Tkinter now supports new boolean type in Tcl 8.5.

9 years agoIssue #22977: Fixed formatting Windows error messages on Wine.
Serhiy Storchaka [Thu, 2 Apr 2015 06:50:06 +0000 (09:50 +0300)]
Issue #22977: Fixed formatting Windows error messages on Wine.
Patch by Martin Panter.

9 years agoIssue #22977: Fixed formatting Windows error messages on Wine.
Serhiy Storchaka [Thu, 2 Apr 2015 06:47:27 +0000 (09:47 +0300)]
Issue #22977: Fixed formatting Windows error messages on Wine.
Patch by Martin Panter.

9 years agomerge 3.4 (#23844)
Benjamin Peterson [Thu, 2 Apr 2015 04:08:10 +0000 (00:08 -0400)]
merge 3.4 (#23844)

9 years agoreplace 512 bit dh key with a 2014 bit one (closes #23844)
Benjamin Peterson [Thu, 2 Apr 2015 04:04:06 +0000 (00:04 -0400)]
replace 512 bit dh key with a 2014 bit one (closes #23844)

Patch by Cédric Krier.

9 years agoIssue #23834: Fix sock_call(), set deadline_initialized to recompute the timeout
Victor Stinner [Thu, 2 Apr 2015 01:22:49 +0000 (03:22 +0200)]
Issue #23834: Fix sock_call(), set deadline_initialized to recompute the timeout

9 years agoIssue #23834: Modify socket.sendall() to reuse sock_call() with
Victor Stinner [Wed, 1 Apr 2015 20:53:26 +0000 (22:53 +0200)]
Issue #23834: Modify socket.sendall() to reuse sock_call() with
sock_send_impl()

9 years agoIssue #23834: Add sock_call() helper function
Victor Stinner [Wed, 1 Apr 2015 19:57:09 +0000 (21:57 +0200)]
Issue #23834: Add sock_call() helper function

The BEGIN_SELECT_LOOP and END_SELECT_LOOP macros of socketmodule.c don't handle
EINTR. Functions using these macros use an inner loop to handle EINTR, but they
don't recompute the timeout.

This changes replaces the two macros with a new sock_call() function which
takes a function as a parameter. sock_call() recomputes the timeout, handle
false positive and handle EINTR.

9 years agoIssue #23836: Fix the faulthandler module to handle reentrant calls
Victor Stinner [Wed, 1 Apr 2015 16:48:58 +0000 (18:48 +0200)]
Issue #23836: Fix the faulthandler module to handle reentrant calls
to its signal handlers.

Use also _Py_write_noraise() instead of write() to retry write() if it is
interrupted by a signal (fail with EINTR).

faulthandler.dump_traceback() also calls PyErr_CheckSignals() to call the
Python signal handler if a signal was received.

9 years agoIssue #23836: Use _Py_write_noraise() to retry on EINTR in _Py_DumpTraceback()
Victor Stinner [Wed, 1 Apr 2015 16:38:01 +0000 (18:38 +0200)]
Issue #23836: Use _Py_write_noraise() to retry on EINTR in _Py_DumpTraceback()
and _Py_DumpTracebackThreads(). Document also these functions to explain that
the caller is responsible to call PyErr_CheckSignals().

9 years agoIssue #23836: Use _Py_write_noraise() to retry on EINTR in child_exec() of
Victor Stinner [Wed, 1 Apr 2015 16:35:53 +0000 (18:35 +0200)]
Issue #23836: Use _Py_write_noraise() to retry on EINTR in child_exec() of
_posixsubprocess

9 years agoIssue #23836: Use _Py_write_noraise() to retry on EINTR in trip_signal() of
Victor Stinner [Wed, 1 Apr 2015 16:35:22 +0000 (18:35 +0200)]
Issue #23836: Use _Py_write_noraise() to retry on EINTR in trip_signal() of
signalmodule.c

9 years agoIssue #23836: Document functions releasing the GIL in fileutils.c
Victor Stinner [Wed, 1 Apr 2015 16:34:32 +0000 (18:34 +0200)]
Issue #23836: Document functions releasing the GIL in fileutils.c

9 years agoIssue #23836: Add _Py_write_noraise() function
Victor Stinner [Wed, 1 Apr 2015 16:34:45 +0000 (18:34 +0200)]
Issue #23836: Add _Py_write_noraise() function

Helper to write() which retries write() if it is interrupted by a signal (fails
with EINTR).

9 years agomerge 3.4
Benjamin Peterson [Wed, 1 Apr 2015 16:37:34 +0000 (12:37 -0400)]
merge 3.4

9 years agoIssue #22117, issue #23485: Fix _PyTime_AsMilliseconds() and
Victor Stinner [Wed, 1 Apr 2015 15:47:07 +0000 (17:47 +0200)]
Issue #22117, issue #23485: Fix _PyTime_AsMilliseconds() and
_PyTime_AsMicroseconds() rounding.

Add also unit tests.

9 years agoremove assignment in conditional
Benjamin Peterson [Wed, 1 Apr 2015 15:16:40 +0000 (11:16 -0400)]
remove assignment in conditional

9 years agoCheck deques against common sequence tests (except for slicing).
Raymond Hettinger [Wed, 1 Apr 2015 15:11:09 +0000 (08:11 -0700)]
Check deques against common sequence tests (except for slicing).

9 years agoWhat's New in Python 3.5: mention signal.set_wakeup_fd() enhancement on Windows
Victor Stinner [Wed, 1 Apr 2015 14:32:32 +0000 (16:32 +0200)]
What's New in Python 3.5: mention signal.set_wakeup_fd() enhancement on Windows

9 years agoIssue #23821: Fixed test_pdb failure under -O.
Serhiy Storchaka [Wed, 1 Apr 2015 13:58:39 +0000 (16:58 +0300)]
Issue #23821: Fixed test_pdb failure under -O.

9 years agoIssue #23821: Fixed test_pdb failure under -O.
Serhiy Storchaka [Wed, 1 Apr 2015 13:58:19 +0000 (16:58 +0300)]
Issue #23821: Fixed test_pdb failure under -O.

9 years agoIssue #23838: linecache now clears the cache and returns an empty result on
Serhiy Storchaka [Wed, 1 Apr 2015 13:56:13 +0000 (16:56 +0300)]
Issue #23838: linecache now clears the cache and returns an empty result on
MemoryError.

9 years agoIssue #23838: linecache now clears the cache and returns an empty result on
Serhiy Storchaka [Wed, 1 Apr 2015 13:54:05 +0000 (16:54 +0300)]
Issue #23838: linecache now clears the cache and returns an empty result on
MemoryError.

9 years agoIt wasn't a typo, it is the mnemonic (AT=@).
R David Murray [Wed, 1 Apr 2015 13:15:02 +0000 (09:15 -0400)]
It wasn't a typo, it is the mnemonic (AT=@).

9 years agoIssue #23799: Added test.support.start_threads() for running and cleaning up
Serhiy Storchaka [Wed, 1 Apr 2015 10:06:18 +0000 (13:06 +0300)]
Issue #23799: Added test.support.start_threads() for running and cleaning up
multiple threads.

9 years agoIssue #23799: Added test.support.start_threads() for running and cleaning up
Serhiy Storchaka [Wed, 1 Apr 2015 10:01:14 +0000 (13:01 +0300)]
Issue #23799: Added test.support.start_threads() for running and cleaning up
multiple threads.

9 years agoIssue #23618: Fix EINTR handling on Windows
Victor Stinner [Wed, 1 Apr 2015 09:09:43 +0000 (11:09 +0200)]
Issue #23618: Fix EINTR handling on Windows

Windows uses WSAEINTR error code, not EINTR, for socket functions.

9 years agomerge 3.4 (#12855)
Benjamin Peterson [Wed, 1 Apr 2015 01:21:09 +0000 (21:21 -0400)]
merge 3.4 (#12855)

9 years agodocument what exactly str.splitlines() splits on (closes #12855)
Benjamin Peterson [Wed, 1 Apr 2015 01:20:36 +0000 (21:20 -0400)]
document what exactly str.splitlines() splits on (closes #12855)

Patch by Martin Panter.

9 years agoIssue #23618: Enhance EINTR handling in socket.connect()
Victor Stinner [Tue, 31 Mar 2015 20:03:59 +0000 (22:03 +0200)]
Issue #23618: Enhance EINTR handling in socket.connect()

Call PyErr_CheckSignals() immediatly if connect() or select() fails with EINTR
in internal_connect().

Refactor also the code to limit indentaton and make it more readable.

9 years agoIssue #23618: Fix EINTR handling in socket.connect()
Victor Stinner [Tue, 31 Mar 2015 19:28:42 +0000 (21:28 +0200)]
Issue #23618: Fix EINTR handling in socket.connect()

Call PyErr_CheckSignals() if connect(), select() or getsockopt() failed with
EINTR.

9 years agoIssue #23618: Cleanup internal_connect() in socketmodule.c
Victor Stinner [Tue, 31 Mar 2015 19:23:10 +0000 (21:23 +0200)]
Issue #23618: Cleanup internal_connect() in socketmodule.c

On Windows, it looks like using the C type socklen_t for getsockopt() (instead
of int) is fine, it was already used in socket.getsockopt().

9 years agoIssue 23793: Add deque support for __add__(), __mul__(), and __imul__().
Raymond Hettinger [Tue, 31 Mar 2015 15:12:23 +0000 (08:12 -0700)]
Issue 23793:  Add deque support for __add__(), __mul__(), and __imul__().

9 years agoIssue #23618: Refactor internal_connect()
Victor Stinner [Tue, 31 Mar 2015 14:35:35 +0000 (16:35 +0200)]
Issue #23618: Refactor internal_connect()

On Windows, internal_connect() now reuses internal_connect_select() and always
calls getsockopt().

9 years agoIssue #23618: Refactor internal_connect()
Victor Stinner [Tue, 31 Mar 2015 14:08:22 +0000 (16:08 +0200)]
Issue #23618: Refactor internal_connect()

The function now returns the error code instead of using the global errno
(POSIX) or WSAGetLastError() (Windows).

internal_connect() now returns errno if getsockopt() fails.

9 years agoIssue #22117: Fix integer overflow check in socket_parse_timeout() on Windows
Victor Stinner [Tue, 31 Mar 2015 14:31:19 +0000 (16:31 +0200)]
Issue #22117: Fix integer overflow check in socket_parse_timeout() on Windows

9 years agoIssue #23611: Fixed enums pickling tests. Now all picklings work with all
Serhiy Storchaka [Tue, 31 Mar 2015 13:56:49 +0000 (16:56 +0300)]
Issue #23611: Fixed enums pickling tests.  Now all picklings work with all
protocols.

9 years agoIssue #18473: Fixed pickle compatibility tests for optional modules.
Serhiy Storchaka [Tue, 31 Mar 2015 13:49:48 +0000 (16:49 +0300)]
Issue #18473: Fixed pickle compatibility tests for optional modules.
Added WindowsError to compatibility mappings.

9 years agoIssue #18473: Fixed pickle compatibility tests for optional modules.
Serhiy Storchaka [Tue, 31 Mar 2015 13:49:26 +0000 (16:49 +0300)]
Issue #18473: Fixed pickle compatibility tests for optional modules.
Added WindowsError to compatibility mappings.

9 years agoIssue #10395: Added os.path.commonpath(). Implemented in posixpath and ntpath.
Serhiy Storchaka [Tue, 31 Mar 2015 12:31:53 +0000 (15:31 +0300)]
Issue #10395: Added os.path.commonpath().  Implemented in posixpath and ntpath.
Based on patch by Rafik Draoui.

9 years agoIssue #23618: Fix internal_connect_select()
Victor Stinner [Tue, 31 Mar 2015 12:24:47 +0000 (14:24 +0200)]
Issue #23618: Fix internal_connect_select()

9 years agoIssue #23618: internal_connect_select() now waits also for error events
Victor Stinner [Tue, 31 Mar 2015 11:56:29 +0000 (13:56 +0200)]
Issue #23618: internal_connect_select() now waits also for error events

9 years agoIssue #23618: Refactor internal_select() to prepare socket.connect() for EINTR
Victor Stinner [Tue, 31 Mar 2015 11:50:44 +0000 (13:50 +0200)]
Issue #23618: Refactor internal_select() to prepare socket.connect() for EINTR

9 years agoIssue #23618: Refactor the _socket module
Victor Stinner [Tue, 31 Mar 2015 11:15:31 +0000 (13:15 +0200)]
Issue #23618: Refactor the _socket module

* Inline internal_select() function
* Rename internal_select_ex() internal_select()