summaryrefslogtreecommitdiffstats
path: root/Lib/socket.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #26384: Merge from 3.5Berker Peksag2016-09-171-1/+1
|\
| * Issue #26384: Fix UnboundLocalError in socket._sendfile_use_sendfileBerker Peksag2016-09-171-1/+1
| |
* | issue28083: add IntFlag constantsEthan Furman2016-09-111-1/+11
|/
* Issue #27698: Add socketpair to socket.__all__ on WindowsVictor Stinner2016-08-171-0/+1
|
* Issue #26778: Fixed "a/an/and" typos in code comment and documentation.Serhiy Storchaka2016-04-171-1/+1
|
* 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
|