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
Guido van Rossum
fdf58fe59a
Added BabylMailbox class by Fred Lundh (untested).
1997-05-15 14:33:09 +00:00
Guido van Rossum
4dfd458611
Fix typo in error reporting.
1997-05-14 21:38:03 +00:00
Guido van Rossum
c1c96d1b5c
Fix hex tests for 64-bit machines.
1997-05-14 21:37:23 +00:00
Guido van Rossum
2b4d2800af
Suppress fork part of socket test when we can't fork.
1997-05-14 21:12:51 +00:00
Guido van Rossum
4a0694d235
Fix sys.platform test -- on Win, it is 'win32', not 'win'.
1997-05-14 19:06:36 +00:00
Guido van Rossum
0ba7e5958c
More rational implementation of get_qualified_path() -- search along
...
sys.path instead of assuming __file__ works.
1997-05-14 18:57:21 +00:00
Guido van Rossum
ad16471b27
Untested changes by Skip Montanaro to have an optional limit on the
...
size of uploads to POST (new version of these patches).
1997-05-13 19:03:23 +00:00
Guido van Rossum
725a67e5c2
Regenerated on newer Solaris version
1997-05-13 17:45:56 +00:00
Guido van Rossum
0e351f34c5
Finally found a wat to set a file nonblocking that works on Irix,
...
Solaris and Linux: use os.O_NONBLOCK.
1997-05-12 22:15:52 +00:00
Guido van Rossum
d0f2372cb9
Modernized for 1.5
1997-05-09 03:21:44 +00:00
Guido van Rossum
57c30f6f37
Regenerated on a newer Linux version.
1997-05-09 02:21:06 +00:00
Guido van Rossum
16dffdca1a
Fix the NDELAY test; avoid outputting binary garbage.
1997-05-09 02:06:05 +00:00
Guido van Rossum
f518d5e98e
Print less in test_socket.
1997-05-09 01:54:45 +00:00
Guido van Rossum
16cd332aab
Add root.tkraise() to the _test() program so the window doesn't hide
...
behind the shell window on NT.
1997-05-09 00:59:43 +00:00
Guido van Rossum
de554ece41
The usual.
1997-05-08 23:14:57 +00:00
Guido van Rossum
6dd87830d0
Improve getting the mailbox from the environment.
1997-05-08 23:11:52 +00:00
Guido van Rossum
56f78d9e3c
Set correct RFC number.
1997-05-08 23:11:04 +00:00
Guido van Rossum
25107deb9f
Set correct RFC number. Open input in binary.
1997-05-08 23:10:42 +00:00
Fred Drake
526749b678
Misc.__init__(): Removed method, replaced with class attribute (which
...
was all that the method set anyway). Removed calls to the
constructor. This reduces the number of Python function calls
per widget construction by one, for every widget construction.
1997-05-03 04:16:23 +00:00
Guido van Rossum
1526219431
Adding Jeremy Hylton's gzip module.
...
This requires Andrew Kuchling's zlib extension module.
It still needs some doc strings.
1997-04-30 16:04:57 +00:00