summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Remove RCS and #! cruft at top.Guido van Rossum1998-06-261-4/+0
|
* Allow binding a Tcl command (given as a string) as well as a PythonGuido van Rossum1998-06-251-3/+3
| | | | function.
* Treat "HEAD" same as "GET", so that CGI scripts won't fail.Guido van Rossum1998-06-251-1/+1
|
* Rewrite the (test) main program so that when used as a script, it canGuido van Rossum1998-06-251-5/+29
| | | | retrieve one or more URLs to stdout. Use -t to run the self-test.
* Piers' latest version, labeled 2.11. This time he integrated myGuido van Rossum1998-06-251-18/+14
| | | | | changes, and made only a few minor changes. No changes of my own this time.
* Eric Raymond added support for ESMTP protocol and corrected some typosGuido van Rossum1998-06-251-33/+113
| | | | in comments and doc strings.
* Subsume the interact() function in a class. This should make itGuido van Rossum1998-06-231-42/+197
| | | | | possible to use this in PythonWin, and to replace Fredrik Lundh's PythonInterpreter class. Fredrik is credited with the class' API.
* "if match(x) >= 0:" smells of regex matching; should use "if match(x):"Guido van Rossum1998-06-231-1/+1
|
* Patch by Eric Raymond: add an optional 'seekable' flag to theGuido van Rossum1998-06-231-11/+23
| | | | | MultiFile constructor, and only do the posstack bookkeeping when it is true.
* Bugfix to ESR's code reported by himself: should use hasattr() to testGuido van Rossum1998-06-221-1/+1
| | | | for presence unread, not getattr()!
* Turns out that 'winfo id' returns the id as a hex string, with 0x prefix.Guido van Rossum1998-06-191-1/+1
| | | | | The int() function (aliased to getint()) doesn't handle that, so we must use self.tk.getint() again...
* Different trick to get the _test() window to pop up.Guido van Rossum1998-06-191-1/+5
|
* Piers' latest version -- authentication added by Donn Cave.Guido van Rossum1998-06-181-41/+175
|
* In class _Subfile, make sure read(n) can't read beyond EOF. AlsoGuido van Rossum1998-06-171-2/+5
| | | | | allow negative numbers to specify read until EOF (like for a regular file's read() method).
* Add __getitem__ to AddressList object, to make it a sequence.Guido van Rossum1998-06-161-0/+4
|
* Some extra comments and docstrings, and a new class (AddressList), all by ESR.Guido van Rossum1998-06-161-1/+48
|
* Fixed the UDP server -- this never worked. Ray Loyzaga deservesGuido van Rossum1998-06-161-2/+7
| | | | credit for complaining about this and for testing these changes.
* In completer(), return None instead of raising an IndexError whenGuido van Rossum1998-06-121-1/+4
| | | | | there are no more completions left. (This for compatibility with Donald Beaudry's code.)
* Don't catch interrupts in getpass() -- the finally clause will resetGuido van Rossum1998-06-121-2/+3
| | | | | | | 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).
* Use the getpass module instead of having platform-specific echo on/offGuido van Rossum1998-06-121-18/+5
| | | | code here.
* With the recent change that makes numbers compare smaller than anything,Guido van Rossum1998-06-111-3/+3
| | | | the outcome of the test for max has changed.
* Now that test_MimeWriter is untabified, do the same here!Guido van Rossum1998-06-111-15/+15
|
* Be more careful than the previous patch. The default content-typeGuido van Rossum1998-06-111-1/+4
| | | | | | 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.
* Support new overridable method, isheader() (ESR).Guido van Rossum1998-06-111-24/+48
| | | | Also implement __setitem__(), more-or-less correctly (GvR).
* Some changes suggested/provided by Eric Raymond:Guido van Rossum1998-06-101-7/+52
| | | | | | | | | | | | | - 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.
* Add the __doc__ string from the original module on copy_none().Guido van Rossum1998-06-091-1/+3
|
* Default content-type to application/x-www-form-urlencoded at the topGuido van Rossum1998-06-091-1/+1
| | | | | level of a form. This means that browsers that omit the content-type header when sending a POST command aren't penalized so heavily.
* Changed runs of 8 spaces to tab -- to satisfy the tab nanny.Guido van Rossum1998-06-091-7/+7
|
* Untabified -- to satisfy the tab nanny.Guido van Rossum1998-06-092-230/+230
|
* Get rid of tabnanny's last complaints.Guido van Rossum1998-06-091-3/+3
|
* From: "Tim Peters" <tim_one@msn.com>Guido van Rossum1998-06-091-3/+9
| | | | | | | | | | The 1.5.1 tabnanny.py suffers an assert error if fed a script whose last line is both indented and lacks a newline: if 1: print 'oh fudge' # no newline here: The attached version repairs that.
* getint() now raises ValueError, not TclError, on errors.Guido van Rossum1998-06-091-2/+2
|
* Remove Emacs and #! cruft.Guido van Rossum1998-05-291-4/+0
|
* Improve the self-test code a bit: read a host from sys.argv[1] if set,Guido van Rossum1998-05-291-2/+8
| | | | and list the host name when prompting for the password.
* Add comments explaining thread unsafety of this code.Guido van Rossum1998-05-291-0/+10
|
* Make gauss() semi-thread-safe. It can still give duplicate results,Guido van Rossum1998-05-291-4/+14
| | | | | but it can no longer raise an exception when called by several threads simultaneously.
* Two places where _time() should be used said time.time(), whichGuido van Rossum1998-05-291-2/+2
| | | | doesn't work of course.
* Piers Lauders' latest version, with some of my own changes reapplied.Guido van Rossum1998-05-291-10/+31
| | | | Also replaced random()*32000 with randint(0, 31999).
* Patch by Lars Marius Garshol:Guido van Rossum1998-05-281-2/+30
| | | | | | | | | - Handle <? processing instructions >. - Allow . and - in entity names. Also fixed an oversight in the previous fix (in one place, [ \t\r\n] was used instead of string.whitespace).
* add handler for JPython's org.python.core.PyStringMap object, whichJeremy Hylton1998-05-271-0/+7
| | | | walks and quacks like a dictionary.
* Add Tim's worst case scenario.Guido van Rossum1998-05-261-6/+11
| | | | Revert to using whrandom so it will work with older versions of Python.
* Added some tests to make sure that long->int conversions nearGuido van Rossum1998-05-261-0/+12
| | | | sys.maxint and near -sys.maxint-1 work correctly.
* Fixed spelling in comment: "RFC", not "RFX".Fred Drake1998-05-221-1/+1
|
* introduce a new platform-specific variable: os.linesep is theGuido van Rossum1998-05-221-0/+5
| | | | | platform's line separator. \n on Unix, \r\n on DOS, OS/2 and Windows, \r on Macs.
* Change the last 4-space indent into a 1-tab indent.Guido van Rossum1998-05-221-1/+1
|
* Shouldn't use newdir.dir(), which no longer exists!Guido van Rossum1998-05-221-2/+1
|
* knownfiles: Add the default installation dirs for ApacheFred Drake1998-05-211-0/+2
| | | | versions <= 1.2, >= 1.3.
* Use random instead of whrandom.Guido van Rossum1998-05-205-18/+18
|
* Add Interfaces to replace remaining needs for importing whrandom.Guido van Rossum1998-05-201-0/+46
| | | | # XXX TO DO: make the distribution functions below into methods.
* Get rid of nearly all clals to self._do -- turns out self.tk.call canGuido van Rossum1998-05-191-38/+48
| | | | be used just as well, so this saves one Python call in many cases!