Commit Graph

324 Commits

Author SHA1 Message Date
Raymond Hettinger
b78e3dd94e Backport 1.45: Failed module import was dumping to the console instead
of creating a nice dialog window.
2003-02-21 04:18:32 +00:00
Fred Drake
a84416d773 Fix typo only present in the r22-maint branch. 2002-11-08 07:42:58 +00:00
Raymond Hettinger
547a9b00c8 Clarify what it means to require Python 1.5.2. 2002-11-08 05:48:11 +00:00
Raymond Hettinger
b3e15fe70e Backport 1.43:
Extended IDLE's open module menu item to handle hierarchical module names.
Closes SF patch 600152.
2002-10-05 03:58:16 +00:00
Guido van Rossum
64a9d8a0f6 Revert Raymond H's checkin. That change depends on a new feature in
2.3, support for source code encodings, so it shouldn't be backported
(no matter how attractive the checkin msg sounded).

Please, try to *use* IDLE before committing changes!
2002-09-24 17:52:05 +00:00
Raymond Hettinger
e780c12cdf Backport:
The test for re.engine was misfiring because re.engine is no longer
defined and the default was "pre" instead of "sre".  Give up on 1.5.2
compatibility, hardcode the sre solution.  However, this XXX comment
still applies, AFAIK:
        # XXX This code depends on internals of the regular expression
        # engine!  There's no standard API to do a substitution when you
        # have already found the match.  One should be added.
2002-09-23 14:37:00 +00:00
Raymond Hettinger
c8b4c9fe1a Backport:
Convert characters from the locale's encoding on output.
Reject characters outside the locale's encoding on input.
2002-09-23 14:30:24 +00:00
Raymond Hettinger
1124a3b50b Backport patch: Use ascii_letters to avoid UnicodeErrors. 2002-09-23 14:23:15 +00:00
Raymond Hettinger
30d4ceb277 Backport patch #540583: Open MS Help Docs if available. 2002-09-23 14:17:15 +00:00
Raymond Hettinger
1d429f2464 Backport:
Properly fix SF bug #507298 (Gregor Lingl): shellpython2.2 -Qnew smart
indent error

Use // where int division is intended.
2002-09-23 14:06:24 +00:00
Raymond Hettinger
ff5fc28313 Backport patch 543222. Disable script bindings in shell window. 2002-09-23 14:01:40 +00:00
Raymond Hettinger
ebba7d2937 Backport patches 558535. The standard Windows binding for Edit Select All
is Control-A rather than Alt-A.
2002-09-23 13:44:45 +00:00
Michael W. Hudson
efe401cc56 backport tim_one's checkin of
revision 1.4 of CallTipWindow.py

SF bug 546078:  IDLE calltips cause application error.
Assorted crashes on Windows and Linux when trying to display a very
long calltip, most likely a Tk bug.  Wormed around by clamping the
calltip display to a maximum of 79 characters (why 79? why not ...).

Bugfix candidate, for all Python releases.
2002-08-23 15:53:05 +00:00
Anthony Baxter
1b2f63d2a7 backport gvanrossum's patch:
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
2002-04-18 05:08:28 +00:00
Guido van Rossum
92afd9ee75 Merge bugfix:
Patch #520483: Make IDLE OutputWindow handle Unicode.
2.2.1 candidate.
2002-02-28 22:59:02 +00:00
Guido van Rossum
82953b1f84 Backport of a useful trunk fix:
Fix by Edward K Ream to make breakpoints work on Windows: insert a
missing call to self.canonic().
2002-02-25 23:16:45 +00:00
Michael W. Hudson
abab74038d It's merge time!
Tim sez "Bugfix candidate:  the current state of AutoIdent.py
should be in 2.2.1."
2002-01-28 15:10:52 +00:00
Guido van Rossum
342d8f7780 Update outdated text about how to fix the font. 2001-10-08 22:49:12 +00:00
Tim Peters
a2e2dbe8cd Improve handling of docstrings. I had feared this was a case of
introspection incompatibility, but in fact it's just that calltips
always gave up on a docstring that started with a newline (but
didn't realize they were giving up <wink>).
2001-09-16 02:19:49 +00:00
Guido van Rossum
38507ae614 Finally fix SF bug #441172, using a variant of patch ##443626:
canceling an edit operation would not revert the value of the field.
The fix takes care to destroy the Entry object, as suggested in the
patch.
2001-08-11 04:37:07 +00:00
Martin v. Löwis
6113d352a6 Patch #422471: Install IDLE Help File 2001-08-08 20:26:14 +00:00
Guido van Rossum
44b1e7d840 Fix for SF bug #448835.
Fix this to work with the new (still undocumented) tabnanny API.

I'm afraid Stephen will have to add this fix to the IDLE fork code
base as well.
2001-08-07 17:15:36 +00:00
Jack Jansen
1fbad002d7 Oops, this file was apparently never added to the repository. Now it is. 2001-08-06 10:08:56 +00:00
Fred Drake
79e75e1916 Use string.ascii_letters instead of string.letters (SF bug #226706). 2001-07-20 19:05:50 +00:00
Fred Drake
cd694c44a9 Use string.ascii_letters instead of string.letters (SF bug #226706).
Move computation of sets of characters out of the body of the function that
uses them.
2001-07-20 18:58:42 +00:00