This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Wilberto
Recipients Wilberto
Date 2013-09-06.18:59:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1378493985.89.0.543332382387.issue18949@psf.upfronthosting.co.za>
In-reply-to
Content
I think the way this loop in /Lib/codeop.py is wrong

def _maybe_compile(compiler, source, filename, symbol):
    # Check for source consisting of only blank lines and comments
    for line in source.split("\n"):
        line = line.strip()
        if line and line[0] != '#':
            break               # Leave it alone
    else:
        if symbol != "eval":
            source = "pass"     # Replace it with a 'pass' statement

I think the else statement shouldn't be there.
History
Date User Action Args
2013-09-06 18:59:45Wilbertosetrecipients: + Wilberto
2013-09-06 18:59:45Wilbertosetmessageid: <1378493985.89.0.543332382387.issue18949@psf.upfronthosting.co.za>
2013-09-06 18:59:45Wilbertolinkissue18949 messages
2013-09-06 18:59:45Wilbertocreate