Raymond Hettinger
4267be6478
Multi-arg form for set.difference() and set.difference_update().
2008-06-11 10:30:54 +00:00
Gregory P. Smith
9d53457e59
Merge in release25-maint r60793:
...
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.
2008-06-11 07:41:16 +00:00
Benjamin Peterson
190d56e009
add the multiprocessing package to fulfill PEP 371
2008-06-11 02:40:25 +00:00
Benjamin Peterson
d5299866f9
convert test_struct to a unittest thanks to Giampaolo Rodola
...
I had to disable one test because it was functioning incorrectly, see #1530559
I also removed the debugging prints
2008-06-11 01:31:28 +00:00
Raymond Hettinger
610a93ea26
Handle the case with zero arguments.
2008-06-11 00:44:47 +00:00
Raymond Hettinger
caea65e465
Mini-PEP: Simplifying numbers.py
...
* Convert binary methods in Integral to mixin methods
* Remove three-arg __pow__ as a required method
* Make __int__ the root method instead of __long__.
2008-06-11 00:25:29 +00:00
Benjamin Peterson
31296c09ed
backport of 64096
2008-06-10 22:39:25 +00:00
Amaury Forgeot d'Arc
8e8de4afef
Correct test_pydoc for win32 platforms, to account for normalized URLs:
...
C:\temp => file:///C|temp/
2008-06-10 21:37:15 +00:00
Josiah Carlson
b67b53db51
Fixed test to reflect new filedispatcher semantics, as well as two
...
NameErrors pointed out by Giampaolo.
2008-06-10 15:58:19 +00:00
Robert Schuppenies
901c997de0
Issue 3048: Fixed sys.getsizeof for unicode objects.
2008-06-10 10:10:31 +00:00
Georg Brandl
8509db5a21
Add the "ast" module, containing helpers to ease use of the "_ast" classes.
2008-06-10 07:45:28 +00:00
Josiah Carlson
1a72d88abf
Applying updated patch from Issue 1736190, which addresses partial
...
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.
2008-06-10 05:00:08 +00:00
Alexandre Vassalotti
602d8db2bc
Added better pickling support to xrange objects.
...
Cleaned up the unit test.
2008-06-10 04:01:23 +00:00
Alexandre Vassalotti
1f2f61a78f
Issue 2582: Fix pickling of xrange objects.
2008-06-10 03:34:53 +00:00
Raymond Hettinger
5c4d3d0e4c
Let set.intersection() and set.intersection_update() take multiple input arguments.
2008-06-09 13:07:27 +00:00
Raymond Hettinger
ee4bcad68e
Let set.union() and set.update() accept multiple inputs.
2008-06-09 08:33:37 +00:00
Raymond Hettinger
ecbdd2e9b0
Issue #2138 : Add math.factorial().
2008-06-09 06:54:45 +00:00
Raymond Hettinger
e98839a1f4
Issue3065: Fixed pickling of named tuples. Added tests.
2008-06-09 01:28:30 +00:00
Benjamin Peterson
f4fcdb6b8c
warn about parameter tuple unpacking
2008-06-08 23:00:00 +00:00
Benjamin Peterson
d5efd20406
Warn about assigning to Py3k keywords (True and False)
2008-06-08 22:52:37 +00:00
Benjamin Peterson
2fe3ef8750
change Py3k backquote warning to a SyntaxWarning and add a test
2008-06-08 02:05:33 +00:00
Georg Brandl
60fbf7f8bb
#3057 : Fix the MutableMapping ABC to use the 2.6 dict interface.
2008-06-07 17:03:28 +00:00
Georg Brandl
3bed4aeea5
Register IterableUserDict as a MutableMapping.
2008-06-07 16:16:12 +00:00
Georg Brandl
bf0610a1ca
Revert unwanted changes.
2008-06-07 16:04:01 +00:00
Georg Brandl
7be19aabe2
Factor out docstring dedenting from inspect.getdoc() into inspect.cleandoc()
...
to ease standalone use of the algorithm.
2008-06-07 15:59:10 +00:00
Facundo Batista
6a5a177cba
Finished bug #2451 . Fixed the retrying part to make it
...
more robust.
2008-06-07 13:36:36 +00:00
Thomas Heller
fbb9c0bf3c
Issue #1798 : Add ctypes calling convention that allows safe access of errno.
...
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.
2008-06-06 08:33:46 +00:00
Benjamin Peterson
8456f64ce2
revert 63965 for preformance reasons
2008-06-05 23:02:33 +00:00
Benjamin Peterson
30dc7b8ce2
use the more idomatic while True
2008-06-05 22:39:34 +00:00
Thomas Heller
2e75c450d2
Backport from py3k: Implement the new buffer interface from pep3118
...
for ctypes instances. Closes issue #2404 .
2008-06-05 17:51:15 +00:00
Ronald Oussoren
5640ce2f1e
MacOS X: Enable 4-way universal builds
...
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.
2008-06-05 12:58:24 +00:00
Alexandre Vassalotti
80af6da748
Fixed complex.__getnewargs__() to not emit another complex object.
2008-06-04 20:41:44 +00:00
Thomas Heller
d5bb9215c9
Revert revisions 63943 and 63942 (Issue #1798 : Add ctypes calling
...
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.
2008-06-04 20:22:05 +00:00
Thomas Heller
e70c3378c0
Issue #1798 : Add ctypes calling convention that allows safe access to
...
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.
2008-06-04 18:59:03 +00:00
Martin v. Löwis
8718459f0f
Patch #1513695 : New turtle module, with demos.
2008-06-04 06:29:55 +00:00
Georg Brandl
4ed3ed13c5
Fix Tkinter sequence passing. #2906 .
2008-06-03 10:23:15 +00:00
Benjamin Peterson
c5393c64b8
make test_mutex more elegant
2008-06-03 01:30:37 +00:00
Walter Dörwald
a2a89a8712
Change all functions that expect one unicode character to accept a pair of
...
surrogates in narrow builds. Fixes issue #1706460 .
2008-06-02 20:36:03 +00:00
Thomas Heller
261b136321
Fix the -x flag so that is does work.
2008-06-02 20:07:46 +00:00
Gregory P. Smith
137d824148
Fix issue 2782: be less strict about the format string type in strftime.
...
Accept unicode and anything else ParseTuple "s#" can deal with. This
matches the time.strftime behavior.
2008-06-02 04:05:52 +00:00
Gregory P. Smith
8856ddae25
Adds a Thread.getIdent() method to provide the _get_ident() value for
...
any given threading.Thread object. feature request issue 2871.
2008-06-01 23:48:47 +00:00
Georg Brandl
ac19d85e04
Deprecate htmllib and sgmllib for 3.0.
2008-06-01 21:19:14 +00:00
Georg Brandl
681001e11b
Generate pydoc's topic help from the reST docs via Sphinx'
...
new text writer.
2008-06-01 20:33:55 +00:00
Robert Schuppenies
9359afff56
Fix test_sys.
2008-06-01 17:11:09 +00:00
Georg Brandl
12f8107f91
Fix test_descrtut.
2008-06-01 17:05:56 +00:00
Georg Brandl
7a6de8b0f4
Some style nits. Also clarify in the docstrings what __sizeof__ does.
2008-06-01 16:42:16 +00:00
Robert Schuppenies
51df064767
Issue #2898 : Added sys.getsizeof() to retrieve size of objects in bytes.
2008-06-01 16:16:17 +00:00
Martin v. Löwis
99815892f6
New environment variable PYTHONIOENCODING.
2008-06-01 07:20:46 +00:00
Gerhard Häring
7f7ca35f5b
Fixed rowcount for SELECT statements. They're -1 now (again), for better DB-API 2.0 compliance.
2008-05-31 21:33:27 +00:00
Mark Hammond
5bd88333ee
Fix bdist_wininst --user-access-control for win2k
2008-05-31 05:11:07 +00:00
Raymond Hettinger
6d7702ecd1
Implement heapq in terms of less-than (to match list.sort()).
2008-05-31 03:24:31 +00:00
Marc-André Lemburg
adff65bc3e
Update the locale module alias table.
...
Closes #3011 .
2008-05-30 20:52:18 +00:00
Raymond Hettinger
3c2523c2eb
Issue 2903: Add __name__ in globals for namedtuple namespace.
2008-05-30 07:16:53 +00:00
Mark Dickinson
8df4e22a28
Fix typo in testSum
2008-05-30 02:46:53 +00:00
Thomas Heller
9287acf83d
ctypes NULL function pointers have a boolean False value now.
2008-05-29 19:42:34 +00:00
Facundo Batista
4f1b1ed975
Fixed the semantic of timeout for socket.create_connection and
...
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, :)
2008-05-29 16:39:26 +00:00
Georg Brandl
d0b592f8e8
#2985 : allow i8 in XMLRPC responses.
2008-05-29 07:45:26 +00:00
Georg Brandl
7943a3295d
#2906 : accept lists for options, and some cosmetic fixes in Tkinter.
2008-05-29 07:18:49 +00:00
Brett Cannon
abb34fe9f3
UserString.MutableString has been removed in Python 3.0.
...
Works on issue #2877 . Thanks Quentin Gallet-Gilles for the patch.
2008-05-29 05:08:50 +00:00
Mark Hammond
88eeef35d7
bdist_wininst now works correctly when both --skip-build and --plat-name are specified.
2008-05-28 01:54:55 +00:00
Jesus Cea
dbd2f6d8a9
Better integration between Python testing and bsddb3
2008-05-27 13:26:02 +00:00
Lars Gustäbel
b1a54a3530
Do not close external file objects passed to tarfile.open(mode='w:bz2')
...
when the TarFile is closed.
2008-05-27 12:39:23 +00:00
Benjamin Peterson
1d31023b31
Improvements for test_py3kwarn
...
- Always show warnings so they are always catchable
- Make test_os_path_walk faster by walking a less populous directory
2008-05-27 01:42:29 +00:00
Benjamin Peterson
838c7b3619
remove some __getslice__
2008-05-27 01:18:39 +00:00
Benjamin Peterson
c1c83bb0de
remove duplication in test module
2008-05-26 21:44:26 +00:00
Benjamin Peterson
9171bed69a
take Brett's advice on a few warnings
2008-05-26 20:41:45 +00:00
Gregory P. Smith
4036fd4b75
Fixes issue2791: subprocess.Popen.communicate leaked a file descripton until
...
the last reference to the Popen instance was dropped. Adding explicit
close() calls fixes it.
Candidate for backport to release25-maint.
2008-05-26 20:22:14 +00:00
Benjamin Peterson
3aa84a7f28
warn about some members of the commands module
2008-05-26 19:41:53 +00:00
Benjamin Peterson
eeb2b21ab0
add __all__ to test_support
2008-05-26 16:22:27 +00:00
Thomas Heller
b4701e638c
On Windows, we must build a debug version iff running a debug build of
...
Python
2008-05-26 11:42:40 +00:00
Martin v. Löwis
bbaa2ebd17
Merged revisions 63634-63643 via svnmerge from
...
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 .
........
2008-05-25 17:19:22 +00:00
Martin v. Löwis
f2e23d039c
Merged revisions 62647-63633 via svnmerge from
...
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.
........
2008-05-25 14:58:01 +00:00
Gregory P. Smith
9e6468be1d
Fix issue2669: bsddb simple/legacy interface iteration silently fails
...
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.
2008-05-25 08:28:29 +00:00
Georg Brandl
e08e3d0686
#2959 : allow multiple close() calls for GzipFile.
2008-05-25 08:07:37 +00:00
Georg Brandl
392c6fc02d
ConfigParser renaming reversal part 3: move module into place and adapt imports.
2008-05-25 07:25:25 +00:00
Georg Brandl
995ee9dab0
ConfigParser renaming reversal part 2: move module.
2008-05-25 07:21:58 +00:00
Georg Brandl
9a1aa8c9b2
ConfigParser renaming reversal part 1: remove stub module.
2008-05-25 07:21:41 +00:00
Georg Brandl
a6168f9e0a
Queue renaming reversal part 3: move module into place and
...
change imports and other references. Closes #2925 .
2008-05-25 07:20:14 +00:00
Gregory P. Smith
8107290fa1
* Give the test_bsddb3 tests a unique temporary directory to run their
...
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.
2008-05-25 07:14:09 +00:00
Georg Brandl
6153ab3fee
Queue renaming reversal part 2: move module.
2008-05-25 07:10:03 +00:00
Georg Brandl
c8214253f2
Queue renaming reversal part 1: remove stub module.
2008-05-25 07:08:35 +00:00
Gregory P. Smith
f7cbfcffec
Use test_support to get network ports to bind to.
2008-05-25 03:13:41 +00:00
Georg Brandl
e152a77d96
socketserver renaming reversal part 3: move the module into the right
...
place and fix all references to it. Closes #2926 .
2008-05-24 18:31:28 +00:00
Guilherme Polo
6acb075f03
Fixed an import that remained from the lib-tk -> tkinter -> lib-tk renaming
2008-05-24 18:24:49 +00:00
Georg Brandl
b897c9a1a6
socketserver renaming reversal part 2: move rename module.
...
I'm doing this case-only rename in a two-step process via a different directory
to hopefully avoid problems with case-insensitive filesystems.
2008-05-24 18:11:29 +00:00
Georg Brandl
ae2496755c
socketserver renaming reversal part 1: remove stub module.
2008-05-24 18:08:33 +00:00
Martin v. Löwis
7d3d04d6db
Don't try to get the window size if it was never set before.
...
Fixes the test failure on Solaris.
2008-05-24 09:36:45 +00:00
Martin v. Löwis
68faf5b0fc
Use announce instead of print, to suppress output in
...
the testsuite.
2008-05-24 09:00:04 +00:00
Martin v. Löwis
27e4a179f2
Issue #1390 : Raise ValueError in toxml when an invalid comment would
...
otherwise be produced.
2008-05-23 15:18:28 +00:00
Mark Dickinson
badd7da622
Skip math.sum tests on non IEEE 754 platforms, and on IEEE 754 platforms
...
that exhibit the problem described in issue #2937 .
2008-05-23 12:07:36 +00:00
Brett Cannon
2d593cc679
Remove the old repr stub.
2008-05-23 05:05:20 +00:00
Brett Cannon
2ee0e8eaec
Revert the renaming of repr to reprlib.
2008-05-23 05:03:59 +00:00
Mark Dickinson
d055835253
Better error reporting in test_math.py
2008-05-23 03:30:01 +00:00
Mark Dickinson
c11c3391b0
Add tests for math.sum (Issue #2819 )
2008-05-23 02:36:48 +00:00
Benjamin Peterson
3a7305ed14
fix test_pydoc so it works on make installed Python installations
...
Also let it pass when invoked directly
2008-05-22 23:09:26 +00:00
Jesus Cea
ca3939cd52
bsddb module updated to version 4.7.0
2008-05-22 15:27:38 +00:00
Benjamin Peterson
83d453421f
remove redundant invocation of json doctests
2008-05-22 01:02:23 +00:00
Benjamin Peterson
948ee7a7c8
use more specific asserts in test_opcode
2008-05-22 00:57:02 +00:00
Benjamin Peterson
a4e4ef1cea
check for toolbox glue before testing platform.mac_ver intensly
2008-05-21 22:52:39 +00:00
Thomas Heller
6c78f553ae
Oops, get_tests may be called with 3 arguments.
2008-05-21 19:47:44 +00:00
Thomas Heller
7d9e721586
The -x <test1[,test2...]> flag allows to exclude tests.
2008-05-21 18:47:02 +00:00
Vinay Sajip
a12da73c46
Fixed : #2914 (RFE for UTC support in TimedRotatingFileHandler) and #2929 (wrong filename used to delete old log files).
2008-05-20 15:34:36 +00:00
Georg Brandl
ae019e14bd
#615772 : raise a more explicit error from Tkinter.Misc.__contains__.
2008-05-20 08:48:34 +00:00
Georg Brandl
88659b0ab2
#2592 : delegate nb_index and the floor/truediv slots in weakref.proxy.
2008-05-20 08:40:43 +00:00
Georg Brandl
112aa50329
Patch #1775025 : allow opening zipfile members via ZipInfo instances.
...
Patch by Graham Horler.
2008-05-20 08:25:48 +00:00
Georg Brandl
b7e419ebb9
Use inspect.getabsfile() to get the documented module's filename.
2008-05-20 08:10:03 +00:00
Georg Brandl
fb3de1fcd2
Improve diffing logic and output for test_pydoc.
2008-05-20 08:07:36 +00:00
Georg Brandl
bcdafa44f2
Remove html package and fix test_htmlparser.
2008-05-20 07:58:42 +00:00
Georg Brandl
dffbf5f542
Revert copy_reg -> copyreg rename.
2008-05-20 07:49:57 +00:00
Georg Brandl
06d2a2cb0e
Remove debugging line.
2008-05-20 07:23:59 +00:00
Georg Brandl
d66c84f63c
Remove rest of the tkinter package.
2008-05-20 07:23:25 +00:00
Georg Brandl
6634bf2919
Tkinter rename reversal: remove tkinter package, adapt imports and docs.
2008-05-20 07:13:37 +00:00
Georg Brandl
33cece05b9
Tkinter renaming reversal: move modules back in their place.
2008-05-20 06:58:21 +00:00
Georg Brandl
248e3a8b7f
Tkinter renaming reversal: Delete all stubs from lib-tk.
2008-05-20 06:49:28 +00:00
Georg Brandl
7bb1653cc3
Argh, this is the *actual* test that works under Windows.
2008-05-20 06:47:31 +00:00
Georg Brandl
b740f6a0c7
Activate two more test cases in test_httpservers.
2008-05-20 06:15:36 +00:00
Fred Drake
d995e1150c
revert creation of the html.entities and html.parser modules
...
(http://bugs.python.org/issue2882 )
2008-05-20 06:08:38 +00:00
Jesus Cea
958ee47286
bsddb: Beware with sequence wrapping
2008-05-19 15:55:11 +00:00
Benjamin Peterson
d21dabc890
change some imports in tests so they will not be skipped in 3.0
2008-05-18 23:07:07 +00:00
Benjamin Peterson
913c15c1c6
fix test_platform (os was not imported)
2008-05-18 22:07:42 +00:00
Georg Brandl
6e7e0790de
Fix test_pyclbr after another platform-dependent function was added to urllib.
2008-05-18 21:10:19 +00:00
Ronald Oussoren
7a0f4c75b1
- Add unittests for platform.mac_ver (or rather, ensure that the unittest for
...
that function actually tests something on OSX).
- Add documentation to platform.mac_ver that explains why the middle element
of the return value will not contain useful information.
2008-05-18 20:54:47 +00:00
Benjamin Peterson
f5c38dadf6
bring test_pydoc up to my high standards (now that I have them)
2008-05-18 20:48:07 +00:00
Ronald Oussoren
099646f29a
MacOSX: ctypes annotation in implementation of getproxies_macosx_sysconf
...
getproxies_macosx_sysconf uses ctypes to call SystemConfiguration APIs. This
checkin adds ctypes annotation to specify the right argument types for the
API's that are used.
This is needed to be able to use urllib on a 64-bit system, without
annotations you'd get a hard crash.
2008-05-18 20:09:54 +00:00
Georg Brandl
8632cc2573
GHOP #121 : improve test_pydoc, by Benjamin Peterson.
2008-05-18 16:32:48 +00:00
Georg Brandl
88e2acf038
GHOP #257 : test distutils' build_ext command, written by Josip Dzolonga.
2008-05-18 11:52:36 +00:00
Georg Brandl
0bb0299ad8
Take namedtuple item names only from ascii_letters (this blew up on OSX),
...
and make sure there are no duplicate names.
2008-05-18 10:39:26 +00:00
Georg Brandl
f899dfa1d1
GHOP #134 , #171 , #137 : unit tests for the three HTTPServer modules.
2008-05-18 09:12:20 +00:00
Georg Brandl
a9916b55de
#2353 : raise Py3k warning in file.xreadlines().
2008-05-17 22:11:54 +00:00
Fred Drake
cb51d84214
update references and documentation for modules in the new html package
...
(http://bugs.python.org/issue2882 )
2008-05-17 21:14:05 +00:00
Fred Drake
91ae250273
rename HTMLParser to html.parser, htmlentitydefs to html.entities
...
(http://bugs.python.org/issue2882 )
2008-05-17 20:30:04 +00:00
Benjamin Peterson
c6d64ec83f
revert 63425 over Guido's Febuary message about this, that I missed
2008-05-17 20:09:42 +00:00
Benjamin Peterson
d7943cb71d
fix spelling
2008-05-17 19:51:10 +00:00
Benjamin Peterson
79a922d6df
add Py3k warnings to oct and hex. backport hex behavior (because it's not different)
2008-05-17 19:21:20 +00:00
Georg Brandl
9098a0d100
Don't export a name "tkinter" from the "tkinter" package.
...
Else people doing "from tkinter import *" will get a nasty surprise.
2008-05-17 18:17:45 +00:00
Georg Brandl
f4a942c980
Really move the imports to the top this time. :)
2008-05-17 18:15:24 +00:00
Georg Brandl
28fdfa9839
#961805 : fix Edit.text_modified().
2008-05-17 17:57:01 +00:00
Georg Brandl
a9c205dd46
Move imports to file top.
2008-05-17 15:30:35 +00:00
Georg Brandl
8291f8efae
Tkinter: make stub modules.
2008-05-17 15:21:58 +00:00
Georg Brandl
7e6b33f00a
Tkinter rename: merge tkSimpleDialog and tkFileDialog into simpledialog and filedialog.
2008-05-17 15:07:03 +00:00
Gregory P. Smith
af8a68733f
fix issue2381: test_subprocess fails if your sys.executable is on a
...
path with a space in it.
2008-05-17 07:17:34 +00:00
Gregory P. Smith
664782e1c8
issue2858: Fix potential memory corruption when bsddb.db.DBEnv.lock_get
...
and other bsddb.db object constructors raised an exception.
Debugging & patch by Neal Norowitz.
2008-05-17 06:12:02 +00:00
Raymond Hettinger
ce956842e2
Fix-up docstring
2008-05-17 04:13:36 +00:00
Thomas Heller
ee130b72f8
Very simple test for ctypes.util.find_library on Windows.
2008-05-16 20:19:07 +00:00
Thomas Heller
95ba13fa85
Issue 1793: Add ctypes.util.find_msvcrt() function (on Windows).
2008-05-16 20:06:31 +00:00
Alexandre Vassalotti
3c4971c40e
Added Python 3.0 warning to cPickle.
2008-05-16 19:14:31 +00:00
Alexandre Vassalotti
ea0b22a167
Patch by Quentin Gallet-Gilles: Renaming leftovers for 2.6.
...
This fixes the omissions of configparser, copyreg, queue and
socketserver renaming.
2008-05-16 18:03:52 +00:00
Georg Brandl
ad9afeb8f0
Tkinter rename, step 2: fix imports and add stub modules.
2008-05-16 15:48:15 +00:00
Georg Brandl
bbc57d73a0
Step 1 of Tkinter renaming: move lib-tk modules into a new "tkinter" package.
2008-05-16 14:24:45 +00:00
Georg Brandl
ecf9091f59
Don't allow keyword arguments to reversed().
2008-05-16 13:24:29 +00:00
Georg Brandl
5ffad6646e
Make generator repr consistent with function and code object repr.
2008-05-16 09:34:48 +00:00
Alexandre Vassalotti
a8eaf8faf3
Rename the test file of reprlib.
2008-05-16 07:14:08 +00:00
Alexandre Vassalotti
50a1acb2ab
Changed references to the reprlib module to use its new name.
2008-05-16 06:58:49 +00:00
Alexandre Vassalotti
95d97c7390
Renamed the repr module to reprlib.
...
Added stub module for repr.
2008-05-16 06:37:57 +00:00
Benjamin Peterson
5915a4dcfe
make test_platform a bit more assertive (We'll see what the buildbots say.)
2008-05-16 02:24:49 +00:00
Alexandre Vassalotti
eb8cef2664
Fixed import of configparser in the distutils module.
...
If configparser is unavailable, try to import configparser using its
old name. This is required for backward-compatibility with older
Python versions.
2008-05-16 02:06:59 +00:00
Brett Cannon
fa40bbf625
Deprecated statvfs for removal in 3.0.
2008-05-16 00:50:02 +00:00
Brett Cannon
90f2cb422f
Remove the last usage of statvfs in the stdlib.
2008-05-16 00:37:42 +00:00
Brett Cannon
2224817cdf
Deprecate sunaudiodev/SUNAUDIODEV for removal in 3.0.
2008-05-16 00:10:24 +00:00
Alexandre Vassalotti
f7f439b6f1
Fixed typo in a doctest of test_genexps.
2008-05-15 20:31:42 +00:00
Alexandre Vassalotti
3b46fcfb38
Revert r63323: Use lowercase version of module name.
...
The distutils module should continue to use the old ConfigParser name,
for backward-compatibility.
2008-05-15 20:30:56 +00:00
Andrew M. Kuchling
a5c3878b32
Import class from distutils.cmd, not .core, to avoid circular import
2008-05-15 20:07:39 +00:00
Andrew M. Kuchling
e00aeccf2e
Use lowercase version of module name
2008-05-15 20:06:51 +00:00
Georg Brandl
c91210c06b
#2863 : add gen.__name__ and add this name to generator repr().
2008-05-15 15:08:32 +00:00
Gregory P. Smith
00ca01e7c3
disable the crashing test. I will also file a bug. This crash does
...
not appear to be a new bug, its just that the test coverage went up
recently exposing it. (I verified that by testing this test code on
an older Modules/_bsddb.c)
2008-05-15 04:56:18 +00:00
Brett Cannon
74a596c068
Deprecate WAIT for removal in 3.0.
2008-05-15 04:17:35 +00:00
Brett Cannon
f56b6aeb06
Deprecated torgb for removal in 3.0.
2008-05-15 04:15:25 +00:00
Brett Cannon
518c5da219
Deprecate SV for removal in 3.0.
2008-05-15 04:13:19 +00:00
Brett Cannon
cd2de08257
Deprecate readcd for removal in 3.0.
2008-05-15 03:51:21 +00:00
Brett Cannon
11ae6e7151
Deprecated panelparser for removal in 3.0.
2008-05-15 03:49:00 +00:00
Brett Cannon
7e37586c50
The panel module for IRIX has been deprecated for removal in 3.0.
2008-05-15 03:46:27 +00:00
Brett Cannon
89f5d9cc81
Deprecate jpeg for IRIX for removal in 3.0.
2008-05-15 03:44:00 +00:00
Brett Cannon
d8c41ecc17
Deprecate IOCTL from IRIX for removal in 3.0.
2008-05-15 03:41:55 +00:00
Brett Cannon
6328b297dc
Deprecate IN from IRIX for removal in 3.0.
2008-05-15 03:36:13 +00:00
Brett Cannon
4652537ba4
Deprecate imgfile for removal in 3.0.
2008-05-15 03:32:11 +00:00
Brett Cannon
707e384a7a
Deprecate GLWS from IRIX for removal in 3.0.
2008-05-15 03:29:18 +00:00
Brett Cannon
82bd94e651
Deprecate GET from IRIX for removal in 3.0.
2008-05-15 03:27:12 +00:00
Brett Cannon
75ba465099
Deprecated 'fm' for removal in 3.0.
2008-05-15 03:23:17 +00:00
Brett Cannon
178582e2a4
FL, flp, and fl from IRIX have been deprecated for removal in 3.0.
2008-05-15 03:20:36 +00:00
Brett Cannon
72ccc40db5
FILE from IRIX has been deprecated for removal in 3.0.
2008-05-15 03:17:24 +00:00
Brett Cannon
2773b6f1c9
Deprecate ERRNO for removal in 3.0.
2008-05-15 03:14:57 +00:00
Brett Cannon
044616aa24
Deprecate DEVICE, GL, gl, and the related modules cgen and cgensupport for removal in 3.0.
2008-05-15 02:33:55 +00:00
Alexandre Vassalotti
7663f9e4ff
Revert distutils changes done in r63248.
...
As explained by Marc-Andre Lemburg, distutils needs to stay
backward-compatible. Therefore, it should use the old ConfigParser
module name.
2008-05-15 00:33:57 +00:00
Alexandre Vassalotti
e2514c6f10
Updated import statements to use the new `configparser` module name.
...
Updated the documentation to use the new name.
Revert addition of the stub entry for the old name.
Georg, I am reverting your changes since this commit should propagate
to py3k.
2008-05-14 22:44:22 +00:00
Alexandre Vassalotti
e3a23c0734
Renamed the ConfigParser module to 'configparser'.
2008-05-14 22:07:07 +00:00
Alexandre Vassalotti
1b9df6862a
Moved copy_reg stub module to lib-old/.
...
Stub modules will be easier to track (and remove) if they are all kept
in lib-old/, instead of sprinkling them throughout the library.
2008-05-14 21:52:37 +00:00
Brett Cannon
650f5161f4
Deprecate CL, CL_old, and cl for 3.0.
2008-05-14 21:12:12 +00:00
Brett Cannon
54c77aa459
Deprecate the cdplayer module for IRIX for 3.0.
2008-05-14 21:08:41 +00:00
Brett Cannon
9eebe49d07
The cddb module for IRIX has been deprecated for 3.0.
2008-05-14 20:34:22 +00:00
Brett Cannon
ddf949f194
The CD and cd modules for IRIX are deprecated for 3.0.
2008-05-14 20:31:38 +00:00
Georg Brandl
885982283e
Fix another "refleak" by clearing the filters after test.
2008-05-14 07:18:22 +00:00
Neal Norwitz
40388cc330
Fix "refleak" by restoring the tearDown method removed by accident (AFAICT)
...
in r62788.
2008-05-14 06:47:56 +00:00
Gregory P. Smith
ee365b9f92
Enable the updated Lib/bsddb/test suite to run.
2008-05-14 04:27:01 +00:00
Brett Cannon
ea785fb0cf
Rewrap some lines in test_py3kwarn.
2008-05-14 01:09:40 +00:00
Brett Cannon
34721d5683
Deprecate al/AL for removal in 3.0.
2008-05-14 01:08:21 +00:00
Jesus Cea
18eb1fa2dd
Testsuite for bsddb module, version 4.6.4
2008-05-13 20:57:59 +00:00
Georg Brandl
913835763a
#2831 : add start argument to enumerate(). Patch by Scott Dial and me.
2008-05-13 19:04:54 +00:00
Benjamin Peterson
bbb093751c
use .format and fix a bug
2008-05-13 00:09:46 +00:00
Benjamin Peterson
ab1fb9f728
Make error messages more helpful
2008-05-12 22:26:05 +00:00
Amaury Forgeot d'Arc
e1b93f2855
Adapt test_pyclbr to the new version of urllib.py:
...
The new mac-specific functions must be ignored.
2008-05-12 22:21:39 +00:00