Walter Dörwald [Fri, 25 Nov 2005 15:22:10 +0000 (15:22 +0000)]
SF patch #1364545: test_cmd_line.py relied on english error messages when
invoking the Python interpreter (which didn't work on non-english Windows
versions). Check return codes instead.
Neal Norwitz [Thu, 24 Nov 2005 23:28:37 +0000 (23:28 +0000)]
Fix typo in comment.
Delete globals which contain variable information at the end of the test.
This makes the test stable (no reported leaks) when running regrtest -R
to find reference leaks.
Neal Norwitz [Thu, 24 Nov 2005 22:00:56 +0000 (22:00 +0000)]
Move registration of the codec search function to the module scope
so it is only executed once. Otherwise the same search function is
repeated added to the codec search path when regrtest is run with -R
and leaks are reported.
Walter Dörwald [Mon, 21 Nov 2005 19:10:07 +0000 (19:10 +0000)]
Use basestring instead of type.StringType for checking whether a input
or output file is a file name instead of a file object. This enables
unicode file names as arguments to uu.encode() and uu.decode().
Kurt B. Kaiser [Fri, 18 Nov 2005 22:05:48 +0000 (22:05 +0000)]
Merge IDLE-syntax-branch r39668:41449 into trunk
A idlelib/AutoCompleteWindow.py
A idlelib/AutoComplete.py
A idlelib/HyperParser.py
M idlelib/PyShell.py
M idlelib/ParenMatch.py
M idlelib/configDialog.py
M idlelib/EditorWindow.py
M idlelib/PyParse.py
M idlelib/CallTips.py
M idlelib/CallTipWindow.py
M idlelib/run.py
M idlelib/config-extensions.def
A idlelib/MultiCall.py
Walter Dörwald [Thu, 17 Nov 2005 08:52:34 +0000 (08:52 +0000)]
Add tests for various error cases and for readbuffer_encode() and
charbuffer_encode(). This increases code coverage in Modules/_codecsmodule.c
from 83% to 95%.
Neal Norwitz [Wed, 16 Nov 2005 05:12:59 +0000 (05:12 +0000)]
Fix some more memory leaks.
Call error_ret() in decode_str(). It was called in some other places,
but seemed inconsistent. It is safe to call PyTokenizer_Free() after
calling error_ret().
Fredrik Lundh [Sat, 12 Nov 2005 15:21:05 +0000 (15:21 +0000)]
r879@spiff: Fredrik | 2005-11-12 14:38:03 +0100
r878@spiff: Fredrik | 2005-11-12 14:37:22 +0100
minor docstring and comment tweaks (wikipedia might not be the
ultimate reference, but it's a lot better than "XXX" ;-)
Walter Dörwald [Fri, 11 Nov 2005 18:18:51 +0000 (18:18 +0000)]
Change PrettyPrinter.pprint(), so that output is written directly to the
output stream, instead of writing it to a StringIO first and writing the
result of this to the output stream. This should speed up the initial
output.
Neal Norwitz [Wed, 9 Nov 2005 06:59:35 +0000 (06:59 +0000)]
- SF Bug #1350188, "setdlopenflags" leads to crash upon "import"
It was possible dlerror() returns a NULL pointer, use a default error
message in this case.
Armin Rigo [Mon, 7 Nov 2005 08:38:00 +0000 (08:38 +0000)]
Added proper reflection on instances of <type 'method-wrapper'>, e.g.
'[].__add__', to match what the other internal descriptor types provide:
'__objclass__' attribute, '__self__' member, and reasonable repr and
comparison.
Armin Rigo [Mon, 7 Nov 2005 07:15:48 +0000 (07:15 +0000)]
similar to SF bug 847019: a quick check in the time() constructor, which
accepts strings only for unpickling reasons. This check prevents the honest
mistake of passing a string like '2:59.0' to time() and getting an insane
object.
Ka-Ping Yee [Sat, 5 Nov 2005 05:04:41 +0000 (05:04 +0000)]
Fix SF bug #417833 (pydoc HTTP reload failure) by removing from
sys.modules all submodules of a the given module/package path
when trying to reload a module.
Brett Cannon [Wed, 2 Nov 2005 23:04:26 +0000 (23:04 +0000)]
Change time.strptime() to raise ValueError whenever there is an error in the
format string. Before exceptions generated by the internal code propagated up
to the user and were not helpful.