← Back to team overview

ufl team mailing list archive

Variable name style choice

 

In Python, variables are made private or protected in an "informal
way" by prefixing their names with __ or _. Some places I've used
self._foo instead of self.foo for variables which the end-user (person
inputting a form) shouldn't touch, do you agree with this? Most of
these are variables the form compiler developers will be dealing with.
I haven't been completely consistent, so I just want green light
before I change these one way or the other.

--
Martin


Follow ups