| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
of creating a nice dialog window.
|
| |
|
|
| |
Pass co_freevars and co_cellvars to new.code().
|
| |
|
|
|
|
| |
contains options, drop them to get the major/minor content type.
Modified from the supplied patch to support more whitespace variation.
Closes SF patch #613605.
|
| | |
|
| | |
|
| |
|
|
|
| |
Extended IDLE's open module menu item to handle hierarchical module names.
Closes SF patch 600152.
|
| |
|
|
|
| |
Patch 574531/Bug 574570 - allow freeze on windows to use the _winreg
extension.
|
| |
|
|
|
|
|
| |
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!
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
| |
Convert characters from the locale's encoding on output.
Reject characters outside the locale's encoding on input.
|
| | |
|
| | |
|
| |
|
|
|
|
|
| |
Properly fix SF bug #507298 (Gregor Lingl): shellpython2.2 -Qnew smart
indent error
Use // where int division is intended.
|
| | |
|
| |
|
|
| |
is Control-A rather than Alt-A.
|
| |
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
| |
Use 2.1's .hexdigest() method
|
| |
|
|
|
|
|
|
|
|
| |
2.2.1, but it would be nice if people remembered to comment on their
fixes' applicability!
backport akuchling's checkin of
revision 1.26 of webchecker.py
[Bug #512799] urllib.splittype() returns a 2-tuple. (Reported by seb bacon)
|
| |
|
|
|
| |
Patch #520483: Make IDLE OutputWindow handle Unicode.
2.2.1 candidate.
|
| |
|
|
|
| |
Fix by Edward K Ream to make breakpoints work on Windows: insert a
missing call to self.canonic().
|
| |
|
|
|
|
|
|
|
| |
revision 1.3 of reindent.py
SF bug #497839: reindent chokes on empty first lines.
Reindenter.run(): copy over initial all-whitespace lines (if any, and
after normalizing to remove trailing blanks and tabs).
Bugfix candidate.
|
| |
|
|
|
| |
Tim sez "Bugfix candidate: the current state of AutoIdent.py
should be in 2.2.1."
|
| | |
|
| |
|
|
| |
Jack: I hope I didn't break anything for you!
|
| |
|
|
|
|
| |
The cause seems to be that when a file URL doesn't exist,
urllib.urlopen() raises OSError instead of IOError. Simply add this
to the except clause. Not elegant, but effective. :-)
|
| |
|
|
| |
(through the new setmodulename() method). If the module name has been set the object generators output it as part of the tp_name field for the object type.
|
| | |
|
| | |
|
| |
|
|
| |
(Not sure if this is legal according to the Google terms of service. :-)
|
| |
|
|
| |
changes from start of branch upto r22b2 were already merged, of course).
|
| |
|
|
| |
the usage docs: (a) align properly, (b) explain properly.
|
| |
|
|
| |
by Thomas Heller (patch 459442).
|
| |
|
|
| |
generating Waste.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
(With slight cosmetic improvements to shorten lines and a grammar fix
to a docstring.)
This addes -X and -E options to freeze. From the docstring:
-X module Like -x, except the module can never be imported by
the frozen binary.
-E: Freeze will fail if any modules can't be found (that
were not excluded using -x or -X).
|
| | |
|
| | |
|
| |
|
|
|
|
|
| |
The strerror attribute contained only partial information about the
exception and produced some very confusing error messages. By passing
err (the exception object itself) and letting it convert itself to a
string, the error messages are better.
|
| |
|
|
|
| |
not other control characters string.rstrip() got rid of. This caters to
the \f thingies Barry likes putting in Python source files.
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
| |
restores the 2.1 ability of Tools/scripts/ndiff.py to start producing
output before the entire comparison is complete.
|
| | |
|
| |
|
|
|
|
| |
library.
Update README.
|
| | |
|
| |
|
|
| |
Remove all these files. All except astgen.py are moved to Lib/compiler.
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
compile() becomes replacement for builtin compile()
compileFile() generates a .pyc from a .py
both are exported in __init__
compiler.parse() gets optional second argument to specify compilation
mode, e.g. single, eval, exec
Add AbstractCompileMode as parent class and Module, Expression, and
Interactive as concrete subclasses. Each corresponds to a compilation
mode.
THe AbstractCompileMode instances in turn delegate to CodeGeneration
subclasses specialized for their particular functions --
ModuleCodeGenerator, ExpressionCodeGeneration,
InteractiveCodeGenerator.
|
| | |
|