On Tue, 01 Jan 2013 12:00:32 +0100, someone wrote: > See this code (understand why I commented out first line): > > # from OpenGL.GL import * [...] > The reason why I commented out the first line is that I use "pylint" and > it reports: "[W] Redefining built-in 'format'" for this line. > > From: http://www.logilab.org/card/pylintfeatures tell: W0621: Redefining > name %r from outer scope (line %s) Used when a variable's name hide a > name defined in the outer scope. > > I don't like to redefine already defined names so therefore I had to > outcomment first line and then keep on adding stuff until I could run my > program... But this SUCKS! I can see that pygame hasn't been updated for > a long while - not many users use it? I'm not very happy about this...
from pygame import * del format pylint may still complain, but you can ignore it. By deleting the name "format", that will unshadow the builtin format. -- Steven -- http://mail.python.org/mailman/listinfo/python-list