Touching on the following question posted on SO, Python - why use "self" in a class?, I was wondering:
If I created a variable inside a method of a given class without using the "self.", will it be a class variable? And if this is not the case, why not?
So for instance if I have a class like so:
class A:
def somefunction(self):
x=1
Will x be a class variable?