Sokoban

Terry Reedy tjreedy at udel.edu
Mon Aug 12 23:53:41 CEST 2002


"Michael Büker" <aida.kensuke at gmx.no-spam-accepted.net> wrote in
message news:aj9591$v9s$1 at news.online.de...
> What could I do to avoid these errors (There appear about 20 of
them)?:
>
> D:/Program Files/Python21/sokoban:73: SyntaxWarning: local name
'delta' in
> 'makemover' shadows use of 'delta' as global in nested scope 'mover'
>   def makemover(canvas, mapstruct, idstruct):
>
> Sometimes I get to think I'll never have the luck to just have some
code
> from somewhere running without problems ;)

Ran fine for me with 2.2.  Suspect you need to add
from __future__ import nested_scopes

TJR






More information about the Python-list mailing list