summaryrefslogtreecommitdiffstats
path: root/Misc
Commit message (Collapse)AuthorAgeFilesLines
* Add Arnaud for his efforts on multi-arg set operations.Raymond Hettinger2008-06-101-0/+1
|
* Add the "ast" module, containing helpers to ease use of the "_ast" classes.Georg Brandl2008-06-102-0/+3
|
* Add Gregor Lingl.Martin v. Löwis2008-06-101-0/+3
|
* Let set.intersection() and set.intersection_update() take multiple input ↵Raymond Hettinger2008-06-091-1/+2
| | | | arguments.
* Let set.union() and set.update() accept multiple inputs.Raymond Hettinger2008-06-091-0/+2
|
* Issue #2138: Add math.factorial().Raymond Hettinger2008-06-091-0/+2
|
* Factor out docstring dedenting from inspect.getdoc() into inspect.cleandoc()Georg Brandl2008-06-071-0/+3
| | | | to ease standalone use of the algorithm.
* Issue #1798: Add ctypes calling convention that allows safe access of errno.Thomas Heller2008-06-061-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Backport from py3k: Implement the new buffer interface from pep3118Thomas Heller2008-06-051-0/+2
| | | | for ctypes instances. Closes issue #2404.
* MacOS X: Enable 4-way universal buildsRonald Oussoren2008-06-051-0/+25
| | | | | | | | | | | | | | | | | | 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.
* Revert revisions 63943 and 63942 (Issue #1798: Add ctypes callingThomas Heller2008-06-041-3/+0
| | | | | | | | 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.
* Issue #1798: Add ctypes calling convention that allows safe access toThomas Heller2008-06-041-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Patch #1513695: New turtle module, with demos.Martin v. Löwis2008-06-041-0/+1
|
* Patch #2125: Add GetInteger and GetString methods forMartin v. Löwis2008-06-021-0/+3
| | | | msilib.Record objects.
* Fix issue 2782: be less strict about the format string type in strftime.Gregory P. Smith2008-06-021-0/+3
| | | | | 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-011-0/+2
| | | | any given threading.Thread object. feature request issue 2871.
* Deprecate htmllib and sgmllib for 3.0.Georg Brandl2008-06-011-2/+5
|
* Issue #2898: Added sys.getsizeof() to retrieve size of objects in bytes.Robert Schuppenies2008-06-011-0/+2
|
* New environment variable PYTHONIOENCODING.Martin v. Löwis2008-06-011-0/+2
|
* Implement heapq in terms of less-than (to match list.sort()).Raymond Hettinger2008-05-311-0/+3
|
* Update the locale module alias table.Marc-André Lemburg2008-05-301-0/+3
| | | | Closes #3011.
* ctypes NULL function pointers have a boolean False value now.Thomas Heller2008-05-291-0/+3
|
* #2985: allow i8 in XMLRPC responses.Georg Brandl2008-05-291-2/+5
|
* UserString.MutableString has been removed in Python 3.0.Brett Cannon2008-05-291-0/+3
| | | | Works on issue #2877. Thanks Quentin Gallet-Gilles for the patch.
* #2989: add PyType_Modified().Georg Brandl2008-05-281-1/+3
|
* Do not close external file objects passed to tarfile.open(mode='w:bz2')Lars Gustäbel2008-05-271-0/+3
| | | | when the TarFile is closed.
* turn PyErr_WarnPy3k into a macroBenjamin Peterson2008-05-261-2/+1
|
* Updated NEWSChristian Heimes2008-05-261-0/+9
|
* note about r63617Gregory P. Smith2008-05-251-0/+4
|
* #2959: allow multiple close() calls for GzipFile.Georg Brandl2008-05-251-0/+4
|
* ConfigParser renaming reversal part 3: move module into place and adapt imports.Georg Brandl2008-05-252-6/+3
|
* Queue renaming reversal part 3: move module into place andGeorg Brandl2008-05-251-2/+2
| | | | change imports and other references. Closes #2925.
* socketserver renaming reversal part 3: move the module into the rightGeorg Brandl2008-05-242-4/+1
| | | | place and fix all references to it. Closes #2926.
* Issue #1390: Raise ValueError in toxml when an invalid comment wouldMartin v. Löwis2008-05-231-0/+3
| | | | otherwise be produced.
* Patch #1722225: Support QNX 6.Martin v. Löwis2008-05-231-0/+2
|
* Revert the renaming of repr to reprlib.Brett Cannon2008-05-231-3/+0
|
* Issue #2819: Add math.sum, a function that sums a sequence of floatsMark Dickinson2008-05-231-0/+3
| | | | | efficiently but with no intermediate loss of precision. Based on Raymond Hettinger's ASPN recipe. Thanks Jean Brouwers for the patch.
* bsddb module updated to version 4.7.0Jesus Cea2008-05-221-1/+2
|
* Add Quentin Gallet-Gilles for (at least) a fixer for markupbase.Brett Cannon2008-05-221-0/+1
|
* Add Robert Schuppenies.Martin v. Löwis2008-05-211-0/+3
|
* Updated with fixes for #2914 and #2929.Vinay Sajip2008-05-201-0/+6
|
* #2592: delegate nb_index and the floor/truediv slots in weakref.proxy.Georg Brandl2008-05-201-0/+3
|
* Patch #1775025: allow opening zipfile members via ZipInfo instances.Georg Brandl2008-05-201-0/+4
| | | | Patch by Graham Horler.
* Patch #2488: Add sys.maxsize.Martin v. Löwis2008-05-201-0/+2
|
* Revert copy_reg -> copyreg rename.Georg Brandl2008-05-201-1/+1
|
* Tkinter rename reversal: remove tkinter package, adapt imports and docs.Georg Brandl2008-05-202-6/+0
|
* revert creation of the html.entities and html.parser modulesFred Drake2008-05-201-4/+0
| | | | (http://bugs.python.org/issue2882)
* test_httpservers has unpredictable refcount behavior.Georg Brandl2008-05-191-1/+1
|
* Add GHOP students.Georg Brandl2008-05-181-0/+3
|
* #2353: raise Py3k warning in file.xreadlines().Georg Brandl2008-05-171-0/+2
|