Guido van Rossum
1cd4d52f2f
Remove RCS and #! cruft at top.
1998-06-26 13:38:38 +00:00
Guido van Rossum
88b63b8d30
Allow binding a Tcl command (given as a string) as well as a Python
...
function.
1998-06-25 18:54:49 +00:00
Guido van Rossum
01852838f3
Treat "HEAD" same as "GET", so that CGI scripts won't fail.
1998-06-25 02:40:17 +00:00
Guido van Rossum
2349015a87
Rewrite the (test) main program so that when used as a script, it can
...
retrieve one or more URLs to stdout. Use -t to run the self-test.
1998-06-25 02:39:00 +00:00
Guido van Rossum
b1f0812be7
Piers' latest version, labeled 2.11. This time he integrated my
...
changes, and made only a few minor changes. No changes of my own this
time.
1998-06-25 02:22:16 +00:00
Guido van Rossum
95e6f7089a
Eric Raymond added support for ESMTP protocol and corrected some typos
...
in comments and doc strings.
1998-06-25 02:15:50 +00:00
Guido van Rossum
a93b848e33
Subsume the interact() function in a class. This should make it
...
possible to use this in PythonWin, and to replace Fredrik Lundh's
PythonInterpreter class. Fredrik is credited with the class' API.
1998-06-23 19:31:19 +00:00
Guido van Rossum
d9d2625dbd
"if match(x) >= 0:" smells of regex matching; should use "if match(x):"
1998-06-23 14:43:06 +00:00
Guido van Rossum
4d40b0a165
Patch by Eric Raymond: add an optional 'seekable' flag to the
...
MultiFile constructor, and only do the posstack bookkeeping when it is
true.
1998-06-23 14:20:27 +00:00
Guido van Rossum
5430b432e6
Bugfix to ESR's code reported by himself: should use hasattr() to test
...
for presence unread, not getattr()!
1998-06-22 15:46:26 +00:00
Guido van Rossum
cef4c844df
Turns out that 'winfo id' returns the id as a hex string, with 0x prefix.
...
The int() function (aliased to getint()) doesn't handle that, so we must
use self.tk.getint() again...
1998-06-19 04:35:45 +00:00
Guido van Rossum
268824e089
Different trick to get the _test() window to pop up.
1998-06-19 04:34:19 +00:00
Guido van Rossum
eda960a1dd
Piers' latest version -- authentication added by Donn Cave.
1998-06-18 14:24:28 +00:00
Guido van Rossum
e50b0a44cb
In class _Subfile, make sure read(n) can't read beyond EOF. Also
...
allow negative numbers to specify read until EOF (like for a regular
file's read() method).
1998-06-17 18:34:40 +00:00
Guido van Rossum
81d10b479e
Add __getitem__ to AddressList object, to make it a sequence.
1998-06-16 22:29:03 +00:00
Guido van Rossum
4d4ab9245f
Some extra comments and docstrings, and a new class (AddressList), all by ESR.
1998-06-16 22:27:09 +00:00
Guido van Rossum
32490824b6
Fixed the UDP server -- this never worked. Ray Loyzaga deserves
...
credit for complaining about this and for testing these changes.
1998-06-16 02:27:33 +00:00
Guido van Rossum
d458faadc3
In completer(), return None instead of raising an IndexError when
...
there are no more completions left. (This for compatibility with
Donald Beaudry's code.)
1998-06-12 19:42:14 +00:00
Guido van Rossum
c3da02e904
Don't catch interrupts in getpass() -- the finally clause will reset
...
the tty and the caller can deal with the interrupt.
In the windows version, recognize ^C and raise KeyboardInterrupt (not
sure if this is needed, but can't hurt).
1998-06-12 14:28:38 +00:00
Guido van Rossum
ae9ee7329d
Use the getpass module instead of having platform-specific echo on/off
...
code here.
1998-06-12 14:21:13 +00:00
Guido van Rossum
69256612d7
With the recent change that makes numbers compare smaller than anything,
...
the outcome of the test for max has changed.
1998-06-11 22:25:59 +00:00
Guido van Rossum
08636f08ed
Now that test_MimeWriter is untabified, do the same here!
1998-06-11 22:22:39 +00:00
Guido van Rossum
cff311aa37
Be more careful than the previous patch. The default content-type
...
should only be set to application/x-www-form-urlencoded when the
method is POST. E.g. for PUT, an empty default (defaulting to
text/plain later) makes more sense.
1998-06-11 14:06:59 +00:00
Guido van Rossum
e894fc0ea3
Support new overridable method, isheader() (ESR).
...
Also implement __setitem__(), more-or-less correctly (GvR).
1998-06-11 13:58:40 +00:00
Guido van Rossum
c7bb8577c7
Some changes suggested/provided by Eric Raymond:
...
- explain seekable
- when seekable==1, test fp.tell() and set it to 0 if that fails
- support overridable method iscomment(line) to weed out comments
- check for unread() method on file object before trying to seek
And one of my own:
- Add a get() method which behaves like a dictionary's get(); this is
actually implemented by giving getheader() an optional second argument
to specify the default, and aliasing get to getheader.
1998-06-10 21:31:01 +00:00