Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Backport from py3k: Implement the new buffer interface from pep3118 | Thomas Heller | 2008-06-05 | 5 | -24/+455 |
| | | | | for ctypes instances. Closes issue #2404. | ||||
* | Fix preprocessor statement. | Thomas Heller | 2008-06-05 | 1 | -1/+2 |
| | |||||
* | MacOS X: Enable 4-way universal builds | Ronald Oussoren | 2008-06-05 | 52 | -202/+1124 |
| | | | | | | | | | | | | | | | | | | 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. | ||||
* | Fixed complex.__getnewargs__() to not emit another complex object. | Alexandre Vassalotti | 2008-06-04 | 2 | -1/+10 |
| | |||||
* | Revert revisions 63943 and 63942 (Issue #1798: Add ctypes calling | Thomas Heller | 2008-06-04 | 7 | -312/+27 |
| | | | | | | | | convention that allows safe access to errno) This code does not yet work on OS X (__thread storage specifier not available), so i needs a configure check plus a more portable solution. | ||||
* | Fix ctypes.set_errno for gcc. | Thomas Heller | 2008-06-04 | 1 | -2/+4 |
| | |||||
* | Issue #1798: Add ctypes calling convention that allows safe access to | Thomas Heller | 2008-06-04 | 7 | -27/+310 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | errno (and LastError, on Windows). ctypes maintains a module-global, but thread-local, variable that contains an error number; called 'ctypes_errno' for this discussion. This variable is a private copy of the systems 'errno' value; the copy is swapped with the 'errno' variable on several occasions. Foreign functions created with CDLL(..., use_errno=True), when called, swap the values 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. 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). Two new ctypes functions are provided to access the 'ctypes_errno' value from Python: - ctypes.set_errno(value) sets ctypes_errno to 'value', the previous ctypes_errno value is returned. - ctypes.get_errno() returns the current ctypes_errno value. --- On Windows, the same scheme is implemented for the error value which is managed by the GetLastError() and SetLastError() windows api calls. The ctypes functions are 'ctypes.set_last_error(value)' and 'ctypes.get_last_error()', the CDLL and WinDLL optional parameter is named 'use_last_error', defaults to False. --- On Windows, TlsSetValue and TlsGetValue calls are used to provide thread local storage for the variables; ctypes compiled with __GNUC__ uses __thread variables. | ||||
* | Complete revision of new turtle module's docs. | Georg Brandl | 2008-06-04 | 1 | -1783/+1669 |
| | |||||
* | Patch #1513695: New turtle module, with demos. | Martin v. Löwis | 2008-06-04 | 24 | -1029/+7687 |
| | |||||
* | Fix Tkinter sequence passing. #2906. | Georg Brandl | 2008-06-03 | 1 | -1/+7 |
| | |||||
* | make test_mutex more elegant | Benjamin Peterson | 2008-06-03 | 1 | -18/+20 |
| | |||||
* | Change all functions that expect one unicode character to accept a pair of | Walter Dörwald | 2008-06-02 | 2 | -73/+82 |
| | | | | surrogates in narrow builds. Fixes issue #1706460. | ||||
* | Fix the -x flag so that is does work. | Thomas Heller | 2008-06-02 | 1 | -1/+1 |
| | |||||
* | Fix misspelled sys.platform name and misspelled filename. | Thomas Heller | 2008-06-02 | 2 | -2/+2 |
| | |||||
* | Patch #2125: Add GetInteger and GetString methods for | Martin v. Löwis | 2008-06-02 | 3 | -0/+63 |
| | | | | msilib.Record objects. | ||||
* | Fix issue 2782: be less strict about the format string type in strftime. | Gregory P. Smith | 2008-06-02 | 3 | -21/+32 |
| | | | | | Accept unicode and anything else ParseTuple "s#" can deal with. This matches the time.strftime behavior. | ||||
* | Adds a Thread.getIdent() method to provide the _get_ident() value for | Gregory P. Smith | 2008-06-01 | 4 | -2/+28 |
| | | | | any given threading.Thread object. feature request issue 2871. | ||||
* | Make the _H #define's match the header file names. Fix comments to | Gregory P. Smith | 2008-06-01 | 2 | -8/+8 |
| | | | | mention the correct type names. | ||||
* | Deprecate htmllib and sgmllib for 3.0. | Georg Brandl | 2008-06-01 | 8 | -8/+26 |
| | |||||
* | Generate pydoc's topic help from the reST docs via Sphinx' | Georg Brandl | 2008-06-01 | 5 | -136/+284 |
| | | | | new text writer. | ||||
* | Spaces vs. tabs. | Georg Brandl | 2008-06-01 | 1 | -1/+1 |
| | |||||
* | add a warning about bgen being removed | Benjamin Peterson | 2008-06-01 | 2 | -0/+3 |
| | |||||
* | Fix test_sys. | Robert Schuppenies | 2008-06-01 | 1 | -2/+0 |
| | |||||
* | Fix test_descrtut. | Georg Brandl | 2008-06-01 | 1 | -0/+1 |
| | |||||
* | Some style nits. Also clarify in the docstrings what __sizeof__ does. | Georg Brandl | 2008-06-01 | 7 | -18/+18 |
| | |||||
* | Add plain text make target. | Georg Brandl | 2008-06-01 | 2 | -0/+7 |
| | |||||
* | Issue #2898: Added sys.getsizeof() to retrieve size of objects in bytes. | Robert Schuppenies | 2008-06-01 | 9 | -2/+271 |
| | |||||
* | Typo: encoding -> codeset. | Martin v. Löwis | 2008-06-01 | 1 | -1/+1 |
| | |||||
* | Move sys_stream and sys_isatty out of the have-langinfo block. | Martin v. Löwis | 2008-06-01 | 1 | -1/+1 |
| | |||||
* | New environment variable PYTHONIOENCODING. | Martin v. Löwis | 2008-06-01 | 10 | -52/+153 |
| | |||||
* | Fixed rowcount for SELECT statements. They're -1 now (again), for better ↵ | Gerhard Häring | 2008-05-31 | 3 | -15/+20 |
| | | | | DB-API 2.0 compliance. | ||||
* | #3005: add explaining sentence to easydialogs docs. | Georg Brandl | 2008-05-31 | 1 | -4/+6 |
| | |||||
* | #3010: clarification about stdin/use_rawinput. | Georg Brandl | 2008-05-31 | 1 | -1/+6 |
| | |||||
* | Added a note to [] that special forms & special chars lose their meaning | Mark Summerfield | 2008-05-31 | 1 | -0/+6 |
| | | | | and backrefs can't be used inside [] | ||||
* | Fix bdist_wininst --user-access-control for win2k | Mark Hammond | 2008-05-31 | 5 | -7/+19 |
| | |||||
* | Implement heapq in terms of less-than (to match list.sort()). | Raymond Hettinger | 2008-05-31 | 3 | -20/+36 |
| | |||||
* | Update the locale module alias table. | Marc-André Lemburg | 2008-05-30 | 2 | -19/+163 |
| | | | | Closes #3011. | ||||
* | fix grammar | Benjamin Peterson | 2008-05-30 | 1 | -1/+1 |
| | |||||
* | Better quote with single quotes. | Georg Brandl | 2008-05-30 | 1 | -2/+2 |
| | |||||
* | getloadavg() is not available on Windows. | Georg Brandl | 2008-05-30 | 1 | -1/+1 |
| | |||||
* | * Mark intermedidate computes values (hi, lo, yr) as volatile. | Raymond Hettinger | 2008-05-30 | 1 | -19/+31 |
| | | | | | | | * Expand comments. * Swap variable names in the sum_exact code so that x and y are consistently chosen as the larger and smaller magnitude values respectively. | ||||
* | Refactor and clean up str.format() code (and helpers) in advance of ↵ | Eric Smith | 2008-05-30 | 15 | -157/+176 |
| | | | | optimizations. | ||||
* | #2999: fix name of third parameter in unicode.replace()'s docstring. | Georg Brandl | 2008-05-30 | 1 | -3/+3 |
| | |||||
* | Issue 2903: Add __name__ in globals for namedtuple namespace. | Raymond Hettinger | 2008-05-30 | 1 | -2/+3 |
| | |||||
* | Issue 2855: Fix obscure crasher by slowing down the entire module. Mimics ↵ | Raymond Hettinger | 2008-05-30 | 1 | -0/+4 |
| | | | | what was done to dictionaries in r59223. | ||||
* | Issue 2784: fix leaks in exception exit. | Raymond Hettinger | 2008-05-30 | 1 | -2/+2 |
| | |||||
* | Fix typo in testSum | Mark Dickinson | 2008-05-30 | 1 | -1/+1 |
| | |||||
* | Note that UserList and UserString were moved to 'collections' in 3.0. | Brett Cannon | 2008-05-29 | 1 | -0/+12 |
| | |||||
* | Turn off debugging output for building bsddb. | Brett Cannon | 2008-05-29 | 1 | -2/+3 |
| | |||||
* | ctypes NULL function pointers have a boolean False value now. | Thomas Heller | 2008-05-29 | 3 | -21/+32 |
| |