summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Revert eol-style to CRLF.Martin v. Löwis2008-06-141-45/+45
|
* Run svneol.py on all sources.Martin v. Löwis2008-06-133-536/+536
|
* darn! I converted half of the files the wrong way.Benjamin Peterson2008-06-1312-4726/+4726
|
* convert multiprocessing to unix line endingsBenjamin Peterson2008-06-1315-2331/+2331
|
* platform.uname now tries to fill empty values even when os.uname is presentBenjamin Peterson2008-06-131-33/+40
|
* Fixed: sys.getsizeof does not take the actual length of the tuples into account.Robert Schuppenies2008-06-131-0/+3
|
* Fix typo in method name. The LT class implemented less than. The LE classNeal Norwitz2008-06-131-1/+1
| | | | should implement less than or equal to (as the code does).
* add py3k warnings to rfc822Benjamin Peterson2008-06-123-2/+6
|
* deprecated mimetoolsBenjamin Peterson2008-06-123-2/+8
|
* Sounds obvious, but I didn't even realize that you can put non-stringArmin Rigo2008-06-121-4/+3
| | | | keys in type dictionaries without using this locals() hack.
* add old names back into __all__Benjamin Peterson2008-06-111-1/+2
|
* add aliases to threading moduleBenjamin Peterson2008-06-111-0/+32
|
* give the threading API PEP 8 namesBenjamin Peterson2008-06-1118-107/+107
|
* Add test for heapq using both __lt__ and __le__.Raymond Hettinger2008-06-111-0/+21
|
* fix import of multiprocessing by juggling importsBenjamin Peterson2008-06-112-2/+4
|
* Multi-arg form for set.difference() and set.difference_update().Raymond Hettinger2008-06-111-0/+14
|
* Merge in release25-maint r60793:Gregory P. Smith2008-06-112-0/+25
| | | | | | Added checks for integer overflows, contributed by Google. Some are only available if asserts are left in the code, in cases where they can't be triggered from Python code.
* add the multiprocessing package to fulfill PEP 371Benjamin Peterson2008-06-1115-0/+6719
|
* convert test_struct to a unittest thanks to Giampaolo RodolaBenjamin Peterson2008-06-111-624/+524
| | | | | I had to disable one test because it was functioning incorrectly, see #1530559 I also removed the debugging prints
* Handle the case with zero arguments.Raymond Hettinger2008-06-111-0/+6
|
* Mini-PEP: Simplifying numbers.pyRaymond Hettinger2008-06-111-50/+17
| | | | | | * Convert binary methods in Integral to mixin methods * Remove three-arg __pow__ as a required method * Make __int__ the root method instead of __long__.
* backport of 64096Benjamin Peterson2008-06-101-1/+1
|
* Correct test_pydoc for win32 platforms, to account for normalized URLs:Amaury Forgeot d'Arc2008-06-101-1/+6
| | | | C:\temp => file:///C|temp/
* Fixed test to reflect new filedispatcher semantics, as well as twoJosiah Carlson2008-06-102-4/+4
| | | | NameErrors pointed out by Giampaolo.
* Issue 3048: Fixed sys.getsizeof for unicode objects.Robert Schuppenies2008-06-101-7/+28
|
* Add the "ast" module, containing helpers to ease use of the "_ast" classes.Georg Brandl2008-06-102-9/+400
|
* Applying updated patch from Issue 1736190, which addresses partialJosiah Carlson2008-06-103-103/+187
| | | | | | issues in: 909005 and 17361001, as well as completely as possible issues 539444, 760475, 777588, 889153, 953599, 1025525, 1063924, and 658749. This patch also includes doc and test updates as necessary.
* Added better pickling support to xrange objects.Alexandre Vassalotti2008-06-101-9/+10
| | | | Cleaned up the unit test.
* Issue 2582: Fix pickling of xrange objects.Alexandre Vassalotti2008-06-101-0/+10
|
* Let set.intersection() and set.intersection_update() take multiple input ↵Raymond Hettinger2008-06-091-0/+6
| | | | arguments.
* Let set.union() and set.update() accept multiple inputs.Raymond Hettinger2008-06-091-0/+7
|
* Issue #2138: Add math.factorial().Raymond Hettinger2008-06-091-0/+15
|
* Issue3065: Fixed pickling of named tuples. Added tests.Raymond Hettinger2008-06-092-2/+23
|
* warn about parameter tuple unpackingBenjamin Peterson2008-06-081-0/+6
|
* Warn about assigning to Py3k keywords (True and False)Benjamin Peterson2008-06-081-0/+49
|
* change Py3k backquote warning to a SyntaxWarning and add a testBenjamin Peterson2008-06-081-0/+6
|
* #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-071-100/+9
|
* Factor out docstring dedenting from inspect.getdoc() into inspect.cleandoc()Georg Brandl2008-06-073-9/+111
| | | | to ease standalone use of the algorithm.
* Finished bug #2451. Fixed the retrying part to make itFacundo Batista2008-06-071-8/+16
| | | | more robust.
* Issue #1798: Add ctypes calling convention that allows safe access of errno.Thomas Heller2008-06-062-23/+125
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* 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/+191
| | | | for ctypes instances. Closes issue #2404.
* MacOS X: Enable 4-way universal buildsRonald Oussoren2008-06-054-3/+79
| | | | | | | | | | | | | | | | | | 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-041-0/+8
|
* Revert revisions 63943 and 63942 (Issue #1798: Add ctypes callingThomas Heller2008-06-042-125/+23
| | | | | | | | 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-042-23/+125
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-750/+3822
|