cpython/Modules
Thomas Heller 9cac7b6117 Merged revisions 63977 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r63977 | thomas.heller | 2008-06-06 10:33:46 +0200 (Fri, 06 Jun 2008) | 31 lines

  Issue #1798: Add ctypes calling convention that allows safe access of errno.

  ctypes maintains thread-local storage that has space for two error
  numbers: private copies of the system 'errno' value and, on Windows,
  the system error code accessed by the GetLastError() and
  SetLastError() api functions.

  Foreign functions created with CDLL(..., use_errno=True), when called,
  swap the system 'errno' value with the private copy just before the
  actual function call, and swapped again immediately afterwards.  The
  'use_errno' parameter defaults to False, in this case 'ctypes_errno'
  is not touched.

  On Windows, foreign functions created with CDLL(...,
  use_last_error=True) or WinDLL(..., use_last_error=True) swap the
  system LastError value with the ctypes private copy.

  The values are also swapped immeditately before and after ctypes
  callback functions are called, if the callbacks are constructed using
  the new optional use_errno parameter set to True: CFUNCTYPE(...,
  use_errno=TRUE) or WINFUNCTYPE(..., use_errno=True).

  New ctypes functions are provided to access the ctypes private copies
  from Python:

  - ctypes.set_errno(value) and ctypes.set_last_error(value) store
    'value' in the private copy and returns the previous value.

  - ctypes.get_errno() and ctypes.get_last_error() returns the current
    ctypes private copies value.
........
2008-06-06 09:31:40 +00:00
..
_ctypes Merged revisions 63977 via svnmerge from 2008-06-06 09:31:40 +00:00
_sqlite Renamed PyString to PyBytes 2008-05-26 13:28:38 +00:00
cjkcodecs Renamed PyString to PyBytes 2008-05-26 13:28:38 +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
Setup.config.in Rename thread to _thread and dummy_thread to _dummy_thread. Issue #2875. 2008-05-25 13:05:15 +00:00
Setup.dist Create the dbm package from PEP 3108. #2881. 2008-05-26 10:29:35 +00:00
_bisectmodule.c Cleanup: Replaced most PyInt_ aliases with PyLong_ and disabled the aliases in intobject.h 2007-12-02 14:31:20 +00:00
_bsddb.c Renamed PyString to PyBytes 2008-05-26 13:28:38 +00:00
_bytesio.c Renamed PyString to PyBytes 2008-05-26 13:28:38 +00:00
_codecsmodule.c Renamed PyString to PyBytes 2008-05-26 13:28:38 +00:00
_collectionsmodule.c Merged revisions 60481,60485,60489-60492,60494-60496,60498-60499,60501-60503,60505-60506,60508-60509,60523-60524,60532,60543,60545,60547-60548,60552,60554,60556-60559,60561-60562,60569,60571-60572,60574,60576-60583,60585-60586,60589,60591,60594-60595,60597-60598,60600-60601,60606-60612,60615,60617,60619-60621,60623-60625,60627-60629,60631,60633,60635,60647,60650,60652,60654,60656,60658-60659,60664-60666,60668-60670,60672,60676,60678,60680-60683,60685-60686,60688,60690,60692-60694,60697-60700,60705-60706,60708,60711,60714,60720,60724-60730,60732,60735-60751 via svnmerge from 2008-02-12 22:59:25 +00:00
_csv.c #1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFCNT. 2007-12-19 02:45:37 +00:00
_curses_panel.c #1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFCNT. 2007-12-19 02:45:37 +00:00
_cursesmodule.c Renamed PyString to PyBytes 2008-05-26 13:28:38 +00:00
_dbmmodule.c Make db modules' error classes inherit IOError. 2008-05-28 08:43:17 +00:00
_elementtree.c Renamed PyString to PyBytes 2008-05-26 13:28:38 +00:00
_fileio.c Renamed PyString to PyBytes 2008-05-26 13:28:38 +00:00
_functoolsmodule.c #1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFCNT. 2007-12-19 02:45:37 +00:00
_gdbmmodule.c Make db modules' error classes inherit IOError. 2008-05-28 08:43:17 +00:00
_gestalt.c add the gestalt module back as _gestalt 2008-05-29 21:09:51 +00:00
_hashopenssl.c Renamed PyString to PyBytes 2008-05-26 13:28:38 +00:00
_heapqmodule.c Merged revisions 61239-61249,61252-61257,61260-61264,61269-61275,61278-61279,61285-61286,61288-61290,61298,61303-61305,61312-61314,61317,61329,61332,61344,61350-61351,61363-61376,61378-61379,61382-61383,61387-61388,61392,61395-61396,61402-61403 via svnmerge from 2008-03-16 00:07:10 +00:00
_json.c Renamed PyString to PyBytes 2008-05-26 13:28:38 +00:00
_localemodule.c Fix another buffer overflow. 2008-03-08 13:39:58 +00:00
_lsprof.c #1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFCNT. 2007-12-19 02:45:37 +00:00
_randommodule.c Remove defunct parts of the random module 2008-01-13 23:40:30 +00:00
_sre.c Renamed PyString to PyBytes 2008-05-26 13:28:38 +00:00
_ssl.c Renamed PyString to PyBytes 2008-05-26 13:28:38 +00:00
_struct.c Renamed PyString to PyBytes 2008-05-26 13:28:38 +00:00
_testcapimodule.c Fixed refleak in _testcapi.test_s_code. 2008-05-15 22:06:59 +00:00
_threadmodule.c Create the dbm package from PEP 3108. #2881. 2008-05-26 10:29:35 +00:00
_tkinter.c Renamed PyString to PyBytes 2008-05-26 13:28:38 +00:00
_weakref.c #1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFCNT. 2007-12-19 02:45:37 +00:00
addrinfo.h Cruft removal: 2006-12-28 04:47:50 +00:00
ar_beos
arraymodule.c Renamed PyString to PyBytes 2008-05-26 13:28:38 +00:00
atexitmodule.c missing docstrings 2007-08-06 20:59:28 +00:00
audioop.c Renamed PyString to PyBytes 2008-05-26 13:28:38 +00:00
binascii.c Renamed PyString to PyBytes 2008-05-26 13:28:38 +00:00
bsddb.h Merged revisions 59488-59511 via svnmerge from 2007-12-15 01:27:15 +00:00
bz2module.c Renamed PyString to PyBytes 2008-05-26 13:28:38 +00:00
cmathmodule.c Merged revisions 63361-63373,63375,63377-63380 via svnmerge from 2008-05-16 18:15:12 +00:00
config.c.in Merged revisions 62260-62261,62266,62271,62277-62279,62289-62290,62293-62298,62302-62306,62308,62311,62313-62315,62319-62321 via svnmerge from 2008-04-13 13:53:33 +00:00
cryptmodule.c Merged revisions 46753-51188 via svnmerge from 2006-08-11 14:57:12 +00:00
datetimemodule.c Renamed PyString to PyBytes 2008-05-26 13:28:38 +00:00
errnomodule.c Some VS 6.0 compatibility fixes from Hirokazu Yamamoto which are also useful for later versions of MSVC. VS6 claims that fortran is a reserved word 2008-01-04 13:33:00 +00:00
fcntlmodule.c Renamed PyString to PyBytes 2008-05-26 13:28:38 +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 Merged revisions 60481,60485,60489-60492,60494-60496,60498-60499,60501-60503,60505-60506,60508-60509,60523-60524,60532,60543,60545,60547-60548,60552,60554,60556-60559,60561-60562,60569,60571-60572,60574,60576-60583,60585-60586,60589,60591,60594-60595,60597-60598,60600-60601,60606-60612,60615,60617,60619-60621,60623-60625,60627-60629,60631,60633,60635,60647,60650,60652,60654,60656,60658-60659,60664-60666,60668-60670,60672,60676,60678,60680-60683,60685-60686,60688,60690,60692-60694,60697-60700,60705-60706,60708,60711,60714,60720,60724-60730,60732,60736,60742,60744,60746,60748,60750-60751,60753,60756-60757,60759-60761,60763-60764,60766,60769-60770,60774-60784,60787-60845 via svnmerge from 2008-02-16 07:38:31 +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 Change command line processing API to use wchar_t. 2008-04-05 20:41:37 +00:00
grpmodule.c Cleanup: Replaced most PyInt_ aliases with PyLong_ and disabled the aliases in intobject.h 2007-12-02 14:31:20 +00:00
itertoolsmodule.c Fix a refleak 2008-04-01 07:37:58 +00:00
ld_so_aix SF Bug # 941346, AIX shared library fix 2005-10-03 03:57:09 +00:00
ld_so_beos Remove a hard coded Python version, and a now incorrect relative path. Closes 2001-02-16 03:27:35 +00:00
main.c Remove meaning of -ttt, but still accept -t option on cmdline for compatibility. 2008-06-04 13:06:58 +00:00
makesetup Merged revisions 57778-58052 via svnmerge from 2007-09-08 17:39:28 +00:00
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 Merged revisions 63542-63544,63546,63553,63563-63564,63567,63569,63576 via svnmerge from 2008-05-26 17:36:47 +00:00
md5module.c Renamed PyString to PyBytes 2008-05-26 13:28:38 +00:00
mmapmodule.c Renamed PyString to PyBytes 2008-05-26 13:28:38 +00:00
nismodule.c Use s# instead of t# for nis_match. 2007-08-30 10:21:51 +00:00
operator.c Remove __{get,set,del}slice__ dingleberries. 2008-03-17 18:02:30 +00:00
ossaudiodev.c Renamed PyBytes to PyByteArray 2008-05-26 13:22:05 +00:00
parsermodule.c Rename copy_reg module to copyreg. 2008-05-11 08:55:36 +00:00
posixmodule.c Renamed PyString to PyBytes 2008-05-26 13:28:38 +00:00
pwdmodule.c Cleanup: Replaced most PyInt_ aliases with PyLong_ and disabled the aliases in intobject.h 2007-12-02 14:31:20 +00:00
pyexpat.c Renamed PyString to PyBytes 2008-05-26 13:28:38 +00:00
python.c Change command line processing API to use wchar_t. 2008-04-05 20:41:37 +00:00
readline.c Cleanup: Replaced most PyInt_ aliases with PyLong_ and disabled the aliases in intobject.h 2007-12-02 14:31:20 +00:00
resource.c Cleanup: Replaced most PyInt_ aliases with PyLong_ and disabled the aliases in intobject.h 2007-12-02 14:31:20 +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 Renamed PyString to PyBytes 2008-05-26 13:28:38 +00:00
sha1module.c Renamed PyString to PyBytes 2008-05-26 13:28:38 +00:00
sha256module.c Renamed PyString to PyBytes 2008-05-26 13:28:38 +00:00
sha512module.c Renamed PyString to PyBytes 2008-05-26 13:28:38 +00:00
signalmodule.c Merged revisions 61849 via svnmerge from 2008-03-24 14:05:07 +00:00
socketmodule.c Renamed PyString to PyBytes 2008-05-26 13:28:38 +00:00
socketmodule.h Copied doc for reload() from trunk's function.rst to imp.rst 2008-01-07 17:19:16 +00:00
spwdmodule.c Cleanup: Replaced most PyInt_ aliases with PyLong_ and disabled the aliases in intobject.h 2007-12-02 14:31:20 +00:00
sre.h Merged revisions 46753-51188 via svnmerge from 2006-08-11 14:57:12 +00:00
sre_constants.h Implemented non-recursive SRE matching. 2003-10-17 22:13:16 +00:00
symtablemodule.c Hide list comp variables and support set comprehensions 2007-04-15 12:05:43 +00:00
syslogmodule.c Merged revisions 60990-61002 via svnmerge from 2008-02-23 18:30:17 +00:00
termios.c Renamed PyString to PyBytes 2008-05-26 13:28:38 +00:00
testcapi_long.h Fix error in comment, and in test_long_api and test_longlong_api remove 2001-06-16 08:10:13 +00:00
timemodule.c Merged revisions 62177-62178,62180-62193 via svnmerge from 2008-04-07 03:17:54 +00:00
tkappinit.c Remove warning about implicit declaration of strcmp() 2004-06-13 20:29:55 +00:00
unicodedata.c Change all functions that expect one unicode character to accept a pair of 2008-06-03 11:45:02 +00:00
unicodedata_db.h Update Unicode database to Unicode 4.1. 2006-03-09 23:38:20 +00:00
unicodename_db.h Update Unicode database to Unicode 4.1. 2006-03-09 23:38:20 +00:00
xxmodule.c #1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFCNT. 2007-12-19 02:45:37 +00:00
xxsubtype.c Cleanup: Replaced most PyInt_ aliases with PyLong_ and disabled the aliases in intobject.h 2007-12-02 14:31:20 +00:00
yuv.h
yuvconvert.c
zipimport.c Renamed PyBytes to PyByteArray 2008-05-26 13:22:05 +00:00
zlibmodule.c Renamed PyBytes to PyByteArray 2008-05-26 13:22:05 +00:00