Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove RCS and #! cruft at top. | Guido van Rossum | 1998-06-26 | 1 | -4/+0 |
| | |||||
* | Allow binding a Tcl command (given as a string) as well as a Python | Guido van Rossum | 1998-06-25 | 1 | -3/+3 |
| | | | | function. | ||||
* | Treat "HEAD" same as "GET", so that CGI scripts won't fail. | Guido van Rossum | 1998-06-25 | 1 | -1/+1 |
| | |||||
* | Rewrite the (test) main program so that when used as a script, it can | Guido van Rossum | 1998-06-25 | 1 | -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 my | Guido van Rossum | 1998-06-25 | 1 | -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 typos | Guido van Rossum | 1998-06-25 | 1 | -33/+113 |
| | | | | in comments and doc strings. | ||||
* | Subsume the interact() function in a class. This should make it | Guido van Rossum | 1998-06-23 | 1 | -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 Rossum | 1998-06-23 | 1 | -1/+1 |
| | |||||
* | Patch by Eric Raymond: add an optional 'seekable' flag to the | Guido van Rossum | 1998-06-23 | 1 | -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 test | Guido van Rossum | 1998-06-22 | 1 | -1/+1 |
| | | | | for presence unread, not getattr()! | ||||
* | Turns out that 'winfo id' returns the id as a hex string, with 0x prefix. | Guido van Rossum | 1998-06-19 | 1 | -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 Rossum | 1998-06-19 | 1 | -1/+5 |
| | |||||
* | Piers' latest version -- authentication added by Donn Cave. | Guido van Rossum | 1998-06-18 | 1 | -41/+175 |
| | |||||
* | In class _Subfile, make sure read(n) can't read beyond EOF. Also | Guido van Rossum | 1998-06-17 | 1 | -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 Rossum | 1998-06-16 | 1 | -0/+4 |
| | |||||
* | Some extra comments and docstrings, and a new class (AddressList), all by ESR. | Guido van Rossum | 1998-06-16 | 1 | -1/+48 |
| | |||||
* | Fixed the UDP server -- this never worked. Ray Loyzaga deserves | Guido van Rossum | 1998-06-16 | 1 | -2/+7 |
| | | | | credit for complaining about this and for testing these changes. | ||||
* | In completer(), return None instead of raising an IndexError when | Guido van Rossum | 1998-06-12 | 1 | -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 reset | Guido van Rossum | 1998-06-12 | 1 | -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/off | Guido van Rossum | 1998-06-12 | 1 | -18/+5 |
| | | | | code here. | ||||
* | With the recent change that makes numbers compare smaller than anything, | Guido van Rossum | 1998-06-11 | 1 | -3/+3 |
| | | | | the outcome of the test for max has changed. | ||||
* | Now that test_MimeWriter is untabified, do the same here! | Guido van Rossum | 1998-06-11 | 1 | -15/+15 |
| | |||||
* | Be more careful than the previous patch. The default content-type | Guido van Rossum | 1998-06-11 | 1 | -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 Rossum | 1998-06-11 | 1 | -24/+48 |
| | | | | Also implement __setitem__(), more-or-less correctly (GvR). | ||||
* | Some changes suggested/provided by Eric Raymond: | Guido van Rossum | 1998-06-10 | 1 | -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 Rossum | 1998-06-09 | 1 | -1/+3 |
| | |||||
* | Default content-type to application/x-www-form-urlencoded at the top | Guido van Rossum | 1998-06-09 | 1 | -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 Rossum | 1998-06-09 | 1 | -7/+7 |
| | |||||
* | Untabified -- to satisfy the tab nanny. | Guido van Rossum | 1998-06-09 | 2 | -230/+230 |
| | |||||
* | Get rid of tabnanny's last complaints. | Guido van Rossum | 1998-06-09 | 1 | -3/+3 |
| | |||||
* | From: "Tim Peters" <tim_one@msn.com> | Guido van Rossum | 1998-06-09 | 1 | -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 Rossum | 1998-06-09 | 1 | -2/+2 |
| | |||||
* | Remove Emacs and #! cruft. | Guido van Rossum | 1998-05-29 | 1 | -4/+0 |
| | |||||
* | Improve the self-test code a bit: read a host from sys.argv[1] if set, | Guido van Rossum | 1998-05-29 | 1 | -2/+8 |
| | | | | and list the host name when prompting for the password. | ||||
* | Add comments explaining thread unsafety of this code. | Guido van Rossum | 1998-05-29 | 1 | -0/+10 |
| | |||||
* | Make gauss() semi-thread-safe. It can still give duplicate results, | Guido van Rossum | 1998-05-29 | 1 | -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(), which | Guido van Rossum | 1998-05-29 | 1 | -2/+2 |
| | | | | doesn't work of course. | ||||
* | Piers Lauders' latest version, with some of my own changes reapplied. | Guido van Rossum | 1998-05-29 | 1 | -10/+31 |
| | | | | Also replaced random()*32000 with randint(0, 31999). | ||||
* | Patch by Lars Marius Garshol: | Guido van Rossum | 1998-05-28 | 1 | -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, which | Jeremy Hylton | 1998-05-27 | 1 | -0/+7 |
| | | | | walks and quacks like a dictionary. | ||||
* | Add Tim's worst case scenario. | Guido van Rossum | 1998-05-26 | 1 | -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 near | Guido van Rossum | 1998-05-26 | 1 | -0/+12 |
| | | | | sys.maxint and near -sys.maxint-1 work correctly. | ||||
* | Fixed spelling in comment: "RFC", not "RFX". | Fred Drake | 1998-05-22 | 1 | -1/+1 |
| | |||||
* | introduce a new platform-specific variable: os.linesep is the | Guido van Rossum | 1998-05-22 | 1 | -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 Rossum | 1998-05-22 | 1 | -1/+1 |
| | |||||
* | Shouldn't use newdir.dir(), which no longer exists! | Guido van Rossum | 1998-05-22 | 1 | -2/+1 |
| | |||||
* | knownfiles: Add the default installation dirs for Apache | Fred Drake | 1998-05-21 | 1 | -0/+2 |
| | | | | versions <= 1.2, >= 1.3. | ||||
* | Use random instead of whrandom. | Guido van Rossum | 1998-05-20 | 5 | -18/+18 |
| | |||||
* | Add Interfaces to replace remaining needs for importing whrandom. | Guido van Rossum | 1998-05-20 | 1 | -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 can | Guido van Rossum | 1998-05-19 | 1 | -38/+48 |
| | | | | be used just as well, so this saves one Python call in many cases! |