Guido van Rossum
70f107f63d
Three fewer incorrect failures
1997-07-15 02:49:15 +00:00
Guido van Rossum
7449540986
After some discussion with Jeremy and Fred, decided to limit the
...
default urlparse cache size to 20 instead of 2000. The main use of
the cache seems to be to gain some speed in Grail, which is calling
urljoin with the same base for each anchor. 2000 is a bit too big for
Jeremy, who doesn't need the cache at all. 20 should keep at least
95% of the Grail speedup while wasting an insignificant amount of
memory in Jeremy's application.
1997-07-14 19:08:15 +00:00
Guido van Rossum
1d8b7583dc
Removed the traceback output in non-verbose mode
1997-07-11 21:14:53 +00:00
Guido van Rossum
5d6de256d5
New from Jeffrey; small nits.
1997-07-11 21:10:17 +00:00
Guido van Rossum
8a9a4a2336
Jeffrey's latest.
1997-07-11 20:48:25 +00:00
Guido van Rossum
035aae0f09
Some small nits.
1997-07-11 20:47:58 +00:00
Guido van Rossum
185147f1d0
Test urlparse cache with try/except instead of has_key.
...
This makes it thread-safe again.
1997-07-11 20:13:10 +00:00
Guido van Rossum
7ffbd2f86c
This is pretty pathetic and full of errors,
...
but it makes the regression test not complain about test_re.
1997-07-11 19:43:46 +00:00
Guido van Rossum
8e0ce30ce4
test suite for re.py
1997-07-11 19:34:44 +00:00
Guido van Rossum
105bd989e3
Added /usr/bin/env python and made executable.
1997-07-11 18:39:03 +00:00
Guido van Rossum
e3cd151d1f
Use the modules base64, quopri, and uu, instead of external programs
...
to decode/encode the standard transfer encodings.
1997-07-11 16:33:26 +00:00
Guido van Rossum
9e1ee9715e
Support for conditional breakpoints (Jim Fulton, with some changes).
1997-07-11 13:43:53 +00:00
Guido van Rossum
668361766a
Normalize whitespace.
1997-07-11 13:43:31 +00:00
Guido van Rossum
ff02e1ddde
Support for conditional breakpoints (Jim Fulton).
1997-07-11 13:42:50 +00:00
Guido van Rossum
65c28b7efb
Removed debug print in set construction.
...
Changed some '==' to 'in' (Tim Peters).
1997-07-11 11:10:44 +00:00
Guido van Rossum
63e18195b8
New version from Jeffrey after I complained about some glaring bugs.
1997-07-11 11:08:38 +00:00
Guido van Rossum
5ca1b711b5
Straight from Jeffrey Ollie's web page.
1997-07-10 21:00:31 +00:00
Guido van Rossum
d247812521
Two improvements suggested by Tim Peters: speed up random() since we
...
know Python integers are at least 32 bits long; and avoid zeros in
initial seed value.
1997-07-10 15:14:50 +00:00
Fred Drake
475d51d7b2
Wrapped up the ~/.netrc support. This is basically just the changes Guido &
...
I discussed to the original version way-back-when.
1997-06-24 22:02:54 +00:00
Fred Drake
bcdb9403d4
Added docstrings by Sue Williams, re-indented to 4 spaces / level.
1997-06-12 16:17:00 +00:00
Guido van Rossum
d9c6f4fd7d
Allow oct() result for 64-bit machines.
1997-06-06 21:14:14 +00:00
Guido van Rossum
914c938cc5
Use cPickle and cStringIO when available.
1997-06-06 21:12:45 +00:00
Guido van Rossum
f668d17e01
Clear the ftp cache when it contains more than 10 entries.
1997-06-06 21:11:11 +00:00
Guido van Rossum
2966b32205
Catch *all* errors that ftplib can raise (ftplib.all_errors) rather
...
than just the four.
Also folded some long lines.
1997-06-06 17:44:07 +00:00
Guido van Rossum
2b1566be9d
Correct typo in last line (test program invocation).
1997-06-03 22:05:15 +00:00
Guido van Rossum
876736cd0d
AMK's regex test suite
1997-06-03 18:07:49 +00:00
Fred Drake
cf3527b705
socket_type --> SocketType
1997-06-03 17:58:31 +00:00
Guido van Rossum
c24751b57a
Add Host: header to URL request.
1997-06-03 14:34:19 +00:00
Guido van Rossum
b94cd96977
Fix bug in copy() by using copy.copy() instead of making assumptions
...
(it so happens that copy.copy() works fine for the base UserDict
type). Also reindented the entire module to have 4-space indents.
1997-06-03 14:10:01 +00:00
Fred Drake
bd40d7e69f
Added the new dictionary methods to the wrapper class.
1997-06-03 13:07:59 +00:00
Guido van Rossum
2d3aac2377
The usual
1997-06-02 23:14:37 +00:00
Guido van Rossum
ce1fa263e6
Added tests for dict.clear(), dict.update(), dict.copy().
1997-06-02 23:14:00 +00:00
Guido van Rossum
77e1db3b34
Support $HOME in expanduser().
...
(Who'd thought that *anyone* would be interested in writing ~/foo on NT :-)
1997-06-02 23:11:57 +00:00
Barry Warsaw
1d0fe31d7e
Packer.pack_uhyper(): Fixes needed to properly pack unsigned 64 bit
...
longs where the top bit is set. First, change the masks so that they
are `L' longs, otherwise the sign bits will get propagated to the
result. Next, do not coerce to int before sending to pack_uint()
otherwise Python will generate an OverflowError. Here is a test
program that fails without the patch, but now succeeds:
import xdrlib
addr = (132, 151, 1, 71)
uint = 0L
for a in addr:
uint = (uint << 8) | a
ulong64 = uint << 32
p = xdrlib.Packer()
p.pack_uhyper(ulong64)
buf = p.get_buffer()
u = xdrlib.Unpacker(buf)
ulong64prime = u.unpack_uhyper()
if ulong64 == ulong64prime:
print 'okay'
else:
print 'bogus'
print ulong64, ulong64prime
1997-05-29 21:01:35 +00:00
Guido van Rossum
f7cea10f80
Remove '(' in column 0 of doc strings.
...
Add dependency on dict.copy().
1997-05-28 19:31:14 +00:00
Guido van Rossum
d7c9d96d3e
Tweak default source of query a bit so it is possible to invoke
...
a CGI script from the command line with not environment variables.
1997-05-28 15:39:15 +00:00
Guido van Rossum
1aec3f087e
lowercase proxies env variables, for Windows.
1997-05-28 15:37:19 +00:00
Guido van Rossum
4305542517
Reworded the doc string to remove the need for The Emacs font-lock kludge.
...
This required (re)moving all occurrences of '(' in column 0, as well
as changing "#!" to #!.
1997-05-28 15:11:01 +00:00
Fred Drake
c8296db67d
Widget._setup(): Support name=None in a similar way to the handling of other
...
Tkinter keyword parameters.
1997-05-27 22:45:10 +00:00
Guido van Rossum
f1e6354548
The usual
1997-05-22 20:48:03 +00:00
Guido van Rossum
d6a111e2dd
Fix for boundary case (Jack)
1997-05-21 14:59:17 +00:00
Guido van Rossum
f8580215c1
Add test for presence of socket_type.
1997-05-21 14:38:57 +00:00
Guido van Rossum
05ba2ab720
Fix ratecv test (Sjoerd).
1997-05-21 14:27:20 +00:00
Guido van Rossum
462d6e6484
More robust way of choosing a non-existant uid (faster, too).
...
(Correct version -- the previous checkin was a keyboard slip.)
1997-05-20 19:32:22 +00:00
Guido van Rossum
6308d510e9
More robust way of choosing a non-existant uid (faster, too).
1997-05-20 19:31:25 +00:00
Guido van Rossum
72be30690f
Added some minimal comments and tweaked lay-out a bit.
1997-05-20 18:03:22 +00:00
Guido van Rossum
32f92caa98
Handling of pathnames pointing to files on toplevel folder of disk was
...
incorrect (Jack)
1997-05-20 16:00:07 +00:00
Guido van Rossum
3f11da0aaf
Changes to make these tests work on the Mac.
1997-05-16 13:51:48 +00:00
Guido van Rossum
9522274205
Increase the child's sleep time to 5 for slow machines.
1997-05-16 13:40:41 +00:00
Barry Warsaw
4c4d5ce78a
Catch nis.error and raise TestFailed instead. This catches the
...
problem where Python is configured with the nismodule but NIS isn't
installed, or the map names don't correspond to those hardcoded in
nismodule.c (which is bogus in and of itself).
1997-05-15 18:27:49 +00:00