<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Modules/socketmodule.c, branch v3.0a2</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Modules/socketmodule.c?h=v3.0a2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Modules/socketmodule.c?h=v3.0a2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2007-12-04T22:10:37Z</updated>
<entry>
<title>Remove PyInt_CheckExact. Add PyLong_AsLongAndOverflow.</title>
<updated>2007-12-04T22:10:37Z</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2007-12-04T22:10:37Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=d1a1d1ed802187cd1a9a8a95ac5d758c7acffee6'/>
<id>urn:sha1:d1a1d1ed802187cd1a9a8a95ac5d758c7acffee6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Cleanup: Replaced most PyInt_ aliases with PyLong_ and disabled the aliases in intobject.h</title>
<updated>2007-12-02T14:31:20Z</updated>
<author>
<name>Christian Heimes</name>
<email>christian@cheimes.de</email>
</author>
<published>2007-12-02T14:31:20Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=217cfd1c86c59ed8a55ce6d6b88bbe37309e7ba2'/>
<id>urn:sha1:217cfd1c86c59ed8a55ce6d6b88bbe37309e7ba2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Convert the socket module to insist on bytes for input, and to return bytes</title>
<updated>2007-11-21T22:09:45Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2007-11-21T22:09:45Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=8a392d7387c9992537b0e1f66de989e34bd4eb4e'/>
<id>urn:sha1:8a392d7387c9992537b0e1f66de989e34bd4eb4e</id>
<content type='text'>
(not bytearray) on output.  Discovered a bunch of places that were still
depending on it accepting text strings.
</content>
</entry>
<entry>
<title>The patch from weck does a better job than my original idea. Thanks!</title>
<updated>2007-11-20T06:51:17Z</updated>
<author>
<name>Christian Heimes</name>
<email>christian@cheimes.de</email>
</author>
<published>2007-11-20T06:51:17Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=96e7b3db657e17f90b1569018942f5c7371832c8'/>
<id>urn:sha1:96e7b3db657e17f90b1569018942f5c7371832c8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>This is roughly socket2.diff from issue 1378, with a few changes applied</title>
<updated>2007-11-16T01:24:05Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2007-11-16T01:24:05Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=39eb8fa0dbbcd6568fceb7ca59220aa3281e0cc4'/>
<id>urn:sha1:39eb8fa0dbbcd6568fceb7ca59220aa3281e0cc4</id>
<content type='text'>
to ssl.py (no need to test whether we can dup any more).
Regular sockets no longer have a _base, but we still have explicit
reference counting of socket objects for the benefit of makefile();
using duplicate sockets won't work for SSLSocket.
</content>
</entry>
<entry>
<title>Merged revisions 58947-59004 via svnmerge from</title>
<updated>2007-11-16T00:35:22Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2007-11-16T00:35:22Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=3d392eb3273aefeca2741aee9f0e31e3b79b1043'/>
<id>urn:sha1:3d392eb3273aefeca2741aee9f0e31e3b79b1043</id>
<content type='text'>
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r58952 | christian.heimes | 2007-11-12 10:58:08 -0800 (Mon, 12 Nov 2007) | 6 lines

  readline module cleanup
  fixed indention to tabs
  use Py_RETURN_NONE macro
  added more error checks to on_completion_display_matches_hook

  open question: Does PyList_SetItem(l, i, o) steal a reference to o in the case of an error?
........
  r58956 | guido.van.rossum | 2007-11-12 12:06:40 -0800 (Mon, 12 Nov 2007) | 2 lines

  Add the test from issue 1704621 (the issue itself is already fixed here).
........
  r58963 | amaury.forgeotdarc | 2007-11-13 13:54:28 -0800 (Tue, 13 Nov 2007) | 23 lines

  Merge from py3k branch:
  Correction for issue1265 (pdb bug with "with" statement).

  When an unfinished generator-iterator is garbage collected, PyEval_EvalFrameEx
  is called with a GeneratorExit exception set.  This leads to funny results
  if the sys.settrace function itself makes use of generators.
  A visible effect is that the settrace function is reset to None.
  Another is that the eventual "finally" block of the generator is not called.

  It is necessary to save/restore the exception around the call to the trace
  function.

  This happens a lot with py3k: isinstance() of an ABCMeta instance runs
      def __instancecheck__(cls, instance):
          """Override for isinstance(instance, cls)."""
          return any(cls.__subclasscheck__(c)
                     for c in {instance.__class__, type(instance)})
  which lets an opened generator expression each time it returns True.

  Backport candidate, even if the case is less frequent in 2.5.
........
  r58968 | georg.brandl | 2007-11-14 05:59:09 -0800 (Wed, 14 Nov 2007) | 2 lines

  Remove dead link from random docs.
........
  r58971 | raymond.hettinger | 2007-11-14 14:56:16 -0800 (Wed, 14 Nov 2007) | 1 line

  Make __fields__ read-only.  Suggested by Issac Morland
........
  r58972 | raymond.hettinger | 2007-11-14 15:02:30 -0800 (Wed, 14 Nov 2007) | 1 line

  Add test for __fields__ being read-only
........
  r58975 | raymond.hettinger | 2007-11-14 18:44:53 -0800 (Wed, 14 Nov 2007) | 6 lines

  Accept Issac Morland's suggestion for __replace__ to allow multiple replacements
  (suprisingly, this simplifies the signature, improves clarity, and is comparably fast).
  Update the docs to reflect a previous change to the function name.
  Add an example to the docs showing how to override the default __repr__ method.
........
  r58976 | raymond.hettinger | 2007-11-14 18:55:42 -0800 (Wed, 14 Nov 2007) | 1 line

  Small improvement to the implementation of __replace__().
........
  r58977 | raymond.hettinger | 2007-11-14 18:58:20 -0800 (Wed, 14 Nov 2007) | 1 line

  Fixup example in docs.
........
  r58978 | raymond.hettinger | 2007-11-14 19:16:09 -0800 (Wed, 14 Nov 2007) | 1 line

  Example of multiple replacements.
........
  r58998 | raymond.hettinger | 2007-11-15 14:39:34 -0800 (Thu, 15 Nov 2007) | 1 line

  Add example for use cases requiring default values.
........
  r59000 | bill.janssen | 2007-11-15 15:03:03 -0800 (Thu, 15 Nov 2007) | 1 line

  add the certificate for the Python SVN repository for testing SSL
........
  r59004 | guido.van.rossum | 2007-11-15 16:24:44 -0800 (Thu, 15 Nov 2007) | 8 lines

  A patch from issue 1378 by roudkerk:

  Currently on Windows set_error() make use of a large array which maps
  socket error numbers to error messages.

  This patch removes that array and just lets PyErr_SetExcFromWindowsErr()
  generate the message by using the Win32 function FormatMessage().
........
</content>
</entry>
<entry>
<title>Fix for VS 2008</title>
<updated>2007-11-15T23:37:07Z</updated>
<author>
<name>Christian Heimes</name>
<email>christian@cheimes.de</email>
</author>
<published>2007-11-15T23:37:07Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=b61506989edc59736910434079f9247a0d57e945'/>
<id>urn:sha1:b61506989edc59736910434079f9247a0d57e945</id>
<content type='text'>
Although WS2_32.dll doesn't have inet_pton the definition conflicts with ws2tcpip.h.
</content>
</entry>
<entry>
<title>Merging the py3k-pep3137 branch back into the py3k branch.</title>
<updated>2007-11-06T21:34:58Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2007-11-06T21:34:58Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=98297ee7815939b124156e438b22bd652d67b5db'/>
<id>urn:sha1:98297ee7815939b124156e438b22bd652d67b5db</id>
<content type='text'>
No detailed change log; just check out the change log for the py3k-pep3137
branch.  The most obvious changes:

  - str8 renamed to bytes (PyString at the C level);
  - bytes renamed to buffer (PyBytes at the C level);
  - PyString and PyUnicode are no longer compatible.

I.e. we now have an immutable bytes type and a mutable bytes type.

The behavior of PyString was modified quite a bit, to make it more
bytes-like.  Some changes are still on the to-do list.
</content>
</entry>
<entry>
<title>Fixing the spelling of "writeable" to "writable", particularly PyBUF_WRITEABLE.</title>
<updated>2007-09-17T17:55:36Z</updated>
<author>
<name>Sean Reifscheider</name>
<email>jafo@tummy.com</email>
</author>
<published>2007-09-17T17:55:36Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=54cf12b625397ff52e30efd9b14f0b61edfdfd9d'/>
<id>urn:sha1:54cf12b625397ff52e30efd9b14f0b61edfdfd9d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>merge this from trunk:</title>
<updated>2007-09-09T23:55:55Z</updated>
<author>
<name>Gregory P. Smith</name>
<email>greg@mad-scientist.com</email>
</author>
<published>2007-09-09T23:55:55Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=c111d9fbbd1217147c3e1ee3374a0c87a8b94c93'/>
<id>urn:sha1:c111d9fbbd1217147c3e1ee3374a0c87a8b94c93</id>
<content type='text'>
r58067 | gregory.p.smith | 2007-09-09 16:36:46 -0700 (Sun, 09 Sep 2007) | 22 lin
es

Change socket.error to inherit from IOError rather than being a stand
alone class.  This addresses the primary concern in

 http://bugs.python.org/issue1706815

python-dev discussion here:

 http://mail.python.org/pipermail/python-dev/2007-July/073749.html

I chose IOError rather than EnvironmentError as the base class since
socket objects are often used as transparent duck typed file objects
in code already prepared to deal with IOError exceptions.

also a minor fix:

 urllib2 - fix a couple places where IOError was raised rather than URLError.
           for better or worse, URLError already inherits from IOError so
           this won't break any existing code.

 test_urllib2net - replace bad ftp urls.
</content>
</entry>
</feed>
