summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* 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-021-0/+8
| | | | surrogates in narrow builds. Fixes issue #1706460.
* Fix the -x flag so that is does work.Thomas Heller2008-06-021-1/+1
|
* Fix issue 2782: be less strict about the format string type in strftime.Gregory P. Smith2008-06-021-0/+4
| | | | | 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-012-2/+15
| | | | any given threading.Thread object. feature request issue 2871.
* Deprecate htmllib and sgmllib for 3.0.Georg Brandl2008-06-015-3/+13
|
* Generate pydoc's topic help from the reST docs via Sphinx'Georg Brandl2008-06-012-136/+208
| | | | new text writer.
* 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-011-11/+11
|
* Issue #2898: Added sys.getsizeof() to retrieve size of objects in bytes.Robert Schuppenies2008-06-011-2/+149
|
* New environment variable PYTHONIOENCODING.Martin v. Löwis2008-06-011-0/+20
|
* Fixed rowcount for SELECT statements. They're -1 now (again), for better ↵Gerhard Häring2008-05-311-0/+9
| | | | DB-API 2.0 compliance.
* Fix bdist_wininst --user-access-control for win2kMark Hammond2008-05-314-0/+0
|
* Implement heapq in terms of less-than (to match list.sort()).Raymond Hettinger2008-05-311-6/+7
|
* Update the locale module alias table.Marc-André Lemburg2008-05-301-19/+160
| | | | Closes #3011.
* Issue 2903: Add __name__ in globals for namedtuple namespace.Raymond Hettinger2008-05-301-2/+3
|
* Fix typo in testSumMark Dickinson2008-05-301-1/+1
|
* ctypes NULL function pointers have a boolean False value now.Thomas Heller2008-05-291-0/+8
|
* Fixed the semantic of timeout for socket.create_connection andFacundo Batista2008-05-2917-152/+202
| | | | | | all the upper level libraries that use it, including urllib2. Added and fixed some tests, and changed docs correspondingly. Thanks to John J Lee for the patch and the pusing, :)
* #2985: allow i8 in XMLRPC responses.Georg Brandl2008-05-291-0/+1
|
* #2906: accept lists for options, and some cosmetic fixes in Tkinter.Georg Brandl2008-05-291-15/+19
|
* UserString.MutableString has been removed in Python 3.0.Brett Cannon2008-05-293-2/+16
| | | | Works on issue #2877. Thanks Quentin Gallet-Gilles for the patch.
* bdist_wininst now works correctly when both --skip-build and --plat-name are ↵Mark Hammond2008-05-281-0/+6
| | | | specified.
* Better integration between Python testing and bsddb3Jesus Cea2008-05-272-14/+17
|
* Do not close external file objects passed to tarfile.open(mode='w:bz2')Lars Gustäbel2008-05-272-3/+14
| | | | when the TarFile is closed.
* Improvements for test_py3kwarnBenjamin Peterson2008-05-271-5/+5
| | | | | - Always show warnings so they are always catchable - Make test_os_path_walk faster by walking a less populous directory
* remove some __getslice__Benjamin Peterson2008-05-272-7/+1
|
* remove duplication in test moduleBenjamin Peterson2008-05-261-27/+0
|
* take Brett's advice on a few warningsBenjamin Peterson2008-05-261-2/+2
|
* Fixes issue2791: subprocess.Popen.communicate leaked a file descripton untilGregory P. Smith2008-05-262-5/+21
| | | | | | | the last reference to the Popen instance was dropped. Adding explicit close() calls fixes it. Candidate for backport to release25-maint.
* warn about some members of the commands moduleBenjamin Peterson2008-05-262-0/+13
|
* add __all__ to test_supportBenjamin Peterson2008-05-262-0/+14
|
* On Windows, we must build a debug version iff running a debug build ofThomas Heller2008-05-261-0/+4
| | | | Python
* Merged revisions 63634-63643 via svnmerge fromMartin v. Löwis2008-05-251-1/+4
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3 ........ r63643 | martin.v.loewis | 2008-05-25 19:18:21 +0200 (So, 25 Mai 2008) | 3 lines Don't abort on IOErrors caused by saving pickle files. Fixes #2938. ........
* Merged revisions 62647-63633 via svnmerge fromMartin v. Löwis2008-05-252-9/+158
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3 ........ r63047 | alexandre.vassalotti | 2008-05-11 11:03:24 +0200 (So, 11 Mai 2008) | 2 lines Added import fixer for copy_reg rename. ........ r63081 | alexandre.vassalotti | 2008-05-11 22:06:36 +0200 (So, 11 Mai 2008) | 2 lines Added import fixer for Queue rename. ........ r63090 | alexandre.vassalotti | 2008-05-11 22:38:16 +0200 (So, 11 Mai 2008) | 2 lines Added import fixer for PixMapWrapper rename. ........ r63141 | alexandre.vassalotti | 2008-05-12 04:42:03 +0200 (Mo, 12 Mai 2008) | 5 lines Added fixer for SocketServer renaming. Removed PixMapWrapper fixer, since the module is actually pending removal. ........ r63252 | alexandre.vassalotti | 2008-05-15 01:10:20 +0200 (Do, 15 Mai 2008) | 2 lines Added fixer for ConfigParser rename. ........ r63321 | collin.winter | 2008-05-15 19:42:58 +0200 (Do, 15 Mai 2008) | 1 line Add a missing comma. Fixes issue 2866. ........ r63356 | alexandre.vassalotti | 2008-05-16 08:55:44 +0200 (Fr, 16 Mai 2008) | 4 lines Added new tests for fix_imports. Added refactoring support of from-import statements of the style: from foo import bar, baz ........ r63362 | alexandre.vassalotti | 2008-05-16 09:17:53 +0200 (Fr, 16 Mai 2008) | 2 lines Added the repr module import fixer. ........ r63456 | georg.brandl | 2008-05-18 21:51:18 +0200 (So, 18 Mai 2008) | 2 lines #2908: fixers for Tkinter rename. ........ r63461 | georg.brandl | 2008-05-18 23:00:20 +0200 (So, 18 Mai 2008) | 2 lines Fix for last patch. ........ r63525 | alexandre.vassalotti | 2008-05-21 23:43:29 +0200 (Mi, 21 Mai 2008) | 4 lines Add missing comma in fix_imports. Bug caught by Quentin Gallet-Gilles. ........ r63532 | brett.cannon | 2008-05-22 05:02:43 +0200 (Do, 22 Mai 2008) | 4 lines When testing fix_imports, no need to only test a subset of input; test it all! Do all revisions to the sandbox need to be manually applied to the trunk? ........ r63533 | brett.cannon | 2008-05-22 05:16:45 +0200 (Do, 22 Mai 2008) | 1 line Add _markupbase to the import fixer. ........ r63612 | georg.brandl | 2008-05-25 09:56:59 +0200 (So, 25 Mai 2008) | 2 lines Add fixer for _winreg rename. ........ r63627 | georg.brandl | 2008-05-25 14:30:10 +0200 (So, 25 Mai 2008) | 2 lines Add fixer entry for the thread module. ........ r63629 | georg.brandl | 2008-05-25 14:34:13 +0200 (So, 25 Mai 2008) | 2 lines Fixer entry for dummy_thread. ........ r63633 | martin.v.loewis | 2008-05-25 16:52:41 +0200 (So, 25 Mai 2008) | 2 lines Temporarily disable Test_imports. ........
* Fix issue2669: bsddb simple/legacy interface iteration silently failsGregory P. Smith2008-05-252-75/+128
| | | | | | | when database changes size during iteration. It now behaves like a dictionary, the next attempt to get a value from the iterator after the database has changed size will raise a RuntimeError.
* #2959: allow multiple close() calls for GzipFile.Georg Brandl2008-05-252-3/+8
|
* ConfigParser renaming reversal part 3: move module into place and adapt imports.Georg Brandl2008-05-259-77/+26
|
* ConfigParser renaming reversal part 2: move module.Georg Brandl2008-05-251-0/+0
|
* ConfigParser renaming reversal part 1: remove stub module.Georg Brandl2008-05-251-8/+0
|
* Queue renaming reversal part 3: move module into place andGeorg Brandl2008-05-258-27/+25
| | | | change imports and other references. Closes #2925.
* * Give the test_bsddb3 tests a unique temporary directory to run theirGregory P. Smith2008-05-252-59/+35
| | | | | | | | stuff in and clean it up afterwards regardless of the result. * Get rid of duplicate list of test modules to run, they're maintained within test_all now. * Print the BerkeleyDB version to stderr when running test_bsddb3 to help buildbot problem diagnosis.
* Queue renaming reversal part 2: move module.Georg Brandl2008-05-251-0/+0
|
* Queue renaming reversal part 1: remove stub module.Georg Brandl2008-05-251-8/+0
|