summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* New module added.Guido van Rossum1997-12-311-0/+474
|
* When there's no filename, don't make one up.Guido van Rossum1997-12-301-6/+54
| | | | | Added _test() that behaves (a bit) like gzip. Fix a comment (*sequential* access is okay -- *random* access it out!)
* Add tests for re.L(OCALE).Guido van Rossum1997-12-301-1/+7
|
* Since DSA.py never made it to the release, neither should dos-8x3/dsa.py.Guido van Rossum1997-12-301-221/+0
|
* the usualGuido van Rossum1997-12-302-4/+6
|
* Two critical fixes to the changes that I made for Greg McFarlane --Guido van Rossum1997-12-301-3/+3
| | | | patches provided by Greg (am I glad I sent him my latest version!).
* Moved things around a bit in interact(), so outout is processed beforeGuido van Rossum1997-12-291-4/+5
| | | | | | input. When an EOF is read, break out of the loop instead of (by default) writing an empty line (which doesn't do much good). Don't close self when falling through the loop.
* Fixed several bugs reported by Greg McFarmane:Guido van Rossum1997-12-291-42/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * The invoke methods of the three Tkinter widgets Button, Checkbutton and Radiobutton should return the value returned by the callback, (like the Menu widget does): def invoke(self): return self.tk.call(self._w, 'invoke') * The select_from method of the Canvas widget should use 'from', not 'set': def select_from(self, tagOrId, index): self.tk.call(self._w, 'select', 'from', tagOrId, index) Currently, if you use select_from, you get the error message: 'TclError: bad select option "set": must be adjust, clear, from, item, or to' * The 'entrycget' and 'type' methods of the Tk menu widget are missing from Tkinter. * There is a bug in grid_columnconfigure and grid_rowconfigure. For example, this should return the current value of the 'minsize' option for column 0: f.grid_columnconfigure(0, 'minsize') Instead it returns the same as: f.grid_columnconfigure(0) I suggest that the hint given in the comment in the Tkinter.Misc.configure method should be followed - "ought to generalize this so tag_config etc. can use it". Repeating the same configure code several times in Tkinter is inviting errors. [I did not follow this advice --G] * The grid_slaves method should handle options. Currently, to pass options to the grid_slaves method, you have to do something like: grid_slaves('-row', 1)
* Minor editing corrections.Guido van Rossum1997-12-292-26/+26
|
* Added doc string, provided by Charles Waldman (with some reformattingGuido van Rossum1997-12-292-0/+446
| | | | and a little editing my me).
* Solve two annoying problems with ftp URLs for Jack: when repeatedGuido van Rossum1997-12-281-0/+14
| | | | | | | | | | retrieving files from the same host and directory, you had to close the previous instance before opening a new one; and retrieving a non-existent file would return an empty file. (The latter fix relies on maybe an undocumented property of NLST -- NLST of a file returns just that file, while NLST of a non-existent file returns nothing. A side effect, unfortunately, seems to be that now ftp-retrieving an *empty* directory may fail. Ah well.)
* Do a better job of keeping the dialog visible when the master windowGuido van Rossum1997-12-281-0/+8
| | | | is near or beyond the edge of the screen. Patch by Skip Montanaro.
* Typo: Widht instead of Width...Guido van Rossum1997-12-271-1/+1
|
* Added expect() method which takes a list of regular expressions and anGuido van Rossum1997-12-241-2/+52
| | | | optional timeout. Also moved some imports around.
* Use string.replace instead of regsub.[g]sub.Guido van Rossum1997-12-245-17/+13
|
* Decided to add the telnet library that I wrote long ago (it's still inGuido van Rossum1997-12-241-0/+424
| | | | | the Demos/cwilib directory). Converted comments to doc strings and used default arguments instead of *args. Updated the example.
* Add new optional parameter 'suffix' (default ''), which is appended toGuido van Rossum1997-12-191-10/+11
| | | | the temporary file name. Also some minor formatting of Jim F's code.
* Make this test succeed even when using "import test.test_zlib".Guido van Rossum1997-12-181-2/+5
|
* Added SOLID definition.Guido van Rossum1997-12-161-0/+2
|
* PhotoImage.put(): Fixed -to handling, including backward compatibility hack.Fred Drake1997-12-161-1/+3
| | | | Guido, please take a look at this.
* On NT, use a better template, ~XXX- where XXX is os.getpid().Guido van Rossum1997-12-151-0/+2
|
* Move %x test to nonstandard section because it appears to be locale specific.Guido van Rossum1997-12-151-2/+3
|
* Added tag_prevrange analogous to rag_nextrange.Guido van Rossum1997-12-151-0/+3
|
* Believe it or not, some people have an empty group database.Guido van Rossum1997-12-151-7/+10
| | | | Prevent the test from failing there.
* Change _nametowidget to nametowidget -- it is a public interface.Guido van Rossum1997-12-121-1/+2
|
* Remove unneeded "import re".Guido van Rossum1997-12-111-1/+0
|
* Last minute fix to Text.window_cget(), which should properly Tcl-ifyGuido van Rossum1997-12-111-0/+4
| | | | the option name (prepend '-', strip trailing '_').
* yeah, yeah.Guido van Rossum1997-12-111-2/+6
|
* Fix problem detected by Greg McFarlane -- callbacks passed toGuido van Rossum1997-12-111-10/+16
| | | | | bind_class() and bind_all() are destroyed when the widget to which they were passed is destroyed.
* Jim Fulton writes:Guido van Rossum1997-12-101-5/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | The attached patch adds the following behavior to the handling of REDUCE codes: - A user-defined type may have a __reduce__ method that returns a string rather than a tuple, in which case the object is saved as a global object with a name given by the string returned by reduce. This was a feature added to cPickle a long time ago. - User-defined types can now support unpickling without executing a constructor. The second value returned from '__reduce__' can now be None, rather than an argument tuple. On unpickling, if the second value returned from '__reduce__' during pickling was None, then rather than calling the first value returned from '__reduce__', directly, the '__basicnew__' method of the first value returned from '__reduce__' is called without arguments. I also got rid of a few of Chris' extra ()s, which he used to make python ifs look like C ifs.
* At Barry's suggestion, plug the security leak by using an emptyGuido van Rossum1997-12-102-6/+12
| | | | | | __builtins__ for all calls to eval(). This still allows someone to write string.atof("[1]*1000000") (which Jim Fulton worries about) but effectively disables access to system modules and functions.
* Since this module is used as a fallback in case no built-in modulesGuido van Rossum1997-12-102-6/+14
| | | | | | | | | have been configured, string.atof() should not fail when "import re" fails (usually because pcre is not there). This opens up a tiny security hole: *if* an attacker can make "import re" fail, they can also make string.atof(arbitrary_string) evaluate the arbitrary string. Nothing to keep me awake at night...
* Don't specify base 0 to string.atoi when unpickling integers in textGuido van Rossum1997-12-101-1/+1
| | | | | | mode. The pickler always uses base 10 so the default base should be fine. (The base gets us in trouble when there's no strop module, as the atoi() in string.py only supports base 10. This is for JPython.)
* Support uue and x-uue as short names for uuencode.Guido van Rossum1997-12-101-2/+6
|
* Doc strings and reformatting with 4 spaces bty Mitch Chapman.Guido van Rossum1997-12-101-609/+661
| | | | Untabified and minor tweaks by me.
* # Typos in the comments giving the names of two recently added distributions.Guido van Rossum1997-12-091-2/+2
|
* Guess... :-)Guido van Rossum1997-12-096-167/+474
|
* Checking in ConfigParser.py -- I don't see a reason why this can't beGuido van Rossum1997-12-091-0/+255
| | | | | liberated. This was originally written by Ken and later revamped by Barry.
* Deleting ni.py; renamed to ni1.py, really.Guido van Rossum1997-12-091-434/+0
|
* Make close(), and hence __del__(), robust in the light of the worldGuido van Rossum1997-12-091-3/+6
| | | | being destroyed already.
* Doc strings by Mitch Chapman (with a little reformatting).Guido van Rossum1997-12-091-118/+174
| | | | Also reformatted the whole module with 4 spaces and no tabs.
* Use long() instead of int() to compare mktime(localtime(t) with t...Guido van Rossum1997-12-081-1/+1
|
* New re version from AMKGuido van Rossum1997-12-083-58/+201
|
* Apply the same change to classes without an __getinitargs__() methodGuido van Rossum1997-12-071-5/+11
| | | | as in pickle: the new instance is created without calling __init__().
* Reindented according to new standard, without tabs.Guido van Rossum1997-12-051-117/+131
| | | | Also added one more os2 specific piece of code, by Jeff Rush.
* ospath.py has been obsolete for long enough.Guido van Rossum1997-12-051-3/+0
|
* When instantiating a class with no arguments and where the class doesGuido van Rossum1997-12-051-135/+40
| | | | | | | | | | | not define __getinitargs__, bypass the __init__ constructor completely. This uses the trick of instantiating an empty dummy class and then changing inst.__class__ to the real class. This is done in two places: once for the INST and once for the OBJ format code. Also replaced the much outdated long doc string with a short summary of the module; the information of that doc string is already incorporated in the library reference manual.
* Added doc strings and reindented according to new standard, without tabs.Guido van Rossum1997-12-051-162/+194
| | | | (Like ntpath.py, this was contributed by "Charles G. Waldman" <cgw@pgt.com>)
* Added doc strings and reindented according to new standard, without tabs.Guido van Rossum1997-12-051-189/+223
|
* Fix the exclusion of "config" in the methods copied from Pack to alsoGuido van Rossum1997-12-051-1/+1
| | | | exclude "configure".