Guido van Rossum
bbca8da3ca
Fix two small bugs: (1) on Windows, pathname munging didn't work
...
right; (2) write_results_file() didn't return a tuple of two ints when
it couldn't create the file. Will backport.
2004-02-19 19:16:50 +00:00
Neal Norwitz
63dfece675
Get test to work when run from regrtest (add test_main), remove all CRs (^M)s
2004-02-19 02:37:29 +00:00
David Ascher
e2b4b32025
Implementation of patch 869468
...
Allow the user to create Tkinter.Tcl objects which are
just like Tkinter.Tk objects except that they do not
initialize Tk. This is useful in circumstances where the
script is being run on machines that do not have an X
server running -- in those cases, Tk initialization fails,
even if no window is ever created.
Includes documentation change and tests.
Tested on Linux, Solaris and Windows.
Reviewed by Martin von Loewis.
2004-02-18 05:59:53 +00:00
Fred Drake
f06116dcab
commentary about how bad ConfigParser is doesn't help here, and the
...
suggested approach to dealing with it isn't a good one; we need a
better general purpose config reader, not a distutils-specific reader
2004-02-17 22:35:19 +00:00
Martin v. Löwis
a79449e7a2
Patch #711838 : Allow non-anonymous ftp urls in urllib2.
...
Backported to 2.3.
2004-02-15 21:19:18 +00:00
Martin v. Löwis
7db04e7c48
Patch #817379 : Allow for absolute ftp paths.
...
Backported to 2.3.
2004-02-15 20:51:39 +00:00
Neil Schemenauer
32d23c9264
Fix typo.
2004-02-15 16:43:20 +00:00
Fred Drake
55cf434735
further testing indicates that the simplified version of the test
...
(re-using an existing test object class) no longer triggered the
original segfault when the fix was backed out; restoring the local
test object class to make the test effective
the assignment of the ref created at the end does not affect the test,
since the segfault happended before weakref.ref() returned; removing
the assignment
2004-02-13 19:21:57 +00:00
Hye-Shik Chang
4a8d42f73f
We have cp932 support in standard distribution now. And there's now
...
no major codepages unsupported by Python, so remove the eg. case.
2004-02-13 07:14:13 +00:00
Fred Drake
61dafcb6ca
use existing test object instead of defining a new class
2004-02-12 19:30:17 +00:00
Walter Dörwald
70a6b49821
Replace backticks with repr() or "%r"
...
From SF patch #852334 .
2004-02-12 17:35:32 +00:00
Skip Montanaro
05eb40128e
Fix indentation error in testGetServByName and rewrite loop to avoid clumsy
...
sentinel variable
2004-02-10 15:51:15 +00:00
Raymond Hettinger
029dba5a40
Make reversed() transparent with respect to length.
2004-02-10 09:33:39 +00:00
Raymond Hettinger
5cab2e3a88
Give itertools.repeat() a length method.
2004-02-10 09:25:40 +00:00
Raymond Hettinger
3dc3484ac8
SF bug #892492 : Multiple close() for asyncore.dispatcher.
...
(Contributed by Alexey Klimkin.)
Don't keep the file descriptor after the channel is deleted.
2004-02-08 11:32:50 +00:00
Raymond Hettinger
06353f76be
Let reversed() work with itself.
2004-02-08 10:49:42 +00:00
Raymond Hettinger
ee33b27ef0
Make deque.rotate() smarter. Beef-up related tests.
2004-02-08 04:05:26 +00:00
Barry Warsaw
3b6d025d9b
Patch #868499 , adds -T option for code coverage. The implementation is a
...
fairly simpleminded adaptation of Zope3's test.py -T flag.
I also changed some booleans to use True/False where appropriate.
2004-02-07 22:43:03 +00:00
Raymond Hettinger
5c5eb86347
* Incorporate Skip's suggestions for documentation (explain the word deque
...
comes from and show the differences from lists).
* Add a rotate() method.
2004-02-07 21:13:00 +00:00
Skip Montanaro
b31764837d
no longer support linux1 platform
2004-02-07 20:03:34 +00:00
Skip Montanaro
b23b7698cc
no longer support sunos4 platform
2004-02-07 20:01:11 +00:00
Raymond Hettinger
ac093c6af0
Use collection.deque() instead of a list for a FIFO queue.
2004-02-07 03:19:10 +00:00
Raymond Hettinger
c058fd14a9
* Fix ref counting in extend() and extendleft().
...
* Let deques support reversed().
2004-02-07 02:45:22 +00:00
Raymond Hettinger
b5ba8d749d
Lists work better when popping from the right.
2004-02-07 02:16:24 +00:00
Raymond Hettinger
3ba85c2e8a
Have deques support high volume loads.
2004-02-06 19:04:56 +00:00
Walter Dörwald
7dcf9f89d3
Fix test failure message (from SF patch #885008 )
2004-02-06 18:30:31 +00:00
Hye-Shik Chang
0a83778572
Back rev 1.3 out per Raymond's request.
2004-02-06 04:40:56 +00:00
Hye-Shik Chang
d310f13cd2
Simple is better than complex.
2004-02-06 02:52:15 +00:00
Walter Dörwald
cd736e71a3
Fix reallocation bug in unicode.translate(): The code was comparing
...
characters instead of character pointers to determine space requirements.
2004-02-05 17:36:00 +00:00
Fred Drake
bc875f5a36
Allocating a new weakref object can cause existing weakref objects for
...
the same object to be collected by the cyclic GC support if they are
only referenced by a cycle. If the weakref being collected was one of
the weakrefs without callbacks, some local variables for the
constructor became invalid and have to be re-computed.
The test caused a segfault under a debug build without the fix applied.
2004-02-04 23:14:14 +00:00
Fred Drake
ea2adc9c80
- add tests that exercise fixes for the PyWeakref_NewRef() and
...
PyWeakref_NewProxy() constructors from the C API
- elaborate the getweakrefcount() and getweakrefs() tests slightly
2004-02-03 19:56:46 +00:00
Hye-Shik Chang
ff83c2bacc
Fix input() builtin function to respect compiler flags.
...
(SF patch 876178, patch by mwh, unittest by perky)
2004-02-02 13:39:01 +00:00
Raymond Hettinger
756b3f3c15
* Move collections.deque() in from the sandbox
...
* Add unittests, newsitem, and whatsnew
* Apply to Queue.py mutex.py threading.py pydoc.py and shlex.py
* Docs are forthcoming
2004-01-29 06:37:52 +00:00
Fred Drake
4e9e7a6140
don't wrap lines too late by default
...
closes SF bug #842213
2004-01-26 16:42:30 +00:00
Kurt B. Kaiser
7663729ec7
There was an error in the Tk error dialog fix at Rev 1.84 which caused starting
...
w/o the subprocess to fail. Check in a fix to IDLE and IDLEfork.
M PyShell.py
Backport candidate, combine with previous.
2004-01-21 22:10:01 +00:00
Kurt B. Kaiser
d6ab77d27d
rpc.py:SocketIO - Large modules were generating large pickles when downloaded
...
to the execution server. The return of the OK response from the subprocess
initialization was interfering and causing the sending socket to be not
ready. Add an IO ready test to fix this. Moved the polling IO ready test
into pollpacket().
M NEWS.txt
M rpc.py
Backport candidate.
2004-01-21 19:21:11 +00:00
Kurt B. Kaiser
af3eb87802
Added a Tk error dialog to run.py inform the user if the subprocess can't
...
connect to the user GUI process. Added a timeout to the GUI's listening
socket. Added Tk error dialogs to PyShell.py to announce a failure to bind
the port or connect to the subprocess. Clean up error handling during
connection initiation phase. This is an update of Python Patch 778323.
M NEWS.txt
M PyShell.py
M ScriptBinding.py
M run.py
Backport candidate.
2004-01-21 18:54:30 +00:00
Raymond Hettinger
734fb5724f
Add a Guido inspired example for groupby().
2004-01-20 20:04:40 +00:00
Marc-André Lemburg
c83dddf7fe
Let the default encodings search function lookup aliases before trying the codec import. This allows applications to install codecs which override (non-special-cased) builtin codecs.
2004-01-20 09:40:14 +00:00
Marc-André Lemburg
5c94d33077
Add some more code page aliases needed for completeness.
2004-01-20 09:38:52 +00:00
Hye-Shik Chang
b619e4b36c
Fix a typo: s/iso_3022/iso2022/
2004-01-20 09:33:30 +00:00
Hye-Shik Chang
a5e719e081
Test not the standard utf-8 codec but gb18030 which is the most complex
...
codec in multibytecodec consumers.
2004-01-20 09:11:48 +00:00
Tim Peters
1301892715
For whatever reason, these files had \r\r\n line endings on Windows,
...
meaning they must have been checked in to CVS from a Linuxish box with
Windowish \r\n line endings to begin with.
2004-01-18 21:03:23 +00:00
Tim Peters
8279170ed2
Revert another local change that snuck into a whitespace normalization
...
patch.
2004-01-18 20:39:35 +00:00
Tim Peters
58eb11cf62
Whitespace normalization.
2004-01-18 20:29:55 +00:00
Hye-Shik Chang
3e2a306920
Add CJK codecs support as discussed on python-dev. (SF #873597 )
...
Several style fixes are suggested by Martin v. Loewis and
Marc-Andre Lemburg. Thanks!
2004-01-17 14:29:29 +00:00
Gregory P. Smith
e33aef7b15
__init__.py: keep it compatible with older python (True and False == 1 and 0)
...
test_basics.py: updated for the set_get_returns_none() default of 2 change.
2004-01-13 19:59:57 +00:00
Barry Warsaw
8f799e4c3a
__all__: Remove freenet_b64encode and freenet_b64decode.
2004-01-07 22:32:12 +00:00
Raymond Hettinger
0c4102760c
SF Patch #864863 : Bisect C implementation
...
(Contributed by Dmitry Vasiliev.)
2004-01-05 10:13:35 +00:00
Hye-Shik Chang
75c00efcc7
[SF #866875 ] Add a specialized routine for one character
...
separaters on str.split() and str.rsplit().
2004-01-05 00:29:51 +00:00