- 09 Jun, 2008 5 commits
-
-
Raymond Hettinger authored
-
Raymond Hettinger authored
-
Raymond Hettinger authored
-
Gregory P. Smith authored
http://mail.python.org/pipermail/python-dev/2008-June/079988.html Python 2.6 should stick with PyString_* in its codebase. The PyBytes_* names in the spirit of 3.0 are available via a #define only. See the email thread.
-
Raymond Hettinger authored
-
- 08 Jun, 2008 6 commits
-
-
Benjamin Peterson authored
-
Benjamin Peterson authored
-
Benjamin Peterson authored
-
Georg Brandl authored
-
Georg Brandl authored
-
Benjamin Peterson authored
-
- 07 Jun, 2008 9 commits
-
-
Benjamin Peterson authored
-
Georg Brandl authored
Add a note about using the new AST module.
-
Georg Brandl authored
-
Georg Brandl authored
-
Georg Brandl authored
-
Georg Brandl authored
-
Georg Brandl authored
-
Georg Brandl authored
to ease standalone use of the algorithm.
-
Facundo Batista authored
more robust.
-
- 06 Jun, 2008 11 commits
-
-
Travis E. Oliphant authored
-
Travis E. Oliphant authored
-
Raymond Hettinger authored
-
Ronald Oussoren authored
-
Thomas Heller authored
It would be great if someone could review both sematics, markup, and spelling, and correct the versionadded and versionchanges markers.
-
Thomas Heller authored
-
Thomas Heller authored
PyDict_Get/SetItemString.
-
Georg Brandl authored
-
Thomas Heller authored
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.
-
Georg Brandl authored
-
Neal Norwitz authored
(I didn't regen configure, since I don't have a working autoconf.)
-
- 05 Jun, 2008 9 commits
-
-
Andrew M. Kuchling authored
-
Andrew M. Kuchling authored
-
Andrew M. Kuchling authored
-
Benjamin Peterson authored
-
Benjamin Peterson authored
-
Thomas Heller authored
for ctypes instances. Closes issue #2404.
-
Thomas Heller authored
for ctypes instances. Closes issue #2404.
-
Thomas Heller authored
-
Ronald Oussoren authored
This patch adds a new configure argument on OSX: --with-universal-archs=[32-bit|64-bit|all] When used with the --enable-universalsdk option this controls which CPU architectures are includes in the framework. The default is 32-bit, meaning i386 and ppc. The most useful alternative is 'all', which includes all 4 CPU architectures supported by MacOS X (i386, ppc, x86_64 and ppc64). This includes limited support for the Carbon bindings in 64-bit mode as well, limited because (a) I haven't done extensive testing and (b) a large portion of the Carbon API's aren't available in 64-bit mode anyway. I've also duplicated a feature of Apple's build of python: setting the environment variable 'ARCHFLAGS' controls the '-arch' flags used for building extensions using distutils.
-