summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Run the self-test (test.test_MimeWriter) when invoked as a script.Guido van Rossum1998-04-231-1/+1
|
* Add test for MimeWriter moduleGuido van Rossum1998-04-232-0/+280
|
* Add writelines() method to Compare class.Guido van Rossum1998-04-231-0/+3
|
* As Tim Peters points out, ``from string import *'' should not set re to None.Guido van Rossum1998-04-202-18/+22
| | | | Also rename safe_env to _safe_env.
* Fix regexp for attrfind; bug reported by Lars Marius GarsholFred Drake1998-04-161-4/+4
| | | | <larsga@ifi.uio.no>.
* Open wave files in binary mode.Fred Drake1998-04-161-5/+5
| | | | Accept 'rb' and 'wb' as well as 'r' and 'w' as the mode parameter to open().
* Add connect_ex to list of methods.Guido van Rossum1998-04-141-1/+1
|
* Be nicer to systems that have neither termios nor msvcrt.Guido van Rossum1998-04-131-1/+10
|
* Whoops! Add a missing 'instantiated = 1' to load_inst(); otherwise itGuido van Rossum1998-04-131-0/+1
| | | | would still try to call the class...
* New revision -- sometimes it's AUTH-LOGIN, sometimes AUTH=LOGIN!Guido van Rossum1998-04-111-2/+5
|
* Avoid using the obsolete rand module; and improve the randomnessGuido van Rossum1998-04-111-4/+3
| | | | | of the boundary chosen by choose_boudary() by using milliseconds of the timestamp.
* New version doesn't require REV1 capability.Guido van Rossum1998-04-111-11/+25
|
* Oops -- remove some debug print statements!Guido van Rossum1998-04-111-4/+0
|
* Add image_types() and image_names() as methods to Misc class.Guido van Rossum1998-04-101-0/+8
|
* Tim's version 4, with my modsGuido van Rossum1998-04-101-14/+6
|
* Another easter present.Guido van Rossum1998-04-101-0/+321
|
* New Java-style threading module. The doc strings are in a separate module.Guido van Rossum1998-04-092-0/+1276
|
* The usualGuido van Rossum1998-04-092-1/+8
|
* Another new utility: getpass() prompts for a password, with echo off.Guido van Rossum1998-04-091-0/+79
| | | | | Also contains getuser(), which returns the username (not prompting though). These work on Unix and Windows!
* When getcwd() doesn't exist or raises an exception, don't fail butGuido van Rossum1998-04-091-1/+5
| | | | | fall back to using os.curdir instead; if it is fine, don't use os.curdir at all.
* Clarify that put *blocks* when the queue is full. Add some blankGuido van Rossum1998-04-091-1/+6
| | | | lines to doc strings.
* Piers' new version (but I unfolded a few doc strings).Guido van Rossum1998-04-091-13/+11
|