If they're meant to just be used in that method (that is, they're local variables), then you shouldn't use
FWIW, your thread title is a bit misleading - there's nothing really about naming here.
self
. By "class method" do you mean decorated with @classmethod
? I'm going to guess (and you can check whether this is correct for yourself) that if you do use self
there, you'll be creating class variables that are accessible to all class and instance methods. You should make variables as tightly scoped as possible (so as above, not using self
if you don't need to). Note also, that the convention is to call the first parameter to a class method cls
, rather than self
.FWIW, your thread title is a bit misleading - there's nothing really about naming here.