| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
in front, which isn't 100% correct but good enough.
|
|
|
|
|
|
|
|
| |
fragile. Now the leading "0x" on hex numbers are displayed as labels
and the type-in entry fields just accept the hex digits. Be sure to
strip off the "0x" string when displaying hex values too.
Also, de-string-module-ification, and other Python 2.x improvements.
|
|
|
|
|
| |
EOFError so any failures in unmarshalling are just ignored. Use
print>> instead of sys.stderr.write().
|
| |
|
| |
|
| |
|
|
|
|
| |
De-string-module-ification.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
check the c-function pointer for being NULL before calling it and raise UnimplementedError if it is.
This allows system libs to be weak-linked, thereby allowing us to generate functions that are only available on some OS versions without getting a NULL dereference if the function isn't available.
|
|
|
|
| |
That way it's more easily overridden.
|
| |
|
|
|
|
| |
such as the Core Foundation ones.
|
|
|
|
|
|
|
|
|
|
| |
I published it on the web as http://www.python.org/2.1/md5sum.py
so I thought I might as well check it in.
Works with Python 1.5.2 and later.
Works like the Linux tool ``mdfsum file ...'' except it doesn't take
any options or read stdin.
|
|
|
|
| |
be outputted just before the msgid lines.
|
|
|
|
| |
marker should be output as a #, flag, e.g. "#, docstring".
|
|
|
|
|
| |
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?)
|
|
|
|
|
|
|
|
|
| |
Armin Rigo pointed out that the way the line-# table got built didn't work
for lines generating more than 255 bytes of bytecode. Fixed as he
suggested, plus corresponding changes to pyassem.py, plus added some
long overdue docs about this subtle table to compile.c.
Bugfix candidate (line numbers may be off in tracebacks under -O).
|
| |
|
|
|
|
|
|
| |
config.txt).
*** This is a bugfix-release candidate (for 2.1.1 and 2.0.1)! ***
|
|
|
|
| |
directives, which is the role of CPPFLAGS. Closes SF patch #414991.
|
|
|
|
|
| |
there were multiple translatable strings on a single line of source
code.
|
|
|
|
|
| |
tuples by filename/lineno, then sort the catalog entries by their
location tuples.
|
|
|
|
|
| |
indicate it took an argument. This closes SF patch #402223 by Bastian
Kleineidam.
|
|
|
|
|
|
|
|
|
|
|
| |
indicating whether the entry was extracted from a docstring or not.
write(): If any of the locations of a string appearance came from a
docstring, add a comment such as
#. docstring
before the references (after a suggestion by Martin von Loewis).
|
|
|
|
|
|
| |
first by filename and then by line number. Closes SF patch #425821.
Also, fixes a problem with duplicate entries.
|
|
|
|
| |
easier with gcc -Wstrict-function-prototypes.
|
|
|
|
|
|
| |
codec files to codecs.py and added logic so that multi mappings
in the decoding maps now result in mappings to None (undefined mapping)
in the encoding maps.
|
|
|
|
| |
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().
|
|
|
|
| |
exception (for compatibility with old versions of Python).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Assertion error message had typos in arguments to string format.
.cover files for modules in packages are now put in the right place.
The code that generate .cover files seemed to prepend a "./" to many
absolute paths, causing them to fail. The code now checks explicitly
for absolute paths and leaves them alone.
In trace/coverage code, recover from case where module has no __name__
attribute, when e.g. it is executed by PyRun_String(). In this case,
assign modulename to None and hope for the best. There isn't anywhere
to write out coverage data for this code anyway.
Also, replace several sys.stderr.writes with print >> sys.stderr.
New features:
-C/--coverdir dir: Generate .cover files in specified directory
instead of in the directory where the .py file is.
-s: Print a short summary of files coverred (# lines, % coverage,
name)
|
|
|
|
| |
support.
|
|
|
|
|
| |
module has been included since Python 2.0, and that is the preferred
interface.
|
|
|
|
| |
PyChecker.
|
| |
|
|
|
|
|
|
|
|
| |
variables reported by PyChecker.
__togglegentype(): PyChecker accurately reported that the variable
__gentypevar was unused -- actually this whole method is currently
unused so comment it out.
|
|
|
|
| |
reported by PyChecker.
|
| |
|
|
|
|
|
| |
this tool was last touched! Update some of the introductory material
and bump the version to 1.1.
|
|
|
|
|
|
| |
Otherwise, continue/break will attempt to affect the wrong loop.
A few more fiddles to get the SET_LINENOs consistent across compilers.
|
|
|
|
|
|
|
|
|
| |
Always emit a SET_LINENO 0 at the beginning of the module. The
builtin compiler does this, and it's much easier to compare bytecode
generated by the two compilers if they both do.
Move the SET_LINENO inside the FOR_LOOP block for list
comprehensions. Also for compat. with builtin compiler.
|
| |
|