summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Backport from py3k: Implement the new buffer interface from pep3118Thomas Heller2008-06-055-24/+455
| | | | for ctypes instances. Closes issue #2404.
* Fix preprocessor statement.Thomas Heller2008-06-051-1/+2
|
* MacOS X: Enable 4-way universal buildsRonald Oussoren2008-06-0552-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 Vassalotti2008-06-042-1/+10
|
* Revert revisions 63943 and 63942 (Issue #1798: Add ctypes callingThomas Heller2008-06-047-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 Heller2008-06-041-2/+4
|
* Issue #1798: Add ctypes calling convention that allows safe access toThomas Heller2008-06-047-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 Brandl2008-06-041-1783/+1669
|
* Patch #1513695: New turtle module, with demos.Martin v. Löwis2008-06-0424-1029/+7687
|
* Fix Tkinter sequence passing. #2906.Georg Brandl2008-06-031-1/+7
|
* make test_mutex more elegantBenjamin Peterson2008-06-031-18/+20
|
* Change all functions that expect one unicode character to accept a pair ofWalter Dörwald2008-06-022-73/+82
| | | | surrogates in narrow builds. Fixes issue #1706460.
* Fix the -x flag so that is does work.Thomas Heller2008-06-021-1/+1
|
* Fix misspelled sys.platform name and misspelled filename.Thomas Heller2008-06-022-2/+2
|
* Patch #2125: Add GetInteger and GetString methods forMartin v. Löwis2008-06-023-0/+63
| | | | msilib.Record objects.
* Fix issue 2782: be less strict about the format string type in strftime.Gregory P. Smith2008-06-023-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 forGregory P. Smith2008-06-014-2/+28
| | | | any given threading.Thread object. feature request issue 2871.
* Make the _H #define's match the header file names. Fix comments toGregory P. Smith2008-06-012-8/+8
| | | | mention the correct type names.
* Deprecate htmllib and sgmllib for 3.0.Georg Brandl2008-06-018-8/+26
|
* Generate pydoc's topic help from the reST docs via Sphinx'Georg Brandl2008-06-015-136/+284
| | | | new text writer.
* Spaces vs. tabs.Georg Brandl2008-06-011-1/+1
|
* add a warning about bgen being removedBenjamin Peterson2008-06-012-0/+3
|
* Fix test_sys.Robert Schuppenies2008-06-011-2/+0
|
* Fix test_descrtut.Georg Brandl2008-06-011-0/+1
|
* Some style nits. Also clarify in the docstrings what __sizeof__ does.Georg Brandl2008-06-017-18/+18
|
* Add plain text make target.Georg Brandl2008-06-012-0/+7
|
* Issue #2898: Added sys.getsizeof() to retrieve size of objects in bytes.Robert Schuppenies2008-06-019-2/+271
|
* Typo: encoding -> codeset.Martin v. Löwis2008-06-011-1/+1
|
* Move sys_stream and sys_isatty out of the have-langinfo block.Martin v. Löwis2008-06-011-1/+1
|
* New environment variable PYTHONIOENCODING.Martin v. Löwis2008-06-0110-52/+153
|
* Fixed rowcount for SELECT statements. They're -1 now (again), for better ↵Gerhard Häring2008-05-313-15/+20
| | | | DB-API 2.0 compliance.
* #3005: add explaining sentence to easydialogs docs.Georg Brandl2008-05-311-4/+6
|
* #3010: clarification about stdin/use_rawinput.Georg Brandl2008-05-311-1/+6
|
* Added a note to [] that special forms & special chars lose their meaningMark Summerfield2008-05-311-0/+6
| | | | and backrefs can't be used inside []
* Fix bdist_wininst --user-access-control for win2kMark Hammond2008-05-315-7/+19
|
* Implement heapq in terms of less-than (to match list.sort()).Raymond Hettinger2008-05-313-20/+36
|
* Update the locale module alias table.Marc-André Lemburg2008-05-302-19/+163
| | | | Closes #3011.
* fix grammarBenjamin Peterson2008-05-301-1/+1
|
* Better quote with single quotes.Georg Brandl2008-05-301-2/+2
|
* getloadavg() is not available on Windows.Georg Brandl2008-05-301-1/+1
|
* * Mark intermedidate computes values (hi, lo, yr) as volatile.Raymond Hettinger2008-05-301-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 Smith2008-05-3015-157/+176
| | | | optimizations.
* #2999: fix name of third parameter in unicode.replace()'s docstring.Georg Brandl2008-05-301-3/+3
|
* Issue 2903: Add __name__ in globals for namedtuple namespace.Raymond Hettinger2008-05-301-2/+3
|
* Issue 2855: Fix obscure crasher by slowing down the entire module. Mimics ↵Raymond Hettinger2008-05-301-0/+4
| | | | what was done to dictionaries in r59223.
* Issue 2784: fix leaks in exception exit.Raymond Hettinger2008-05-301-2/+2
|
* Fix typo in testSumMark Dickinson2008-05-301-1/+1
|
* Note that UserList and UserString were moved to 'collections' in 3.0.Brett Cannon2008-05-291-0/+12
|
* Turn off debugging output for building bsddb.Brett Cannon2008-05-291-2/+3
|
* ctypes NULL function pointers have a boolean False value now.Thomas Heller2008-05-293-21/+32
|