summaryrefslogtreecommitdiffstats
path: root/Tools/idle/IOBinding.py
Commit message (Collapse)AuthorAgeFilesLines
* backport gvanrossum's patch:Anthony Baxter2002-04-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | Provisional fix for writefile() [SF bug # 541730]. The problem was that an exception can occur in the text.get() call or in the write() call, when the text buffer contains non-ASCII characters. This causes the previous contents of the file to be lost. The provisional fix is to call str(self.text.get(...)) *before* opening the file, so that if the exception occurs, we never open the file. Two orthogonal better solutions have to wait for policy decisions: 1. We could try to encode the data as Latin-1 or as UTF-8; but that would require IDLE to grow a notion of file encoding which requires more thought. 2. We could make backups before overwriting a file. This requires more thought because it needs to be fast and cross-platform and configurable. Original patches were: python/dist/src/Tools/idle/IOBinding.py:1.6
* move "from Tkinter import *" to module levelJeremy Hylton2001-02-021-1/+1
|
* Add close() method that breaks a cycle.Guido van Rossum1999-06-251-4/+17
|
* Checking in IDLE 0.2.Guido van Rossum1999-01-021-23/+84
| | | | | | | | | | | | Much has changed -- too much, in fact, to write down. The big news is that there's a standard way to write IDLE extensions; see extend.txt. Some sample extensions have been provided, and some existing code has been converted to extensions. Probably the biggest new user feature is a new search dialog with more options, search and replace, and even search in files (grep). This is exactly as downloaded from my laptop after returning from the holidays -- it hasn't even been tested on Unix yet.
* Initial checking of Tk-based Python IDE.Guido van Rossum1998-10-101-0/+158
Features: text editor with syntax coloring and undo; subclassed into interactive Python shell which adds history.