| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fix annoying bugs in flow graph layout code. In some cases the
implicit control transfers weren't honored. In other cases,
JUMP_FORWARD instructions jumped backwards.
Remove unused arg from nextBlock().
pycodegen.py
Add optional force kwarg to set_lineno() that will emit a
SET_LINENO even if it is the same as the previous lineno.
Use explicit LOAD_FAST and STORE_FAST to access list comp implicit
variables. (The symbol table doesn't know about them.)
|
|
|
|
| |
those used by compile.c. (test_grammar now depends on the names)
|
|
|
|
| |
Fixes last bug found with test_scope.py.
|
| |
|
| |
|
|
|
|
|
| |
XXX Still doesn't work right for classes
XXX Still doesn't do sufficient error checking
|
| |
|
| |
|
|
|
|
|
|
|
| |
Call set_lineno() in visitDiscard(), which will generate linenos for
discard statements, e.g. the statement "1/0"
Fixes SF bug #409587
|
|
|
|
| |
Change default dispatch to use extended call syntax in place of apply.
|
|
|
|
|
|
|
| |
Fixes SF buf #217004
Add method fixDocstring() to CodeGenerator. It converts the Discard
node containing the docstring into an assignment to __doc__.
|
| |
|
|
|
|
|
|
| |
consts, even if it is None.
Simplify _lookupName() by removing lots of redundant tests.
|
|
|
|
|
|
| |
(Yes, this is a new feature right before the 2.1 release. No, I can't
imagine this would seriously break anybody's code. In fact, most
users of this script are probably *happy* to see this addition.)
|
|
|
|
|
| |
Fix func arg processing to handle args in tuples.
In test code, skip names beginning with '.'.
|
|
|
|
|
|
|
| |
Add mangling support
Add get_children() and add_child() methods to Scope
Skip nodes when If test is a false constant
Add test code that checks results against symtable module
|
| |
|
| |
|
|
|
|
|
|
| |
Fix com_NEWLINE() so that is accepts arguments, which occurs for lines like:
stmt; # note trailing semicolon
Add XXX about checking for assignment to list comps
|
| |
|
|
|
|
|
|
|
| |
McCafferty <christopher.mccafferty@csg.ch>, and a bit of experimentation
with Navigator 4.7.
HTML-as-deployed is evil!
|
|
|
|
|
|
|
|
|
| |
<christopher.mccafferty@csg.ch>:
Add javascript: and telnet: to the types of URLs we ignore.
Add support for several additional URL-valued attributes on the BODY,
FRAME, IFRAME, LINK, OBJECT, and SCRIPT elements.
|
|
|
|
|
|
|
|
| |
ModifiedInterpreter.__init__.
Was getting mystery
ModifiedInterpreter instance has no attribute 'save_warnings_filters'
errors at odd times (for sure in a fresh IDLE, fresh file, then Run Script).
|
|
|
|
| |
interactively.
|
| |
|
|
|
|
|
| |
CNRI release in a corner of the basement of a government building on a
planet circling Aldebaran.)
|
|
|
|
| |
instead.
|
|
|
|
| |
and Setup.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch was developed primarily to reduce the size of the
frozen binary. It is particularly useful when freezing for 'small'
platforms, such as Palm OS, where you really want to save that
last miserable byte.
A limitation of this patch is that it does not provide any feedback
about the replacements being made. As the path matching
is case-sensitive this may lead to unexpected behaviour for DOS
and Windows people, eg
> freeze.py -r C:\Python\Lib\=py\ goats.py
should probably be:
> freeze.py -r c:\python\lib\=py\ goats.py
|