On Saturday 24 July 2010, Peter Williams wrote: > Global lists are identified as constants even though their contents > are modified (using the append() method) inside global functions.
They are not identified as anything. Pylint sees that those names are not bound to imported names, functions, or classes so they should be constant. If they are not you are mutating global objects. Which is bad style. There are good reasons for mutating global objects, but they are rare. For those occasions you can use the comment mechanism to tell pylint not to check those names. Ciao, Marc 'BlackJack' Rintsch -- “… Then anyone who leaves behind him a written manual, and likewise anyone who receives it, in the belief that such writing will be clear and certain, must be exceedingly simple-minded …” -- Plato, Phaedrus
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Python-Projects mailing list Python-Projects@lists.logilab.org http://lists.logilab.org/mailman/listinfo/python-projects