[issue7813] Bug in command-line module launcher

R. David Murray report at bugs.python.org
Sat Jan 30 17:47:25 CET 2010


R. David Murray <rdmurray at bitdance.com> added the comment:

This fails on 2.6 maint but works on trunk.  There have been several improvements to the way that that compile works in trunk, and one of those fixed the problem that you are seeing.  The source of the problem is the final line in the source file containing nothing but whitespace.  I can't find the bug/revision that fixed this, but I suspect it depends on issue 7468, which Benjamin says is not a backport candidate.  

Since the limitation on compile on 2.6 is documented (see issue 4262), this would be considered a runpy bug if someone was moved to fix it in 2.6.

----------
nosy: +benjamin.peterson, ncoghlan, r.david.murray
priority:  -> low
stage:  -> test needed
title: Bug of command-line module launcher -> Bug in command-line module launcher
type: compile error -> behavior

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7813>
_______________________________________


More information about the Python-bugs-list mailing list