summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* 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!
* guess_extension(): Revise documentation string to be more clear. If notFred Drake1998-05-191-3/+6
| | | | inited, call init().
* Test that "import sys.imp" fails as it should.Guido van Rossum1998-05-191-1/+12
|
* guess_extension(): New function. Performs a reverse mapping from MIME typeFred Drake1998-05-181-1/+18
| | | | to filename extension.
* Neatify the _timezones table and remove a misleading comment aboutGuido van Rossum1998-05-181-12/+5
| | | | inaccuracies in mktime_tz().
* Fixed typo in docstring: suffixes_map --> suffix_map.Fred Drake1998-05-181-1/+1
|
* Subject: bug fixes for imaplib.pyGuido van Rossum1998-05-181-35/+48
| | | | | | | | | | From: Piers Lauder <piers@staff.cs.usyd.edu.au> To: Python List <python-list@cwi.nl> Date: Mon, 18 May 1998 09:51:53 +1000 Following is a context diff for imaplib.py in the Python1.5.1 distribution. It fixes 2 bugs. One to do with argument quoting, and the other to do with caching of un-tagged responses. Apologies for its size.
* Add file extension .xml, mapping it to text/xml.Guido van Rossum1998-05-181-0/+1
|
* Fix bug reported by Harri Pasanen: gzip + cPickle doesn't work. TheJeremy Hylton1998-05-131-4/+3
| | | | | | | | | problem was a couple of bugs in the readline implementation. 1. Include the '\n' in the string returned by readline 2. Bug calculating new buffer size in _unread Also remove unncessary import of StringIO
* From: conrad@cgl.ucsf.edu (Conrad Huang %CGL)Guido van Rossum1998-05-131-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | To: python-list@cwi.nl Date: 13 May 98 18:33:11 GMT I think I found a bug in CGIHTTPServer.py. (Does anyone care? :-) I was trying to use it as the web server for uploading files. Python CGI scripts (using the CGI module) that worked for other servers (e.g., Netscape Enterprise server) hang when run from CGIHTTPServer. The problem is that the content type parameters, in particular the boundary parameter, were not passed through to the CGI scripts, thus making the MIME parsing code choke. My simple-minded fix is: % diff CGIHTTPServer.py /usr/local/lib/python1.5/CGIHTTPServer.py 137,140c136 < if self.headers.typeheader is None: < env['CONTENT_TYPE'] = self.headers.type < else: < env['CONTENT_TYPE'] = self.headers.typeheader --- > env['CONTENT_TYPE'] = self.headers.type Conrad
* Reduce memory requirements.Guido van Rossum1998-05-121-1/+4
|
* Add a few doc strings.Guido van Rossum1998-05-101-6/+31
|
* benchmark for list.sort()Guido van Rossum1998-05-101-0/+109
|
* Make Tim O'Malley's requested change: in FieldStorage.__init__(), whenGuido van Rossum1998-05-081-1/+2
| | | | | method='GET', always get the query string from environ['QUERY_STRING'] or sys.argv[1] -- ignore an explicitly passed in fp.
* When a file name is selected ("OK" button, <Return> in the filename entry),Fred Drake1998-05-061-1/+5
| | | | | | | | and the "key" keyword parameter was used to invoke .go(), use the directory of the selected file as the stored directory to return to when the same key is used again. This is useful since the user may well entry at least part of the path in the filename box instead of doing a lot of clicking around in the listboxes.
* New files from Thomas GellekumGuido van Rossum1998-05-0610-5/+1202
|
* Added table of WSA error codes.Guido van Rossum1998-05-061-0/+19
|
* Patches to make the proxy code work again. (Why does that always breakGuido van Rossum1998-05-051-2/+3
| | | | | | as soon as I change things even just a little bit? :-) Even works when accessing a password-protected page through the proxy. Prompted by complaints from, and correct operation verified by, Nigel O'Brian.
* Take out the check for AUTH-LOGIN or AUTH=LOGIN in login() -- someGuido van Rossum1998-05-051-3/+0
| | | | | servers support LOGIN but don't advertise it. If it's not supported the protocol will respond NO. Approved by Piers Lauder.
* REMOVE samefile(), sameopenfile(), samestat() -- these cannot be madeGuido van Rossum1998-05-022-56/+0
| | | | to work reliably (at least I wouldn't know how).
* Change the names of all methods in the Wm class: they are nowGuido van Rossum1998-05-011-27/+56
| | | | | | | | | | | | | | | | | | wm_title(), etc. The old names (title() etc.) are still defined as aliases. This brings all methods up to use the same naming convention: whether the Tcl syntax is .window.path.name command subcommand [options] or command subcommand .window.path.name [optins] the Python equivalent is always windowobject.command_subcommand(options)
* Another optimization, probably of negligeable effect: instead ofGuido van Rossum1998-04-301-82/+78
| | | | | | | | | | | | | | calling self.tk.getint() and self.tk.getdouble(), call the globals getint() and getdouble(), which in turn are just names for the Python builtins int() and double(). (Making them globals actually save a dict lookup compared to using the built-in.) The corresponding methods of class Misc have been changed similarly. (Note that getboolean() hasn't been changed because there's no Python equivalent.) The use of int() and float() has another advantage: if/when Tcl calls can actually return Tcl objects with other types than string, use of int() and float() is essential.
* In _bind(), found a way to test for break without a temp variable.Guido van Rossum1998-04-291-5/+5
|
* Save a tiny bit of time: self.tk.call takes a tuple argument so it'sGuido van Rossum1998-04-291-70/+62
| | | | | | | not needed to say apply(self.tk.call, t); self.tk.call(t) has the same effect. This cuts down tremendously on the number of apply() calls made. No measurable effect, but at the very least it saves the lookup of apply() in the globals!
* Import MacOS at the top instead of insize Tk.__init__() -- the latterGuido van Rossum1998-04-291-10/+7
| | | | repeats the I/O for the failed import on each interpreter creation.
* Replace all calls to acquire_lock() and release_lock() with acquire()Guido van Rossum1998-04-291-25/+25
| | | | and release() instead.
* On the Mac, create the Temporary Items folder if it does not exist yet.Guido van Rossum1998-04-281-1/+1
| | | | (Jack)
* Put quotes around the filename, so spaces in filenames work.Guido van Rossum1998-04-282-2/+2
| | | | (Jack)
* typo in error message (fname vs. file).Guido van Rossum1998-04-281-1/+1
| | | | (Jack)
* Support byte-swapped dbhash (bsddb) files. Found by Ben Sayer.Guido van Rossum1998-04-281-1/+1
|
* Oops, I had 'n' and 'c' mixed up in my mind. Get rid of the commentGuido van Rossum1998-04-281-5/+4
| | | | that wonders what the difference is and explain them properly.
* Inspired by Ben Sayer, rewritten the code and some of the comments toGuido van Rossum1998-04-281-14/+47
| | | | | | be more intelligent when the database already exists (use the module for the existing file, according to whichdb). Noted in the doc strings that there doesn't seem to be a different between 'c' and 'n'.
* When setting the event structure fields, don't die when the widgetGuido van Rossum1998-04-271-1/+4
| | | | | | name is not registered; simply use the string. This happens for tear-off widgets (e.g. if you've registered enter/leave events for the menu).
* Feeble attempt at making urlopen more robust -- don't call splituser()Guido van Rossum1998-04-271-2/+6
| | | | | when splithost() returned no useable host, to avoid calling splituser() on None.
* parse150(): Simplify RE used to parse the message a little, taking advantageFred Drake1998-04-271-2/+1
| | | | of using re instead of regex.
* Use hex() when outputting the various checksums so the test output is theGuido van Rossum1998-04-242-5/+5
| | | | same on 32 and 64 bit machines.
* Small corrections to comments that were cloned from aifc; moreoverGuido van Rossum1998-04-233-9/+8
| | | | | | the description of setparams() was wrong. wave.py: Include the tag of an unknown format in the exception.
* New test sample -- "Nobody expects the Spanish Inquisition!"Guido van Rossum1998-04-231-0/+0
|
* Move unified findfile() into test_support.pyGuido van Rossum1998-04-235-50/+16
|