| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
| |
The Py2.3 updates to the pyclbr module return both Class and Function
objects. The IDLE ClassBrowser module only knew about Class and could
not handle objects which did not define "super".
Fixed by adding a guard.
|
| |
|
|
|
|
|
| |
When a module doesn't have a __path__ attribute, trigger a dialog box
rather than dumping a traceback to the console.
|
| |
|
| |
|
| |
|
|
|
|
| |
[SF patch 634250 -- that was an IDLEFORK patch.]
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
(with one small bugfix in bgen/bgen/scantools.py)
This replaces string module functions with string methods
for the stuff in the Tools directory. Several uses of
string.letters etc. are still remaining.
|
|
|
|
|
|
|
| |
Will look at doing something similar in import.c so that the effort won't
have to be repeated elsewhere.
Closes SF patch 600152.
|
| |
|
|
|
|
| |
Reject characters outside the locale's encoding on input.
|
|
|
|
|
| |
Weinberg). This changes all uses of deprecated tempfile functions to
the recommended ones.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
allow subclassing.
|
| |
|
|
|
|
| |
is Control-A rather than Alt-A.
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
| |
the time...)
|
|
|
|
| |
missing call to self.canonic().
|
|
|
|
| |
2.2.1 candidate.
|
|
|
|
| |
Bugfix candidate: the current state of AutoIdent.py should be in 2.2.1.
|
|
|
|
|
|
|
| |
indent error
Use // where int division is intended. (This breaks IDLE for use with
previous Python versions -- I don't care.)
|
|
|
|
| |
Bugfix candidate!
|
| |
|
|
|
|
|
|
| |
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>).
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
|
| |
Move computation of sets of characters out of the body of the function that
uses them.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
found a bug here. Here's the deal:
Class PyShell derives from class OutputWindow. Method PyShell.close()
wants to invoke its parent method, but because PyShell long ago was
inherited from class PyShellEditorWindow, it invokes
PyShelEditorWindow.close(self). Now, class PyShellEditorWindow itself
derives from class OutputWindow, and inherits the close() method from
there without overriding it. Under the old rules,
PyShellEditorWindow.close would return an unbound method restricted to
the class that defined the implementation of close(), which was
OutputWindow.close. Under the new rules, the unbound method is
restricted to the class whose method was requested, that is
PyShellEditorWindow, and this was correctly trapped as an error.
|
|
|
|
|
| |
stmt. Along w/ the preceding change to keyword.py, making all this work
w/ a future-stmt just looks harder and harder.
|
|
|
|
|
|
| |
K. O'Brien on idle-dev.
(Should other bindings follow suit?)
|
|
|
|
|
|
| |
config.txt).
*** This is a bugfix-release candidate (for 2.1.1 and 2.0.1)! ***
|
|
|
|
| |
This now uses the new gotofileline() method defined in FileList.py.
|
|
|
|
|
|
| |
rather than the idle.py script. This has advantages and
disadvantages; the biggest advantage being that we can more easily
have an alternative main program.
|
|
|
|
|
|
|
| |
Add gotofileline(), a convenience method which I intend to use in a
variant.
Rename test() to _test().
|