summaryrefslogtreecommitdiffstats
path: root/Lib/socket.py
Commit message (Collapse)AuthorAgeFilesLines
* 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. ........
* Merged revisions ↵Benjamin Peterson2009-04-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 70980,71059,71225,71234,71241,71243,71249,71251,71255,71266,71299,71329,71397-71398,71486 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r70980 | jack.diederich | 2009-04-01 15:26:13 -0500 (Wed, 01 Apr 2009) | 3 lines bounds check arguments to mmap.move(). All of them. Really. fixes crasher on OS X 10.5 ........ r71059 | mark.dickinson | 2009-04-02 13:39:37 -0500 (Thu, 02 Apr 2009) | 2 lines sys.long_info attributes should be ints, not longs ........ r71225 | georg.brandl | 2009-04-05 06:54:07 -0500 (Sun, 05 Apr 2009) | 1 line #5580: no need to use parentheses when converterr() argument is actually a type description. ........ r71234 | georg.brandl | 2009-04-05 08:16:35 -0500 (Sun, 05 Apr 2009) | 1 line Whitespace normalization. ........ r71241 | georg.brandl | 2009-04-05 09:48:49 -0500 (Sun, 05 Apr 2009) | 1 line #5471: fix expanduser() for $HOME set to "/". ........ r71243 | georg.brandl | 2009-04-05 10:14:29 -0500 (Sun, 05 Apr 2009) | 1 line #5432: make plistlib docstring a raw string, since it contains examples with backslash escapes. ........ r71249 | georg.brandl | 2009-04-05 11:30:43 -0500 (Sun, 05 Apr 2009) | 1 line #5444: adapt make.bat to new htmlhelp output file name. ........ r71251 | georg.brandl | 2009-04-05 12:17:42 -0500 (Sun, 05 Apr 2009) | 1 line #5298: clarify docs about GIL by using more consistent wording. ........ r71255 | georg.brandl | 2009-04-05 13:34:58 -0500 (Sun, 05 Apr 2009) | 1 line #602893: add indicator for current line in cgitb that doesnt rely on styling alone. ........ r71266 | georg.brandl | 2009-04-05 15:23:13 -0500 (Sun, 05 Apr 2009) | 1 line Normalize issue referencing style. ........ r71299 | gregory.p.smith | 2009-04-05 18:43:58 -0500 (Sun, 05 Apr 2009) | 3 lines Fixes issue5705: os.setuid() and friends did not accept the same range of values that pwd.getpwnam() returns. ........ r71329 | benjamin.peterson | 2009-04-06 16:53:33 -0500 (Mon, 06 Apr 2009) | 1 line add create_connection to __all__ #5711 ........ r71397 | georg.brandl | 2009-04-08 11:36:39 -0500 (Wed, 08 Apr 2009) | 1 line Remove redundant backtick. ........ r71398 | georg.brandl | 2009-04-08 11:39:04 -0500 (Wed, 08 Apr 2009) | 1 line Update ignore file for suspicious builder. ........ r71486 | andrew.kuchling | 2009-04-11 11:18:14 -0500 (Sat, 11 Apr 2009) | 1 line Re-word ........
* Fixes issue #3826 and #4791:Gregory P. Smith2009-01-121-2/+6
| | | | | | | Have SocketIO objects update their reference count in the underlying socket object on close() so that the underlying socket object is closed immediately when the last user is done rather than at an unknown later time when garbage collection can do it.
* make FileIO.mode always include 'b'Benjamin Peterson2008-11-221-1/+3
| | | | #4386 Reviewed by Amaury
* Follow-up of r67300: correct a failure in socket.makefile().Amaury Forgeot d'Arc2008-11-201-5/+8
| | | | SocketIO objects now always have 'name' and 'mode' attributes.