summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Issue3065: Fixed pickling of named tuples. Added tests.Raymond Hettinger2008-06-093-2/+26
|
* warn about parameter tuple unpackingBenjamin Peterson2008-06-082-0/+9
|
* Warn about assigning to Py3k keywords (True and False)Benjamin Peterson2008-06-082-33/+76
|
* add an ast_warn helper function to make adding those Py3k warnings easierBenjamin Peterson2008-06-081-7/+15
|
* Argh, I read it wrong. Reverted 64036 and added a clarifying remark.Georg Brandl2008-06-081-2/+2
|
* #3028: tokenize passes the physical line.Georg Brandl2008-06-081-10/+9
|
* change Py3k backquote warning to a SyntaxWarning and add a testBenjamin Peterson2008-06-082-1/+7
|
* capitalization nitBenjamin Peterson2008-06-071-1/+1
|
* Document the "st" API, to avoid confusion with the "new" AST.Georg Brandl2008-06-071-78/+89
| | | | Add a note about using the new AST module.
* X-ref to numbers module.Georg Brandl2008-06-071-3/+3
|
* Backport docs for abc module to 2.6.Georg Brandl2008-06-072-0/+196
|
* #3057: Fix the MutableMapping ABC to use the 2.6 dict interface.Georg Brandl2008-06-071-9/+14
|
* Register IterableUserDict as a MutableMapping.Georg Brandl2008-06-071-0/+4
|
* Revert unwanted changes.Georg Brandl2008-06-073-101/+95
|
* Factor out docstring dedenting from inspect.getdoc() into inspect.cleandoc()Georg Brandl2008-06-077-100/+125
| | | | to ease standalone use of the algorithm.
* Finished bug #2451. Fixed the retrying part to make itFacundo Batista2008-06-071-8/+16
| | | | more robust.
* Remove locking part of new buffer protocol.Travis E. Oliphant2008-06-063-22/+0
|
* Add long double check support to configure test.Travis E. Oliphant2008-06-061-0/+11
|
* Issue 3501: Make heapq support both __le__ and __lt__.Raymond Hettinger2008-06-061-11/+28
|
* Fix build issue on OSX 10.4Ronald Oussoren2008-06-066-8/+80
|
* Document the new ctypes features.Thomas Heller2008-06-061-6/+68
| | | | | It would be great if someone could review both sematics, markup, and spelling, and correct the versionadded and versionchanges markers.
* Add a reminder for the maintainer of whatsnew.Thomas Heller2008-06-061-0/+4
|
* Performance improvement: Use PyDict_Get/SetItem instead ofThomas Heller2008-06-061-3/+9
| | | | PyDict_Get/SetItemString.
* Fix brackets.Georg Brandl2008-06-061-2/+2
|
* Issue #1798: Add ctypes calling convention that allows safe access of errno.Thomas Heller2008-06-067-27/+330
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Markup fix.Georg Brandl2008-06-061-2/+2
|
* Aldo Cortesi confirmed this is still needed for OpenBSD 4.2 and 4.3.Neal Norwitz2008-06-062-2/+2
| | | | (I didn't regen configure, since I don't have a working autoconf.)
* Grammar fixAndrew M. Kuchling2008-06-051-2/+2
|
* Add various itemsAndrew M. Kuchling2008-06-051-8/+76
|
* Document 'utc' parameterAndrew M. Kuchling2008-06-051-3/+7
|
* revert 63965 for preformance reasonsBenjamin Peterson2008-06-051-1/+1
|
* use the more idomatic while TrueBenjamin Peterson2008-06-051-1/+1
|
* Backport from py3k: Implement the new buffer interface from pep3118Thomas Heller2008-06-051-0/+2
| | | | for ctypes instances. Closes issue #2404.
* 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.