0
0
mirror of https://github.com/python/cpython.git synced 2024-12-01 11:15:56 +01:00
cpython/Modules
Thomas Wouters ed03b4121e Merge the trunk changes in. Breaks socket.ssl for now.
Merged revisions 57392-57619 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r57395 | georg.brandl | 2007-08-24 19:23:23 +0200 (Fri, 24 Aug 2007) | 2 lines

  Bug #1011: fix rfc822.Message.getheader docs.
........
  r57397 | georg.brandl | 2007-08-24 19:38:49 +0200 (Fri, 24 Aug 2007) | 2 lines

  Patch #1006: port test_winreg to unittest.
........
  r57398 | georg.brandl | 2007-08-24 19:46:54 +0200 (Fri, 24 Aug 2007) | 2 lines

  Fix #1012: wrong URL to :mod:`site` in install/index.rst.
........
  r57399 | georg.brandl | 2007-08-24 20:07:52 +0200 (Fri, 24 Aug 2007) | 2 lines

  Patch #1008: port test_signal to unittest.
........
  r57400 | georg.brandl | 2007-08-24 20:22:54 +0200 (Fri, 24 Aug 2007) | 2 lines

  Port test_frozen to unittest.
........
  r57401 | georg.brandl | 2007-08-24 20:27:43 +0200 (Fri, 24 Aug 2007) | 2 lines

  Document new utility functions in test_support.
........
  r57402 | georg.brandl | 2007-08-24 20:30:06 +0200 (Fri, 24 Aug 2007) | 2 lines

  Remove test_rgbimg output file, there is no test_rgbimg.py.
........
  r57403 | georg.brandl | 2007-08-24 20:35:27 +0200 (Fri, 24 Aug 2007) | 2 lines

  Remove output file for test_ossaudiodev, also properly close the dsp object.
........
  r57404 | georg.brandl | 2007-08-24 20:46:27 +0200 (Fri, 24 Aug 2007) | 2 lines

  Convert test_linuxaudiodev to unittest. Fix a wrong finally clause in test_ossaudiodev.
........
  r57406 | collin.winter | 2007-08-24 21:13:58 +0200 (Fri, 24 Aug 2007) | 1 line

  Convert test_pkg to use unittest.
........
  r57408 | georg.brandl | 2007-08-24 21:22:34 +0200 (Fri, 24 Aug 2007) | 2 lines

  Catch the correct errors.
........
  r57409 | georg.brandl | 2007-08-24 21:33:53 +0200 (Fri, 24 Aug 2007) | 2 lines

  Port test_class to unittest. Patch #1671298.
........
  r57415 | collin.winter | 2007-08-24 23:09:42 +0200 (Fri, 24 Aug 2007) | 1 line

  Make test_structmembers pass when run with regrtests's -R flag.
........
  r57455 | nick.coghlan | 2007-08-25 06:32:07 +0200 (Sat, 25 Aug 2007) | 1 line

  Revert misguided attempt at fixing incompatibility between -m and -i switches (better fix coming soon)
........
  r57456 | nick.coghlan | 2007-08-25 06:35:54 +0200 (Sat, 25 Aug 2007) | 1 line

  Revert compile.c changes that shouldn't have been included in previous checkin
........
  r57461 | nick.coghlan | 2007-08-25 12:50:41 +0200 (Sat, 25 Aug 2007) | 1 line

  Fix bug 1764407 - the -i switch now does the right thing when using the -m switch
........
  r57464 | guido.van.rossum | 2007-08-25 17:08:43 +0200 (Sat, 25 Aug 2007) | 4 lines

  Server-side SSL and certificate validation, by Bill Janssen.
  While cleaning up Bill's C style, I may have cleaned up some code
  he didn't touch as well (in _ssl.c).
........
  r57465 | neal.norwitz | 2007-08-25 18:41:36 +0200 (Sat, 25 Aug 2007) | 3 lines

  Try to get this to build with Visual Studio by moving all the variable
  declarations to the beginning of a scope.
........
  r57466 | neal.norwitz | 2007-08-25 18:54:38 +0200 (Sat, 25 Aug 2007) | 1 line

  Fix test so it is skipped properly if there is no SSL support.
........
  r57467 | neal.norwitz | 2007-08-25 18:58:09 +0200 (Sat, 25 Aug 2007) | 2 lines

  Fix a few more variables to try to get this to compile with Visual Studio.
........
  r57473 | neal.norwitz | 2007-08-25 19:25:17 +0200 (Sat, 25 Aug 2007) | 1 line

  Try to get this test to pass for systems that do not have SO_REUSEPORT
........
  r57482 | gregory.p.smith | 2007-08-26 02:26:00 +0200 (Sun, 26 Aug 2007) | 7 lines

  keep setup.py from listing unneeded hash modules (_md5, _sha*) as
  missing when they were not built because _hashlib with openssl provided
  their functionality instead.

  don't build bsddb185 if bsddb was built.
........
  r57483 | neal.norwitz | 2007-08-26 03:08:16 +0200 (Sun, 26 Aug 2007) | 1 line

  Fix typo in docstring (missing c in reacquire)
........
  r57484 | neal.norwitz | 2007-08-26 03:42:03 +0200 (Sun, 26 Aug 2007) | 2 lines

  Spell check (also americanify behaviour, it's almost 3 times as common)
........
  r57503 | neal.norwitz | 2007-08-26 08:29:57 +0200 (Sun, 26 Aug 2007) | 4 lines

  Reap children before the test starts so hopefully SocketServer
  won't find any old children left around which causes an exception
  in collect_children() and the test to fail.
........
  r57510 | neal.norwitz | 2007-08-26 20:50:39 +0200 (Sun, 26 Aug 2007) | 1 line

  Fail gracefully if the cert files cannot be created
........
  r57513 | guido.van.rossum | 2007-08-26 21:35:09 +0200 (Sun, 26 Aug 2007) | 4 lines

  Bill Janssen wrote:
  Here's a patch which makes test_ssl a better player in the buildbots
  environment.  I deep-ended on "try-except-else" clauses.
........
  r57518 | neal.norwitz | 2007-08-26 23:40:16 +0200 (Sun, 26 Aug 2007) | 1 line

  Get the test passing by commenting out some writes (should they be removed?)
........
  r57522 | neal.norwitz | 2007-08-27 00:16:23 +0200 (Mon, 27 Aug 2007) | 3 lines

  Catch IOError for when the device file doesn't exist or the user doesn't have
  permission to write to the device.
........
  r57524 | neal.norwitz | 2007-08-27 00:20:03 +0200 (Mon, 27 Aug 2007) | 5 lines

  Another patch from Bill Janssen that:
  1)  Fixes the bug that two class names are initial-lower-case.
  2)  Replaces the poll waiting for the server to become ready with
      a threading.Event signal.
........
  r57536 | neal.norwitz | 2007-08-27 02:58:33 +0200 (Mon, 27 Aug 2007) | 1 line

  Stop using string.join (from the module) to ease upgrade to py3k
........
  r57537 | neal.norwitz | 2007-08-27 03:03:18 +0200 (Mon, 27 Aug 2007) | 1 line

  Make a utility function for handling (printing) an error
........
  r57538 | neal.norwitz | 2007-08-27 03:15:33 +0200 (Mon, 27 Aug 2007) | 4 lines

  If we can't create a certificate, print a warning, but don't fail the test.
  Modified patch from what Bill Janssen sent on python-3000.
........
  r57539 | facundo.batista | 2007-08-27 03:15:34 +0200 (Mon, 27 Aug 2007) | 7 lines


  Ignore test failures caused by 'resource temporarily unavailable'
  exceptions raised in the test server thread, since SimpleXMLRPCServer
  does not gracefully handle them.  Changed number of requests handled
  by tests server thread to one (was 2) because no tests require more
  than one request. [GSoC - Alan McIntyre]
........
  r57561 | guido.van.rossum | 2007-08-27 19:19:42 +0200 (Mon, 27 Aug 2007) | 8 lines

  > Regardless, building a fixed test certificate and checking it in sounds like
  > the better option.  Then the openssl command in the test code can be turned
  > into a comment describing how the test data was pregenerated.

  Here's a patch that does that.

  Bill
........
  r57568 | guido.van.rossum | 2007-08-27 20:42:23 +0200 (Mon, 27 Aug 2007) | 26 lines

  > Some of the code sets the error string in this directly before
  > returning NULL, and other pieces of the code call PySSL_SetError,
  > which creates the error string.  I think some of the places which set
  > the string directly probably shouldn't; instead, they should call
  > PySSL_SetError to cons up the error name directly from the err code.
  > However, PySSL_SetError only works after the construction of an ssl
  > object, which means it can't be used there...  I'll take a longer look
  > at it and see if there's a reasonable fix.

  Here's a patch which addresses this.  It also fixes the indentation in
  PySSL_SetError, bringing it into line with PEP 7, fixes a compile warning
  about one of the OpenSSL macros, and makes the namespace a bit more
  consistent.  I've tested it on FC 7 and OS X 10.4.

  % ./python ./Lib/test/regrtest.py -R :1: -u all test_ssl
  test_ssl
  beginning 6 repetitions
  123456
  ......
  1 test OK.
  [29244 refs]
  %

  [GvR: slightly edited to enforce 79-char line length, even if it required
   violating the style guide.]
........
  r57570 | guido.van.rossum | 2007-08-27 21:11:11 +0200 (Mon, 27 Aug 2007) | 2 lines

  Patch 10124 by Bill Janssen, docs for the new ssl code.
........
  r57574 | guido.van.rossum | 2007-08-27 22:51:00 +0200 (Mon, 27 Aug 2007) | 3 lines

  Patch # 1739906 by Christian Heimes -- add reduce to functools (importing
  it from __builtin__).
........
  r57575 | guido.van.rossum | 2007-08-27 22:52:10 +0200 (Mon, 27 Aug 2007) | 2 lines

  News about functools.reduce.
........
  r57611 | georg.brandl | 2007-08-28 10:29:08 +0200 (Tue, 28 Aug 2007) | 2 lines

  Document rev. 57574.
........
  r57612 | sean.reifschneider | 2007-08-28 11:07:54 +0200 (Tue, 28 Aug 2007) | 2 lines

  Adding basic imputil documentation.
........
  r57614 | georg.brandl | 2007-08-28 12:48:18 +0200 (Tue, 28 Aug 2007) | 2 lines

  Fix some glitches.
........
  r57616 | lars.gustaebel | 2007-08-28 14:31:09 +0200 (Tue, 28 Aug 2007) | 5 lines

  TarFile.__init__() no longer fails if no name argument is passed and
  the fileobj argument has no usable name attribute (e.g. StringIO).

  (will backport to 2.5)
........
  r57619 | thomas.wouters | 2007-08-28 17:28:19 +0200 (Tue, 28 Aug 2007) | 22 lines


  Improve extended slicing support in builtin types and classes. Specifically:

   - Specialcase extended slices that amount to a shallow copy the same way as
     is done for simple slices, in the tuple, string and unicode case.

   - Specialcase step-1 extended slices to optimize the common case for all
     involved types.

   - For lists, allow extended slice assignment of differing lengths as long
     as the step is 1. (Previously, 'l[:2:1] = []' failed even though
     'l[:2] = []' and 'l[:2:None] = []' do not.)

   - Implement extended slicing for buffer, array, structseq, mmap and
     UserString.UserString.

   - Implement slice-object support (but not non-step-1 slice assignment) for
     UserString.MutableString.

   - Add tests for all new functionality.
........
2007-08-28 21:37:11 +00:00
..
_ctypes Merged in py3k-buffer branch to main line. All objects now use the buffer protocol in PEP 3118. 2007-08-18 11:21:56 +00:00
_sqlite Fix automatic replacing mistake. 2007-08-11 15:39:18 +00:00
cjkcodecs Fix a couple of warnings 2007-08-26 05:32:41 +00:00
expat Remove support for BeOS 2007-08-17 12:57:41 +00:00
zlib Remove RISCOS support 2007-08-16 14:35:24 +00:00
_bisectmodule.c More unconsting. 2006-02-27 17:20:04 +00:00
_bsddb.c Change to use the new buffer API instead of bytes objects for both keys and 2007-08-28 08:23:15 +00:00
_codecsmodule.c Apply SF patch #1775604: This adds three new codecs (utf-32, utf-32-le and 2007-08-16 21:55:45 +00:00
_collectionsmodule.c Kill remaining tp_print definitions. 2007-08-07 19:58:47 +00:00
_csv.c Fix the last remaining test_csv failure. 2007-08-07 23:59:30 +00:00
_curses_panel.c Convert a bunch of constant strings in C to unicode. 2007-08-23 21:42:55 +00:00
_cursesmodule.c Return unicode for a key name from a wide character 2007-08-24 00:06:36 +00:00
_elementtree.c SF patch # 1769767, get test_xml_etree_c working. More conversions are probably needed. 2007-08-08 06:56:02 +00:00
_fileio.c Remove a bogus comment based on the code above. 2007-08-16 05:18:31 +00:00
_functoolsmodule.c Merged revisions 56467-56482 via svnmerge from 2007-07-21 17:22:18 +00:00
_hashopenssl.c Pass PyBUF_CHARACTER instead of PyBUF_SIMPLE to PyObject_GetBuffer(). 2007-08-26 19:14:15 +00:00
_heapqmodule.c Use UTF-8 for a docstring that contains non-ASCII chars. 2007-08-23 23:58:43 +00:00
_hotshot.c Merged revisions 56492-56752 via svnmerge from 2007-08-05 15:29:28 +00:00
_localemodule.c Use unicode 2007-08-26 07:21:45 +00:00
_lsprof.c Fix warning 2007-08-27 02:10:06 +00:00
_randommodule.c Remove _PyObject_Del 2007-08-19 22:48:23 +00:00
_sre.c Use unicode 2007-08-26 03:55:15 +00:00
_ssl.c Merge the trunk changes in. Breaks socket.ssl for now. 2007-08-28 21:37:11 +00:00
_struct.c Merged revisions 56467-56482 via svnmerge from 2007-07-21 17:22:18 +00:00
_testcapimodule.c Use unicode strings 2007-08-25 00:49:05 +00:00
_tkinter.c Tkinter binding involving Control-spacebar raises unicode error 2007-08-27 01:55:21 +00:00
_typesmodule.c Merged revisions 56467-56482 via svnmerge from 2007-07-21 17:22:18 +00:00
_weakref.c Merged revisions 56467-56482 via svnmerge from 2007-07-21 17:22:18 +00:00
addrinfo.h Cruft removal: 2006-12-28 04:47:50 +00:00
ar_beos
arraymodule.c Merge the trunk changes in. Breaks socket.ssl for now. 2007-08-28 21:37:11 +00:00
atexitmodule.c missing docstrings 2007-08-06 20:59:28 +00:00
audioop.c Make audioop and its tests use bytes throughout. 2007-07-20 07:36:26 +00:00
binascii.c Remove unused variable. 2007-08-23 18:31:24 +00:00
bz2module.c Convert a bunch of constant strings in C to unicode. 2007-08-23 21:42:55 +00:00
cmathmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
config.c.in Somehow this contained a bogus reference to "exceptions" which caused 2007-04-07 03:14:46 +00:00
cryptmodule.c Merged revisions 46753-51188 via svnmerge from 2006-08-11 14:57:12 +00:00
cStringIO.c Merged revisions 56782-56847 via svnmerge from 2007-08-09 14:26:58 +00:00
datetimemodule.c Fix some refleaks (and format/error checking) 2007-08-27 04:58:38 +00:00
dbmmodule.c The dbm module should use bytes for keys. This makes test_shelve pass. 2007-08-14 15:42:45 +00:00
dlmodule.c Merged revisions 56467-56482 via svnmerge from 2007-07-21 17:22:18 +00:00
errnomodule.c Use unicode for the errno.errorcode names 2007-08-24 00:10:00 +00:00
fcntlmodule.c Merged revisions 46753-51188 via svnmerge from 2006-08-11 14:57:12 +00:00
fpectlmodule.c Merged revisions 46753-51188 via svnmerge from 2006-08-11 14:57:12 +00:00
fpetestmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
gc_weakref.txt SF 1055820: weakref callback vs gc vs threads 2004-10-30 23:09:22 +00:00
gcmodule.c Convert a bunch of constant strings in C to unicode. 2007-08-23 21:42:55 +00:00
gdbmmodule.c Change module to produce and consume bytes. 2007-08-11 19:28:53 +00:00
getaddrinfo.c SF patch #1670209, Remove Py_PROTO from socket by Pete Shinners. 2007-02-27 19:06:23 +00:00
getbuildinfo.c Merged revisions 55817-55961 via svnmerge from 2007-06-13 18:07:49 +00:00
getnameinfo.c SF patch #1670209, Remove Py_PROTO from socket by Pete Shinners. 2007-02-27 19:06:23 +00:00
getpath.c Merged revisions 53952-54987 via svnmerge from 2007-04-27 19:54:29 +00:00
grpmodule.c Use unicode 2007-08-26 02:54:31 +00:00
itertoolsmodule.c Merged revisions 56467-56482 via svnmerge from 2007-07-21 17:22:18 +00:00
ld_so_aix SF Bug # 941346, AIX shared library fix 2005-10-03 03:57:09 +00:00
ld_so_beos
main.c Merge the trunk changes in. Breaks socket.ssl for now. 2007-08-28 21:37:11 +00:00
makesetup
makexp_aix - Changes donated by Elemental Security to make it work on AIX 5.3 2005-09-14 18:09:42 +00:00
mathmodule.c Fix math.ceil() and math.floor() to fall back to __ceil__ and __floor__ 2007-08-23 22:56:55 +00:00
mmapmodule.c Merge the trunk changes in. Breaks socket.ssl for now. 2007-08-28 21:37:11 +00:00
nismodule.c Use unicode (hope it's right, I can't test it) 2007-08-26 21:43:00 +00:00
operator.c Merged revisions 56467-56482 via svnmerge from 2007-07-21 17:22:18 +00:00
ossaudiodev.c Use unicode 2007-08-26 04:57:08 +00:00
parsermodule.c Use unicode and remove support for some uses of str8. 2007-08-26 04:51:28 +00:00
posixmodule.c posix.confname(): enforce that names as str instances. 2007-08-27 23:24:46 +00:00
pwdmodule.c Use unicode for password modules 2007-08-24 23:26:23 +00:00
pyexpat.c Use unicode 2007-08-25 17:20:32 +00:00
python.c
readline.c Merged revisions 53952-54987 via svnmerge from 2007-04-27 19:54:29 +00:00
resource.c Four months of trunk changes (including a few releases...) 2006-12-13 04:49:30 +00:00
rotatingtree.c randombits(): Stop compiler warning about mixing 2006-02-15 03:01:30 +00:00
rotatingtree.h Much-needed merge (using svnmerge.py this time) of trunk changes into p3yk. 2006-05-27 19:21:47 +00:00
selectmodule.c Remove support for BeOS 2007-08-17 12:57:41 +00:00
Setup.config.in
Setup.dist cPickle was removed 2007-08-24 02:51:04 +00:00
sha256module.c Use unicode 2007-08-25 08:01:41 +00:00
sha512module.c Use unicode 2007-08-25 08:01:41 +00:00
signalmodule.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
socketmodule.c More changes needed to make things work once bytes and str are truly divorced. 2007-08-27 23:09:25 +00:00
socketmodule.h Remove support for BeOS 2007-08-17 12:57:41 +00:00
spwdmodule.c Use unicode for password modules 2007-08-24 23:26:23 +00:00
sre_constants.h
sre.h Merged revisions 46753-51188 via svnmerge from 2006-08-11 14:57:12 +00:00
symtablemodule.c Hide list comp variables and support set comprehensions 2007-04-15 12:05:43 +00:00
syslogmodule.c Whoops, not sure how I screwed up the name. Now builds and passes the test. 2007-08-25 00:29:58 +00:00
termios.c Check return result from Py_InitModule*(). This API can fail. 2006-01-19 06:09:39 +00:00
testcapi_long.h
threadmodule.c Merged revisions 56467-56482 via svnmerge from 2007-07-21 17:22:18 +00:00
timemodule.c Reorder code and decls so it's compilable with gcc 2.96 (C89). 2007-08-25 03:14:09 +00:00
tkappinit.c Remove warning about implicit declaration of strcmp() 2004-06-13 20:29:55 +00:00
unicodedata_db.h Update Unicode database to Unicode 4.1. 2006-03-09 23:38:20 +00:00
unicodedata.c Merged revisions 56753-56781 via svnmerge from 2007-08-06 23:33:07 +00:00
unicodename_db.h Update Unicode database to Unicode 4.1. 2006-03-09 23:38:20 +00:00
xxmodule.c Use unicode for reference (is there any way to build this module) 2007-08-24 22:49:25 +00:00
xxsubtype.c Merged revisions 56467-56482 via svnmerge from 2007-07-21 17:22:18 +00:00
yuv.h
yuvconvert.c
zipimport.c Use unicode (and bytes as appropriate) 2007-08-26 05:08:21 +00:00
zlibmodule.c Convert a bunch of constant strings in C to unicode. 2007-08-23 21:42:55 +00:00