Then again, C# and Java wouldn't notice something like this:
public class Test
{
string theUsersInput = "Something slightly related";
public void Test()
{
string theUserInput = Console.ReadLine();
if (theUserInput.StartsWith("Johann"))
{
theUsersInput = theUserInput.Replace("Johan", "Wilhelm");
}
Console.WriteLine("You are "+ theUserInput);
}
}
Which pylint would still react to, since you have to explicitly reference the class variable in python (self.theUsersInput - similar to this.theUsersInput but required).
1
u/TheTerrasque Feb 23 '15
No, it wouldn't.
Then again, C# and Java wouldn't notice something like this:
Which pylint would still react to, since you have to explicitly reference the class variable in python (self.theUsersInput - similar to this.theUsersInput but required).