Ed Leafe wrote:
> On Mar 4, 2007, at 12:16 PM, Ken Dibble wrote:
>
>>> Try this: instead of removing that comment, add a nonsense
>>> line
>>> afterwards, such as 'x = 1'. Now run the code: does it still throw an
>>> error?
>> No it doesn't.
>
> Strange. So having a meaningless line, such as a comment or an empty
> line, at the end of a method causes the Windows Python compiler to
> complain.
>
> I don't know what else to do about it, so I've documented it in the
> FAQ page on the wiki.
Is the commented out line the only line in the function? IOW: this is valid:
def myFunc():
print "hi"
print "there"
and this isn't:
def myFunc():
#print "hi"
print "there"
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users