From: Eric F. <ef...@ha...> - 2014-03-06 17:59:50
|
On 2014/03/06 3:47 AM, Federico Ariza wrote: > Hello everybody > > Stupid simple question > Is there a policy/tradition/convention to name unused variables inside the code? Not yet. > > Even better, if I see '''var''', can I replace it with '''_var''' and > nobody is going to complain? That might be a good convention. I don't particularly like a bare "_" because it is uninformative and visually a bit jarring. Even if a variable is unused, it is nice to have a slight hint in its name as to what it is. Eric > > I use eclipse and it complains about that (I like that it warns me). I > just wanted to know if I should just disable the warning when working > on matplotlib. > > Federico > |