R. David Murray <rdmur...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue7813>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to