SyntaxError: multiple statements found while compiling a single statement
Terry Reedy
tjreedy at udel.edu
Sun Oct 9 01:36:39 EDT 2016
On 10/8/2016 11:51 PM, Cai Gengyang wrote:
>>>> pygame = True
>>>> while not done:
> for event in pygame.event.get():
> Traceback (most recent call last):
> File "<pyshell#48>", line 2, in <module>
> for event in pygame.event.get():
> AttributeError: 'bool' object has no attribute 'event'
pygame == True and True has not attribute 'event'. Believe the error
messages until you have real reason to question them. They are perhaps
99.9% accurate by now/
--
Terry Jan Reedy
More information about the Python-list
mailing list