summaryrefslogtreecommitdiffstats
path: root/Lib/socket.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #16915: Clarify that mode parameter of socket.makefile() does not acceptBerker Peksag2016-02-181-3/+3
| | | | the same values as open().
* merge 3.4 (#25471)Benjamin Peterson2015-10-251-1/+5
|\
| * accepted sockets shouldn't inherit the SOCK_NONBLOCK flag (closes #25471)Benjamin Peterson2015-10-251-1/+5
| |
| * issue23673Ethan Furman2015-03-191-9/+9
| | | | | | | | | | | | | | | | | | add private method to enum to support replacing global constants with Enum members: - search for candidate constants via supplied filter - create new enum class and members - insert enum class and replace constants with members via supplied module name - replace __reduce_ex__ with function that returns member name, so previous Python versions can unpickle modify IntEnum classes to use new method
* | issue23673Ethan Furman2015-03-191-8/+8
| | | | | | | | | | | | | | | | | | add private method to enum to support replacing global constants with Enum members: - search for candidate constants via supplied filter - create new enum class and members - insert enum class and replace constants with members via supplied module name - replace __reduce_ex__ with function that returns member name, so previous Python versions can unpickle modify IntEnum classes to use new method
* | Issue #23285: PEP 475 -- Retry system calls failing with EINTR.Charles-François Natali2015-02-071-2/+0
| |
* | merge 3.4 (#23221)Benjamin Peterson2015-01-131-1/+1
|\ \ | |/
| * fix instances of consecutive articles (closes #23221)Benjamin Peterson2015-01-131-1/+1
| | | | | | | | Patch by Karan Goel.
* | Issue #20604: Added missed invalid mode in error message of socket.makefile().Serhiy Storchaka2014-11-191-3/+2
|\ \ | |/ | | | | Based on patch by Franck Michea.
| * Issue #20604: Added missed invalid mode in error message of socket.makefile().Serhiy Storchaka2014-11-191-3/+2
| | | | | | | | Based on patch by Franck Michea.
* | Issue20689: add missing API pieces to __all__Ethan Furman2014-10-181-1/+3
|\ \ | |/
| * Issue20689: add missing API pieces to __all__Ethan Furman2014-10-181-1/+3
| |
* | Issue20386: SocketType is again socket.socket; the IntEnum SOCK constants ↵Ethan Furman2014-10-151-5/+7
|\ \ | |/ | | | | are SocketKind
| * Issue20386: SocketType is again socket.socket; the IntEnum SOCK constants ↵Ethan Furman2014-10-151-5/+7
| | | | | | | | are SocketKind
* | Issue #18643: Add socket.socketpair() on Windows.Charles-François Natali2014-10-141-0/+51
| |
* | Issue #22032: __qualname__ instead of __name__ is now always used to formatSerhiy Storchaka2014-07-221-1/+1
| | | | | | | | fully qualified class names of Python implemented classes.
* | fix issue #17552: add socket.sendfile() method allowing to send a file over ↵Giampaolo Rodola'2014-06-111-1/+147
|/ | | | a socket by using high-performance os.sendfile() on UNIX. Patch by Giampaolo Rodola'·
* Provide a more readable representation of socket on repr().Giampaolo Rodola'2013-10-031-1/+1
| | | | | | | | Before: <socket.socket fd=3, family=2, type=1, proto=0, laddr=('0.0.0.0', 0)> Now: <socket.socket fd=3, family=AddressFamily.AF_INET, type=SocketType.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 0)>
* Switch the AF_* and SOCK_* constants in the socket module to IntEnum.Eli Bendersky2013-08-311-1/+65
| | | | Closes #18720.
* Issue #18571: Implementation of the PEP 446: file descriptors and file handlesVictor Stinner2013-08-271-1/+16
| | | | | are now created non-inheritable; add functions os.get/set_inheritable(), os.get/set_handle_inheritable() and socket.socket.get/set_inheritable().
* Issue #18200: Back out usage of ModuleNotFoundError (8d28d44f3a9a)Brett Cannon2013-07-041-1/+1
|
* Issue #18200: Update the stdlib (except tests) to useBrett Cannon2013-06-141-1/+1
| | | | ModuleNotFoundError.
* Fix issue #17675: make socket repr() provide local and remote addresses (if ↵Giampaolo Rodola'2013-04-101-7/+26
| | | | any).
* Replace IOError with OSError (#16715)Andrew Svetlov2012-12-251-1/+1
|
* Issue #15842: the SocketIO.{readable,writable,seekable} methods now raise ↵Antoine Pitrou2012-09-141-2/+13
|\ | | | | | | | | | | ValueError when the file-like object is closed. Patch by Alessandro Moura.
| * Issue #15842: the SocketIO.{readable,writable,seekable} methods now raise ↵Antoine Pitrou2012-09-141-2/+13
| | | | | | | | | | | | ValueError when the file-like object is closed. Patch by Alessandro Moura.
* | Issue #14310: inter-process socket duplication for windowsKristján Valur Jónsson2012-04-071-1/+9
| |
* | Issue #13872: socket.detach() now marks the socket closed (as mirrored in ↵Antoine Pitrou2012-03-311-0/+11
|\ \ | |/ | | | | | | | | the socket repr()). Patch by Matt Joiner.
| * Issue #13872: socket.detach() now marks the socket closed (as mirrored in ↵Antoine Pitrou2012-03-311-0/+11
| | | | | | | | | | | | the socket repr()). Patch by Matt Joiner.
| * Merged revisions 88622 via svnmerge fromAntoine Pitrou2011-02-251-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r88622 | antoine.pitrou | 2011-02-26 00:07:44 +0100 (sam., 26 févr. 2011) | 5 lines Issue #7322: Trying to read from a socket's file-like object after a timeout occurred now raises an error instead of silently losing data. Patch by Ross Lagerwall. ........
* | Use InterruptedError instead of checking for EINTRAntoine Pitrou2011-10-231-5/+3
| |
* | Issue #11127: Raise a TypeError when trying to pickle a socket object.Antoine Pitrou2011-03-201-0/+3
| |
* | Issue #7322: Trying to read from a socket's file-like object after a timeoutAntoine Pitrou2011-02-251-0/+6
|/ | | | | occurred now raises an error instead of silently losing data. Patch by Ross Lagerwall.
* Issue #7995: When calling accept() on a socket with a timeout, the returnedAntoine Pitrou2011-01-051-1/+7
| | | | socket is now always non-blocking, regardless of the operating system.
* Issue #10819: SocketIO.name property returns -1 when its closed, instead ofVictor Stinner2011-01-041-1/+4
| | | | raising a ValueError, to fix repr().
* Issue #10093: ResourceWarnings are now issued when files and sockets areAntoine Pitrou2010-10-291-1/+1
| | | | | deallocated without explicit closing. These warnings are silenced by default, except in pydebug mode.
* Issue #10041: The signature of optional arguments in socket.makefile()Antoine Pitrou2010-10-131-2/+2
| | | | | didn't match that of io.open(), and they also didn't get forwarded properly to TextIOWrapper in text mode. Patch by Kai Zhu.
* Issue #9854: SocketIO objects now observe the RawIOBase interface inAntoine Pitrou2010-09-181-2/+15
| | | | | non-blocking mode: they return None when an operation would block (instead of raising an exception).
* Reverted unwanted change in r84826Antoine Pitrou2010-09-151-2/+0
|
* Improve docs for socket.makefile() and SocketIOAntoine Pitrou2010-09-151-0/+23
|
* Add a comment explaining why SocketIO is neededAntoine Pitrou2010-09-151-0/+7
|
* Issue #1552: socket.socketpair() now returns regular socket.socketAntoine Pitrou2010-09-141-0/+21
| | | | | objects supporting the whole socket API (rather than the "raw" _socket.socket objects).
* Fix issue 9794: adds context manager protocol to socket.socket so that ↵Giampaolo Rodolà2010-09-081-0/+7
| | | | socket.create_connection() can be used with the 'with' statement.
* Issue #9792: In case of connection failure, socket.create_connection()Antoine Pitrou2010-09-071-4/+7
| | | | | | would swallow the exception and raise a new one, making it impossible to fetch the original errno, or to filter timeout errors. Now the original error is re-raised.
* reformat commentBenjamin Peterson2010-08-311-2/+2
|
* Issue #808164: Fixed socket.close to avoid references to globals, toDaniel Stutzbach2010-08-311-2/+4
| | | | avoid issues when socket.close is called from a __del__ method.
* remove SocketIO.__del__; close() can handle itBenjamin Peterson2010-07-091-4/+0
|
* Merged revisions 74426 via svnmerge fromGregory P. Smith2010-01-041-3/+11
| | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r74426 | gregory.p.smith | 2009-08-13 11:54:50 -0700 (Thu, 13 Aug 2009) | 4 lines Fix issue1628205: Socket file objects returned by socket.socket.makefile() now properly handles EINTR within the read, readline, write & flush methods. The socket.sendall() method now properly handles interrupted system calls. ........
* Merged revisions 77263-77264 via svnmerge fromGregory P. Smith2010-01-031-3/+9
| | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r77263 | gregory.p.smith | 2010-01-02 17:29:44 -0800 (Sat, 02 Jan 2010) | 4 lines Adds an optional source_address parameter to socket.create_connection(). For use by issue3972. ........ r77264 | gregory.p.smith | 2010-01-02 18:06:07 -0800 (Sat, 02 Jan 2010) | 5 lines issue3972: HTTPConnection and HTTPSConnection now support a source_address parameter. Also cleans up an annotation in the socket documentation. ........
* Merged revisions 73138 via svnmerge fromMark Dickinson2009-06-021-1/+1
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r73138 | mark.dickinson | 2009-06-02 08:39:26 +0100 (Tue, 02 Jun 2009) | 1 line Typo in socket.py. Thanks Pablo Torres Navarrete. ........